PHYRRIC Victory\!
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 19:34:24 +0000 (21:34 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 19:43:39 +0000 (21:43 +0200)
data/location_decks/puzzles/chess.yaml

index d98e400fdfe1524a6c203b53827ef384a33e0c08..42345731715aba6086110591ea702b51ce2872fe 100644 (file)
@@ -1,6 +1,18 @@
 description: "Kasparov to F3"
 puzzle: true
 
+# This field is ignored, but it's a useful place to put some action definitions
+# we can reference later.
+_action_defitions:
+  - &PHYRRIC-VICTORY
+    action_class: GenericBits
+    required_bits: [RED, GREEN, BLUE]
+    data:
+      clear: [NORTH, SOUTH, EAST, WEST, RED, GREEN, BLUE, MSB]
+      acquire_win: true
+      lose_health: true
+      once: true
+
 # This field is ignored, but it's a useful place to put some card definitions
 # we can reference later.
 _card_definitions:
@@ -11,13 +23,7 @@ _card_definitions:
         required_bits: []
         data:
           chesspiece: BISHOP
-      - action_class: GenericBits
-        required_bits: [RED, GREEN, BLUE]
-        data:
-          clear: [NORTH, SOUTH, EAST, WEST, RED, GREEN, BLUE, MSB]
-          acquire_win: true
-          lose_health: true
-          once: true
+      - *PHYRRIC-VICTORY
   - &CHESS-WIN-CARD-CASTLE
     card_name: 'chess-win-rook'
     actions:
@@ -25,10 +31,7 @@ _card_definitions:
         required_bits: []
         data:
           chesspiece: CASTLE
-      - action_class: AcquireWinToken
-        required_bits: [RED, GREEN, BLUE]
-        data:
-          once: true
+      - *PHYRRIC-VICTORY
   - &CHESS-WIN-CARD-KNIGHT
     card_name: 'chess-win-knight'
     actions:
@@ -36,19 +39,13 @@ _card_definitions:
         required_bits: []
         data:
           chesspiece: KNIGHT
-      - action_class: AcquireWinToken
-        required_bits: [RED, GREEN, BLUE]
-        data:
-          once: true
+      - *PHYRRIC-VICTORY
   - &CHESS-WIN-CARD-SEPPUKU
     card_name: 'chess-win-seppuku'
     actions:
       - action_class: LoseHealthOrMSB
         required_bits: []
-      - action_class: AcquireWinToken
-        required_bits: [RED, GREEN, BLUE]
-        data:
-          once: true
+      - *PHYRRIC-VICTORY
   - &TEST-BORING
     card_name: 'test-boring'
     actions: