aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-09-06 21:15:58 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-09-06 21:15:58 +0200
commit4ef4b1d236e06dd043a8d77a0bcaf27c69164442 (patch)
tree77c93d4b82d903f453f88692ad5207c93d612400
parentcada620152321225b0bd5449afc6e7ad4aac9013 (diff)
downloadmuhqs-game-4ef4b1d236e06dd043a8d77a0bcaf27c69164442.tar.gz
muhqs-game-4ef4b1d236e06dd043a8d77a0bcaf27c69164442.zip
fix shield implementation by removing superfluous whitespace
-rw-r--r--data/cards/base/shield.yml2
-rw-r--r--go/game/cardImplementations_test.go13
-rw-r--r--latex/cards/en/base/shield.tex2
3 files changed, 15 insertions, 2 deletions
diff --git a/data/cards/base/shield.yml b/data/cards/base/shield.yml
index be45b44f..1c0e3e7e 100644
--- a/data/cards/base/shield.yml
+++ b/data/cards/base/shield.yml
@@ -6,5 +6,5 @@ buy: 5
play: 1
durability: 3
effect:
- en: Equipped unit gets +1 health
+ en: Equipped unit gets +1 health
de: Die ausgerüstete Unit erhält +1 Leben
diff --git a/go/game/cardImplementations_test.go b/go/game/cardImplementations_test.go
index ff41a752..8ab87ecd 100644
--- a/go/game/cardImplementations_test.go
+++ b/go/game/cardImplementations_test.go
@@ -233,6 +233,19 @@ func TestArmor(t *testing.T) {
}
}
+func TestShield(t *testing.T) {
+ s, _, player, _ := newMockState()
+
+ a := s.addNewUnit(NewCard("base/archer"), Position{0, 0}, player)
+ oldHealth := a.Health
+ shield := newEquipment(NewCard("base/shield"), a, player)
+ s.addPermanent(shield)
+
+ if a.Health == oldHealth {
+ t.Fatal("archer healh no increased")
+ }
+}
+
func TestBanner(t *testing.T) {
s, _, player, opo := newMockState()
diff --git a/latex/cards/en/base/shield.tex b/latex/cards/en/base/shield.tex
index a4fe68ad..62156035 100644
--- a/latex/cards/en/base/shield.tex
+++ b/latex/cards/en/base/shield.tex
@@ -6,7 +6,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Shield}
\cardbuycost{5}
-\cardsplitcontent{Durability: 3}{Equipped unit gets +1 health}
+\cardsplitcontent{Durability: 3}{Equipped unit gets +1 health}
\cardplaycost{1}
\cardmodule{base}
\cardborder