aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit_test.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-03 16:47:42 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:53 +0100
commit011b95e8db31f1306eafb575ed12bed4e2fc1ca3 (patch)
tree44b007c1324e99e26014bab45faefa755c6ab38d /go/game/unit_test.go
parent4d33d8b637211aaa3e0adfda68e363e64f90623f (diff)
downloadmuhqs-game-011b95e8db31f1306eafb575ed12bed4e2fc1ca3.tar.gz
muhqs-game-011b95e8db31f1306eafb575ed12bed4e2fc1ca3.zip
implement equipment with next unit play option
Also make more state methods private.
Diffstat (limited to 'go/game/unit_test.go')
-rw-r--r--go/game/unit_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/game/unit_test.go b/go/game/unit_test.go
index 4cfcdfb9..deaeb5f6 100644
--- a/go/game/unit_test.go
+++ b/go/game/unit_test.go
@@ -25,13 +25,13 @@ symbols:
p := s.Players[0]
f := NewUnit(NewCard("nautics/fisher"), s.Map.TileAt(Position{2, 2}), p)
- s.AddPermanent(f)
+ s.addPermanent(f)
a := NewUnit(NewCard("base/archer"), s.Map.TileAt(Position{1, 1}), p)
- s.AddPermanent(a)
+ s.addPermanent(a)
sword := newEquipmentFromPath("base/sword", s.Map.TileAt(Position{0, 1}), p)
- s.AddPermanent(sword)
+ s.addPermanent(sword)
movePermanent(a, f.Tile())
if len(f.Pile()) != 1 {