From f58057564800cf45f61e3ab7c410385fcbf316df Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 24 Feb 2023 13:48:33 +0100 Subject: intermeditae commit * implement dopping piles * implement simple spell targeting * add some simple spells --- go/game/cardImplementations.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'go/game/cardImplementations.go') diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index 67b52315..bc2f7414 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -172,6 +172,25 @@ func (*wormtongueImpl) fullActions(u *Unit) []*FullAction { return []*FullAction{a} } +// ====== Magic Set ====== + +type dieImpl struct{ cardImplementationBase } + +func (*dieImpl) playTargets() *TargetDesc { + desc := newTargetDesc("unit") + return &desc +} + +func (*dieImpl) onPlay(s *State, c *Card, p *Player, t *Targets) { + s.destroyPermanent(t.Cur().sel[0].(Permanent)) +} + +type ritualImpl struct{ cardImplementationBase } + +func (*ritualImpl) onPlay(s *State, c *Card, p *Player, t *Targets) { + p.gainResource(3) +} + // ====== Nautics Set ====== var fishTrapAoE areaEffect = newGrantFullActionEffect("nautics/fisher", @@ -432,6 +451,9 @@ func init() { "base/tower_shield": &towerShieldImpl{}, "base/wormtongue": &wormtongueImpl{}, + "magic/die!": &dieImpl{}, + "magic/ritual!": &ritualImpl{}, + "nautics/captain": &captainImpl{}, "nautics/fish_trap": &fishTrapImpl{aoe: fishTrapAoE}, "nautics/fisher": &fisherImpl{}, -- cgit v1.2.3