From 3d36d1d0254b8aeecc889a2a49cbcced458cbe9c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 25 Feb 2023 23:08:47 +0100 Subject: intermediate commit * Implement move artifact action * Fix widget update memory leak * update the highlights not during on each frame * do not update the unchanged label of a button * Allow to exit the game by pressing 'q' * Implement some cards from the magic set * Improve permanent formatting * Some tweaks to UnitAI code --- go/game/unit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/game/unit_test.go') diff --git a/go/game/unit_test.go b/go/game/unit_test.go index 4b0ee8cc..4cfcdfb9 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -33,7 +33,7 @@ symbols: sword := newEquipmentFromPath("base/sword", s.Map.TileAt(Position{0, 1}), p) s.AddPermanent(sword) - a.move(s, f.Tile()) + movePermanent(a, f.Tile()) if len(f.Pile()) != 1 { t.Fatalf("fisher's pile size is not 1") } @@ -65,7 +65,7 @@ symbols: t.Fatalf("Piled archer has attackable tiles") } - a.move(s, s.Map.TileAt(Position{1, 1})) + movePermanent(a, s.Map.TileAt(Position{1, 1})) if len(f.Pile()) != 0 { t.Fatalf("fisher's pile is not empty") } -- cgit v1.2.3