aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-10-07 14:36:26 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2021-10-07 14:36:26 +0200
commitbbf80cb49383f8cac6625a8ca8f0adc3367974a7 (patch)
treea5568d13ce2a441fff56ff14c56c7558e82a5de0
parentaaba88bec323a1557fe1cf5e7bfaf7551626d745 (diff)
downloadmuhqs-game-bbf80cb49383f8cac6625a8ca8f0adc3367974a7.tar.gz
muhqs-game-bbf80cb49383f8cac6625a8ca8f0adc3367974a7.zip
[generate_card.py] translate durability
-rw-r--r--latex/cards/de/base/great_sword.tex2
-rw-r--r--latex/cards/de/base/shield.tex2
-rw-r--r--latex/cards/de/base/sword.tex2
-rw-r--r--latex/cards/de/base/tower_shield.tex2
-rw-r--r--latex/cards/de/equipments/armor.tex2
-rw-r--r--latex/cards/de/equipments/cloak.tex2
-rw-r--r--latex/cards/de/equipments/gear.tex2
-rw-r--r--latex/cards/de/equipments/mace.tex2
-rw-r--r--latex/cards/de/equipments/plate_armor.tex2
-rw-r--r--latex/cards/de/equipments/poisoned_dagger.tex2
-rw-r--r--latex/cards/de/equipments/spear.tex2
-rw-r--r--latex/cards/de/exp1/fishing_rod.tex2
-rw-r--r--latex/cards/de/misc/stick_of_victory.tex2
-rwxr-xr-xscripts/generate_card.py2
14 files changed, 14 insertions, 14 deletions
diff --git a/latex/cards/de/base/great_sword.tex b/latex/cards/de/base/great_sword.tex
index bcc55b7d..5454fbaf 100644
--- a/latex/cards/de/base/great_sword.tex
+++ b/latex/cards/de/base/great_sword.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Großschwert}
\cardbuycost{10}
-\cardsplitcontent{Durability: 3}{Ausgerüstete Unit hat +2 Nahkampf}
+\cardsplitcontent{Haltbarkeit: 3}{Ausgerüstete Unit hat +2 Nahkampf}
\cardplaycost{4}
\cardmodule{base}
\cardborder
diff --git a/latex/cards/de/base/shield.tex b/latex/cards/de/base/shield.tex
index f0b4d5c8..4207b392 100644
--- a/latex/cards/de/base/shield.tex
+++ b/latex/cards/de/base/shield.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Schild}
\cardbuycost{5}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat +1 Leben}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat +1 Leben}
\cardplaycost{1}
\cardmodule{base}
\cardborder
diff --git a/latex/cards/de/base/sword.tex b/latex/cards/de/base/sword.tex
index b024ba3c..ae615ea9 100644
--- a/latex/cards/de/base/sword.tex
+++ b/latex/cards/de/base/sword.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Schwert}
\cardbuycost{5}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat +1 Nahkampf}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat +1 Nahkampf}
\cardplaycost{2}
\cardmodule{base}
\cardborder
diff --git a/latex/cards/de/base/tower_shield.tex b/latex/cards/de/base/tower_shield.tex
index 4ffa82c6..274d424f 100644
--- a/latex/cards/de/base/tower_shield.tex
+++ b/latex/cards/de/base/tower_shield.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Turmschild}
\cardbuycost{7}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat +2 Leben}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat +2 Leben}
\cardplaycost{2}
\cardmodule{base}
\cardborder
diff --git a/latex/cards/de/equipments/armor.tex b/latex/cards/de/equipments/armor.tex
index 6e554759..5c0fa925 100644
--- a/latex/cards/de/equipments/armor.tex
+++ b/latex/cards/de/equipments/armor.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Rüstung}
\cardbuycost{7}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat + 1 Rüstung}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat + 1 Rüstung}
\cardplaycost{2}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/cloak.tex b/latex/cards/de/equipments/cloak.tex
index a015218e..cf949b4f 100644
--- a/latex/cards/de/equipments/cloak.tex
+++ b/latex/cards/de/equipments/cloak.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Umhang}
\cardbuycost{3}
-\cardsplitcontent{Durability: 2}{Die ausgerüstete Unit ist verschleiert (kann kein Ziel sein)}
+\cardsplitcontent{Haltbarkeit: 2}{Die ausgerüstete Unit ist verschleiert (kann kein Ziel sein)}
\cardplaycost{7}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/gear.tex b/latex/cards/de/equipments/gear.tex
index 906b9198..9006452e 100644
--- a/latex/cards/de/equipments/gear.tex
+++ b/latex/cards/de/equipments/gear.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Ausrüsung}
\cardbuycost{2}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat +1 Bewegung}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat +1 Bewegung}
\cardplaycost{3}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/mace.tex b/latex/cards/de/equipments/mace.tex
index cf667ec2..85d04ab3 100644
--- a/latex/cards/de/equipments/mace.tex
+++ b/latex/cards/de/equipments/mace.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Streitkolben}
\cardbuycost{2}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit verursacht Paralyse wenn sie im Nahkampf Schaden zufügt}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit verursacht Paralyse wenn sie im Nahkampf Schaden zufügt}
\cardplaycost{6}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/plate_armor.tex b/latex/cards/de/equipments/plate_armor.tex
index e0a1c2b9..13e93dbf 100644
--- a/latex/cards/de/equipments/plate_armor.tex
+++ b/latex/cards/de/equipments/plate_armor.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Plattenrüstung}
\cardbuycost{8}
-\cardsplitcontent{Durability: 1}{Die ausgerüstete Unit hat +2 Rüstung und -2 Bewegung}
+\cardsplitcontent{Haltbarkeit: 1}{Die ausgerüstete Unit hat +2 Rüstung und -2 Bewegung}
\cardplaycost{3}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/poisoned_dagger.tex b/latex/cards/de/equipments/poisoned_dagger.tex
index 034b735b..e4c3cacc 100644
--- a/latex/cards/de/equipments/poisoned_dagger.tex
+++ b/latex/cards/de/equipments/poisoned_dagger.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Giftiger Dolch}
\cardbuycost{3}
-\cardsplitcontent{Durability: 2}{Die ausgerüstete Unit fügt Gift Marken statt Schaden im Nahkampf zu}
+\cardsplitcontent{Haltbarkeit: 2}{Die ausgerüstete Unit fügt Gift Marken statt Schaden im Nahkampf zu}
\cardplaycost{7}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/equipments/spear.tex b/latex/cards/de/equipments/spear.tex
index d386648e..a14afa8d 100644
--- a/latex/cards/de/equipments/spear.tex
+++ b/latex/cards/de/equipments/spear.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Speer}
\cardbuycost{2}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat +1 Angriff und Range 2 gegen Units mit Bewegung >= 3}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat +1 Angriff und Range 2 gegen Units mit Bewegung >= 3}
\cardplaycost{7}
\cardmodule{equipments}
\cardborder
diff --git a/latex/cards/de/exp1/fishing_rod.tex b/latex/cards/de/exp1/fishing_rod.tex
index e5f32953..8e9b0e1f 100644
--- a/latex/cards/de/exp1/fishing_rod.tex
+++ b/latex/cards/de/exp1/fishing_rod.tex
@@ -5,7 +5,7 @@
\begin{tikzpicture}
\cardtypeEquipment{Angel}
\cardbuycost{2}
-\cardsplitcontent{Durability: 3}{Die ausgerüstete Unit hat keine Upkeep-Kosten}
+\cardsplitcontent{Haltbarkeit: 3}{Die ausgerüstete Unit hat keine Upkeep-Kosten}
\cardplaycost{3}
\cardmodule{exp1}
\cardborder
diff --git a/latex/cards/de/misc/stick_of_victory.tex b/latex/cards/de/misc/stick_of_victory.tex
index f0be9f8c..8e603db4 100644
--- a/latex/cards/de/misc/stick_of_victory.tex
+++ b/latex/cards/de/misc/stick_of_victory.tex
@@ -4,7 +4,7 @@
\begin{document}
\begin{tikzpicture}
\cardtypeEquipmentToken{Stecken des Sieges}
-\cardsplitcontent{Durability: unbegrenzt}{Immer wenn die ausgerüstete Unit aktiviert wird erhält ihr Beherscher einen Siegespunkt}
+\cardsplitcontent{Haltbarkeit: unbegrenzt}{Immer wenn die ausgerüstete Unit aktiviert wird erhält ihr Beherscher einen Siegespunkt}
\cardmodule{}
\cardborder
\end{tikzpicture}
diff --git a/scripts/generate_card.py b/scripts/generate_card.py
index a4e1d3ef..c45810b9 100755
--- a/scripts/generate_card.py
+++ b/scripts/generate_card.py
@@ -168,7 +168,7 @@ def generate_latex(card: MutableMapping, language='en'):
card_content += f'\\cardcontent{{{effect}}}\n'
elif card['type'] == 'equipment':
- formatted_durability = get_formatted_key('durability')
+ formatted_durability = get_formatted_key('durability', language)
durability = get_field(card, 'durability', language)
stats = f'{formatted_durability}: {durability}'
effect, _ = get_latex_field(card, 'effect', language)