From 011b95e8db31f1306eafb575ed12bed4e2fc1ca3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 3 Apr 2023 16:47:42 +0200 Subject: implement equipment with next unit play option Also make more state methods private. --- go/game/cardImplementations.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'go/game/cardImplementations.go') diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index e33906f6..b015ace8 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -140,7 +140,7 @@ func (*recruiterImpl) fullActions(u *Unit) []*FullAction { u := a.Source().(*Unit) return func(s *State) { t := a.Target().sel[0].(*Tile) - s.AddNewUnit(NewCard("base/recruit"), t.Position, u.Controller()) + s.addNewUnit(NewCard("base/recruit"), t.Position, u.Controller()) } } @@ -370,7 +370,7 @@ func (*fisherImpl) fullActions(u *Unit) []*FullAction { u := a.Source().(*Unit) return func(s *State) { t := a.Target().sel[0].(*Tile) - s.AddNewArtifact(NewCard("nautics/fish_trap"), t.Position, u.Controller()) + s.addNewArtifact(NewCard("nautics/fish_trap"), t.Position, u.Controller()) } } a := newFullAction(u, resolvePrototype, "create fish trap") @@ -537,7 +537,7 @@ func (*giganticHailImpl) onPlay(s *State, _ *Card, kraken *Player, _ *Targets) { } choice := s.Rand.Intn(choices - 1) - s.AddNewArtifact(NewCard("kraken/ice_berg"), emptyTiles[choice].Position, kraken) + s.addNewArtifact(NewCard("kraken/ice_berg"), emptyTiles[choice].Position, kraken) emptyTiles[choice] = emptyTiles[choices-1] choices-- } -- cgit v1.2.3