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/nautics/barge.yml | 7 +++++++ data/cards/nautics/captain.yml | 8 ++++++++ data/cards/nautics/fish_trap.yml | 5 +++++ data/cards/nautics/fisher.yml | 8 ++++++++ data/cards/nautics/galley.yml | 8 ++++++++ data/cards/nautics/sailor.yml | 7 +++++++ 6 files changed, 43 insertions(+) create mode 100644 data/cards/nautics/barge.yml create mode 100644 data/cards/nautics/captain.yml create mode 100644 data/cards/nautics/fish_trap.yml create mode 100644 data/cards/nautics/fisher.yml create mode 100644 data/cards/nautics/galley.yml create mode 100644 data/cards/nautics/sailor.yml (limited to 'data/cards/nautics') diff --git a/data/cards/nautics/barge.yml b/data/cards/nautics/barge.yml new file mode 100644 index 00000000..20e26015 --- /dev/null +++ b/data/cards/nautics/barge.yml @@ -0,0 +1,7 @@ +name: Barge +type: unit +health: 3 +movement: 3 swimming +buy: 5 +upkeep: 1 +effect: Crew 6 diff --git a/data/cards/nautics/captain.yml b/data/cards/nautics/captain.yml new file mode 100644 index 00000000..fbab764f --- /dev/null +++ b/data/cards/nautics/captain.yml @@ -0,0 +1,8 @@ +name: Captain +type: unit +health: 1 +movement: 1 +attack: 1 +buy: 7 +upkeep: 2 +effect: Other units in the same pile have no upkeep cost diff --git a/data/cards/nautics/fish_trap.yml b/data/cards/nautics/fish_trap.yml new file mode 100644 index 00000000..c7082093 --- /dev/null +++ b/data/cards/nautics/fish_trap.yml @@ -0,0 +1,5 @@ +name: Fish Trap +type: artifact +token: true +effect: Adjacent Fisher have full_action(Gain 2 Resource) +latex_effect: "Adjacent Fisher have \\\\ \\enquote{~\\faRedo: Gain 2 Resource}" diff --git a/data/cards/nautics/fisher.yml b/data/cards/nautics/fisher.yml new file mode 100644 index 00000000..9708fc67 --- /dev/null +++ b/data/cards/nautics/fisher.yml @@ -0,0 +1,8 @@ +name: Fisher +type: unit +health: 2 +movement: 2 swimming +buy: 5 +upkeep: 1 +effect: Crew 2 +full_action: Create fish trap token on adjacent water tile diff --git a/data/cards/nautics/galley.yml b/data/cards/nautics/galley.yml new file mode 100644 index 00000000..c7da7c63 --- /dev/null +++ b/data/cards/nautics/galley.yml @@ -0,0 +1,8 @@ +name: Galley +type: unit +health: 4 +attack: 1 range 2 +movement: 3 swimming +buy: 7 +upkeep: 1 +effect: Crew 3 diff --git a/data/cards/nautics/sailor.yml b/data/cards/nautics/sailor.yml new file mode 100644 index 00000000..96c95b03 --- /dev/null +++ b/data/cards/nautics/sailor.yml @@ -0,0 +1,7 @@ +name: Sailor +type: unit +health: 1 +movement: 1 +attack: 1 +upkeep: 1 +effect: A crewed unit gets +1 movement while swimming -- cgit v1.2.3