From 3dc052d23f554138f74ba86b4f08f41242bd9623 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 12 Aug 2025 08:25:58 +0200 Subject: support parsing of simple equipment effects --- go/game/cardImplementations.go | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'go/game/cardImplementations.go') 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{}, -- cgit v1.2.3