diff options
Diffstat (limited to 'go')
| -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{}, |
