From 6bd6936e1aae2fb8d2f5fc95d3c8dcdbe799242d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 7 Feb 2023 00:32:39 +0100 Subject: intermediate commit adding area effects and hooks for permanents entering and leaving tiles --- go/game/unit_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'go/game/unit_test.go') diff --git a/go/game/unit_test.go b/go/game/unit_test.go index 0f16176c..53b585d8 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -20,9 +20,15 @@ symbols: s := NewState() r := strings.NewReader(mapDef) s.Map, _ = readMap(r) + f := NewUnit(NewCard("nautics/fisher"), s.Map.TileAt(Position{2, 2}), nil) + s.AddPermanent(f) + a := NewUnit(NewCard("base/archer"), s.Map.TileAt(Position{1, 1}), nil) + s.AddPermanent(a) + sword := newEquipmentFromPath("base/sword", s.Map.TileAt(Position{0, 1}), nil) + s.AddPermanent(sword) a.move(s, f.Tile()) if len(f.Pile()) != 1 { -- cgit v1.2.3