From 0692ccd33afc4fdd80550e9979b824c1c25e973b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 28 Feb 2021 17:01:38 +0100 Subject: 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. --- data/cards/misc/farmer.yml | 6 ++++++ data/cards/misc/king.yml | 8 ++++++++ data/cards/misc/stick_of_victory.yml | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 data/cards/misc/farmer.yml create mode 100644 data/cards/misc/king.yml create mode 100644 data/cards/misc/stick_of_victory.yml (limited to 'data/cards/misc') 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 -- cgit v1.2.3