From 4db8db0e847552077be9ebd9177ddc573c2b51d4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 5 Feb 2023 23:14:52 +0100 Subject: add simple spell support --- go/game/cardImplementations.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'go/game/cardImplementations.go') diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index 99994a41..271c88ea 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -62,6 +62,14 @@ func (*swordImplementation) onUnpile(p Permanent) { } } +type tidesChangeImplementation struct { + cardImplementation +} + +func (*tidesChangeImplementation) onPlay(s *State, _ *Player, _ *Targets) { + s.Map.redistributeStoreCards(s.Rand) +} + func init() { cardImplementations = map[string]cardImplementation{ "base/advisor": &advisorImplementation{}, @@ -69,5 +77,7 @@ func init() { "base/sword": &swordImplementation{}, "misc/farmer": &farmerImplementation{}, + + "kraken/tides_change!": &tidesChangeImplementation{}, } } -- cgit v1.2.3