diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:03:16 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:48 +0100 |
| commit | a3f7abf2e2aa0a0d65bf36239233b1563eae082b (patch) | |
| tree | 46e5ddffc1e55ff699559980fc6db4f4224f83b0 /go/game/cardImplementations.go | |
| parent | 7c288f65c4e821d9bbb9b8d880f1378d0eaea816 (diff) | |
| download | muhqs-game-a3f7abf2e2aa0a0d65bf36239233b1563eae082b.tar.gz muhqs-game-a3f7abf2e2aa0a0d65bf36239233b1563eae082b.zip | |
kraken: implement suprise!
Diffstat (limited to 'go/game/cardImplementations.go')
| -rw-r--r-- | go/game/cardImplementations.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index cb32ab2c..5d28c06c 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -109,32 +109,32 @@ func (*frostPylonAoE) onLeaving(Permanent) { // TODO: remove effect } -type frostPylon struct { +type frostPylonImpl struct { cardImplementation aoe frostPylonAoE } -func (*frostPylon) spawnTiles(s *State, kraken *Player) (spawns []*Tile) { +func (*frostPylonImpl) spawnTiles(s *State, kraken *Player) (spawns []*Tile) { for _, u := range s.EnemyUnits(kraken) { spawns = append(spawns, TilesInRange(s.Map, u, 1)...) } return } -func (*frostPylon) stateBasedActions(s *State, p Permanent) { +func (*frostPylonImpl) stateBasedActions(s *State, p Permanent) { if p.Marks(PermanentMarks.Crack) >= 3 { s.DestroyPermanent(p) } } -func (i *frostPylon) onEntering(t *Tile) { +func (i *frostPylonImpl) onEntering(t *Tile) { s := t.Permanent.Controller().gameState for _, tile := range TilesInRange(s.Map, t.Permanent, 1) { tile.addEffect(&i.aoe) } } -func (i *frostPylon) onLeaving(t *Tile) { +func (i *frostPylonImpl) onLeaving(t *Tile) { s := t.Permanent.Controller().gameState for _, tile := range TilesInRange(s.Map, t.Permanent, 1) { tile.removeEffect(&i.aoe) @@ -177,7 +177,7 @@ func (*soldOutImpl) onPlay(s *State, kraken *Player, _ *Targets) { type supriseImpl struct{ cardImplementation } func (*supriseImpl) onPlay(s *State, kraken *Player, _ *Targets) { - // TODO: implement modification of next spawn tile + kraken.Ctrl.(*KrakenControl).activeSuprise = true } type tentacleSlapImpl struct{ cardImplementation } @@ -238,7 +238,7 @@ func init() { "kraken/devour_the_poor!": &devourThePoorImpl{}, "kraken/drowned_sailor": &drownedSailorImpl{}, "kraken/flying_dutchmen": &flyingDutchmenImpl{}, - "kraken/frost_pylon": &frostPylon{}, + "kraken/frost_pylon": &frostPylonImpl{}, "kraken/gigantic_hail": &giganticHailImpl{}, "kraken/sold_out!": &soldOutImpl{}, "kraken/suprise!": &supriseImpl{}, |
