diff options
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{}, |
