aboutsummaryrefslogtreecommitdiff
path: root/data/cards/misc
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-02-28 17:01:38 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-02-28 17:01:38 +0100
commit0692ccd33afc4fdd80550e9979b824c1c25e973b (patch)
tree8cf46b780af060d9fd6cf5a089729a9491eaa1c7 /data/cards/misc
parent5074205584de432892de5b0543b64efde4ddd6e3 (diff)
downloadmuhqs-game-0692ccd33afc4fdd80550e9979b824c1c25e973b.tar.gz
muhqs-game-0692ccd33afc4fdd80550e9979b824c1c25e973b.zip
rework how cards are defined and generated
Card definitions are now stored in data/cards/ in a subdirectory for each set as YAML files. YAML is still human readable but stricter and better to handle in code than ini. The latex filesystem layout resembles the card definition layout and is created by the Makefile from the YAML card definitions and must not be regenerated each time by hand.
Diffstat (limited to 'data/cards/misc')
-rw-r--r--data/cards/misc/farmer.yml6
-rw-r--r--data/cards/misc/king.yml8
-rw-r--r--data/cards/misc/stick_of_victory.yml5
3 files changed, 19 insertions, 0 deletions
diff --git a/data/cards/misc/farmer.yml b/data/cards/misc/farmer.yml
new file mode 100644
index 00000000..18c0a372
--- /dev/null
+++ b/data/cards/misc/farmer.yml
@@ -0,0 +1,6 @@
+name: Farmer
+type: unit
+attack: 1
+health: 1
+movement: 1
+upkeep: 1
diff --git a/data/cards/misc/king.yml b/data/cards/misc/king.yml
new file mode 100644
index 00000000..a4e7632e
--- /dev/null
+++ b/data/cards/misc/king.yml
@@ -0,0 +1,8 @@
+name: King
+token: true
+type: unit
+effect: "5 Resource: +shroud until end of turn. \\ Protection from Die!"
+upkeep: 0
+attack: 1
+health: 5
+movement: 1
diff --git a/data/cards/misc/stick_of_victory.yml b/data/cards/misc/stick_of_victory.yml
new file mode 100644
index 00000000..629b4b42
--- /dev/null
+++ b/data/cards/misc/stick_of_victory.yml
@@ -0,0 +1,5 @@
+name: Stick of Victory
+type: equipment
+token: true
+durability: infinite
+effect: The controller of the equipped unit increases its victory count by 1 in their upkeep