diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-27 19:09:31 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:13 +0200 |
| commit | 5c3dbd266bbd6732088d08480bc973e112ce6d99 (patch) | |
| tree | 517869b0e98a7554cd98625791de301fdad490e6 | |
| parent | 1a0b0733cd0dd348aaac55bbdb0e65b01263e1af (diff) | |
| download | muhqs-game-5c3dbd266bbd6732088d08480bc973e112ce6d99.tar.gz muhqs-game-5c3dbd266bbd6732088d08480bc973e112ce6d99.zip | |
add clownfish implementation
| -rw-r--r-- | go/game/cardImplementations.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index 9797af4c..cd95e58c 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -428,6 +428,21 @@ func (*sailorImpl) onUnpile(containing Permanent) { // ====== Kraken Set ====== +type clownfishImpl struct{ cardImplementationBase } + +func (*clownfishImpl) fullActions(u *Unit) []*FullAction { + resolvePrototype := func(a Action) ActionResolveFunc { + u := a.Source().(*Unit) + return func(s *LocalState) { + controller := u.Controller() + controller.gainResource(4) + } + } + + a := newFullAction(u, resolvePrototype, "gain 4") + return []*FullAction{a} +} + type tidesChangeImpl struct{ cardImplementationBase } func (*tidesChangeImpl) onPlay(a *PlayAction) { @@ -710,6 +725,7 @@ func init() { "nautics/fisher": &fisherImpl{}, "nautics/sailor": &sailorImpl{}, + "kraken/clownfish": &clownfishImpl{}, "kraken/deja_vu!": &dejaVuImpl{}, "kraken/devour_the_poor!": &devourThePoorImpl{}, "kraken/dolphin": &dolphinImpl{}, |
