aboutsummaryrefslogtreecommitdiff
path: root/go/game/cardImplementations.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-12 08:25:58 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-12 08:25:58 +0200
commit3dc052d23f554138f74ba86b4f08f41242bd9623 (patch)
tree036805e7420e8799dbfd260529136517e88fe92a /go/game/cardImplementations.go
parent4318677831e1ada30d3399f3da1dd803ceb1cbbb (diff)
downloadmuhqs-game-3dc052d23f554138f74ba86b4f08f41242bd9623.tar.gz
muhqs-game-3dc052d23f554138f74ba86b4f08f41242bd9623.zip
support parsing of simple equipment effects
Diffstat (limited to 'go/game/cardImplementations.go')
-rw-r--r--go/game/cardImplementations.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go
index 161de212..2a627a94 100644
--- a/go/game/cardImplementations.go
+++ b/go/game/cardImplementations.go
@@ -95,16 +95,6 @@ func (*missionaryImpl) fullActions(u *Unit) []*FullAction {
return []*FullAction{a}
}
-type swordImpl struct{ cardImplementationBase }
-
-func (*swordImpl) onPile(p Permanent) { adjustMelee(p, 1) }
-func (*swordImpl) onUnpile(p Permanent) { adjustMelee(p, -1) }
-
-type greatSwordImpl struct{ cardImplementationBase }
-
-func (*greatSwordImpl) onPile(p Permanent) { adjustMelee(p, 2) }
-func (*greatSwordImpl) onUnpile(p Permanent) { adjustMelee(p, -2) }
-
type misinformationImpl struct{ cardImplementationBase }
func (*misinformationImpl) onPlay(a *PlayAction) {
@@ -158,11 +148,6 @@ func (*recruiterImpl) additionalSpawnsFor(p Permanent, ct CardType) []*Tile {
return TilesInRange(s.Map(), p, 1)
}
-type shieldImpl struct{ cardImplementationBase }
-
-func (*shieldImpl) onPile(p Permanent) { adjustHealth(p, 1) }
-func (*shieldImpl) onUnpile(p Permanent) { adjustHealth(p, -1) }
-
type taxCollectorImpl struct{ cardImplementationBase }
func (*taxCollectorImpl) fullActions(u *Unit) []*FullAction {
@@ -178,11 +163,6 @@ func (*taxCollectorImpl) fullActions(u *Unit) []*FullAction {
return []*FullAction{a}
}
-type towerShieldImpl struct{ cardImplementationBase }
-
-func (*towerShieldImpl) onPile(p Permanent) { adjustHealth(p, 2) }
-func (*towerShieldImpl) onUnpile(p Permanent) { adjustHealth(p, -2) }
-
type wormtongueImpl struct{ cardImplementationBase }
func (*wormtongueImpl) fullActions(u *Unit) []*FullAction {
@@ -714,14 +694,10 @@ func init() {
cardImplementations = map[string]cardImplementation{
"base/advisor": &advisorImpl{},
"base/missionary": &missionaryImpl{},
- "base/sword": &swordImpl{},
- "base/greatsword": &greatSwordImpl{},
"base/misinformation": &misinformationImpl{},
"base/pioneer": &pioneerImpl{},
"base/recruiter": &recruiterImpl{},
- "base/shield": &shieldImpl{},
"base/tax_collector": &taxCollectorImpl{},
- "base/tower_shield": &towerShieldImpl{},
"base/wormtongue": &wormtongueImpl{},
"base/pikeman": &pikemanImpl{},