diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-05 23:14:52 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:46:40 +0200 |
| commit | 4db8db0e847552077be9ebd9177ddc573c2b51d4 (patch) | |
| tree | 545cec81ab1ff844a73a53577b1a9378ce1c1c0f /go/game/cardImplementations.go | |
| parent | e3e6955b60c909b6e84a233b547d08912a61a2ac (diff) | |
| download | muhqs-game-4db8db0e847552077be9ebd9177ddc573c2b51d4.tar.gz muhqs-game-4db8db0e847552077be9ebd9177ddc573c2b51d4.zip | |
add simple spell support
Diffstat (limited to 'go/game/cardImplementations.go')
| -rw-r--r-- | go/game/cardImplementations.go | 10 |
1 files changed, 10 insertions, 0 deletions
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{}, } } |
