From: Jeremy Thurgood Date: Mon, 12 May 2014 17:38:11 +0000 (+0200) Subject: Define some YAML references for common actions. X-Git-Tag: 0.1~355 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=5c6aa37bbb478f28c8e24ac9b56865f758a3e868;p=naja.git Define some YAML references for common actions. --- 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