Fix bits and add new action.
[naja.git] / data / location_decks / test.yaml
index 75f8690a88df0f0ff109eb5be162ab73a40bdd7d..53a0c77dcd65e3f62701c7ee675c375bc841f20d 100644 (file)
@@ -1,10 +1,30 @@
-- actions: []
-- actions:
-  - action_class: 'DoNothing'
+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: &SET-BITS-DEFAULT
+    action_class: 'LoseHealthOrMSBAndSetBits'
+    required_bits: []
+  bad_default: &BAD-DEFAULT
+    action_class: 'LoseHealthOrMSB'
+    required_bits: []
+  toggle_bits_c: &TOGGLE-BITS-C
+    action_class: 'ToggleBits'
     required_bits: [CYAN]
-- actions:
-  - action_class: 'DoNothing'
-    required_bits: [YELLOW]
-- actions:
-  - action_class: 'DoNothing'
+  set_bits_ym: &SET-BITS-YM
+    action_class: 'SetBits'
     required_bits: [YELLOW, MAGENTA]
+
+cards:
+  - actions:
+    - *SET-BITS-DEFAULT
+  - actions:
+    - *BAD-DEFAULT
+    - *TOGGLE-BITS-C
+    - *SET-BITS-YM
+  - actions:
+    - action_class: 'ToggleBits'
+      required_bits: [YELLOW]
+  - actions:
+    - *SET-BITS-YM