aboutsummaryrefslogtreecommitdiff
path: root/go/game/cardImplementations.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-24 13:48:33 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:52:12 +0200
commitf58057564800cf45f61e3ab7c410385fcbf316df (patch)
tree1babd0b9326ef72e842f0c2cecb2dda36a624213 /go/game/cardImplementations.go
parentd46f56fa0d8f2217cf9716839ee83b93f2ee8485 (diff)
downloadmuhqs-game-f58057564800cf45f61e3ab7c410385fcbf316df.tar.gz
muhqs-game-f58057564800cf45f61e3ab7c410385fcbf316df.zip
intermeditae commit
* implement dopping piles * implement simple spell targeting * add some simple spells
Diffstat (limited to 'go/game/cardImplementations.go')
-rw-r--r--go/game/cardImplementations.go22
1 files changed, 22 insertions, 0 deletions
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{},