From 5c6aa37bbb478f28c8e24ac9b56865f758a3e868 Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Mon, 12 May 2014 19:38:11 +0200 Subject: [PATCH] Define some YAML references for common actions. --- data/location_decks/test.yaml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/data/location_decks/test.yaml b/data/location_decks/test.yaml index b5df649..d26cafd 100644 --- a/data/location_decks/test.yaml +++ b/data/location_decks/test.yaml @@ -1,16 +1,26 @@ description: "Test location deck." + +# This field is ignored, but it's a useful place to put some action definitions +# we can reference later. +_standard_actions: + bad_default: &BAD-DEFAULT + action_class: 'LoseHealthOrMSB' + required_bits: [] + toggle_bits_c: &TOGGLE-BITS-C + action_class: 'ToggleBits' + required_bits: [CYAN] + set_bits_ym: &SET-BITS-YM + action_class: 'SetBits' + required_bits: [YELLOW, MAGENTA] + cards: - actions: [] - actions: - - action_class: 'LoseHealthOrMSB' - required_bits: [] - - action_class: 'ToggleBits' - required_bits: [CYAN] - - action_class: 'SetBits' - required_bits: [YELLOW, MAGENTA] + - *BAD-DEFAULT + - *TOGGLE-BITS-C + - *SET-BITS-YM - actions: - action_class: 'ToggleBits' required_bits: [YELLOW] - actions: - - action_class: 'SetBits' - required_bits: [YELLOW, CYAN] + - *SET-BITS-YM -- 2.34.1