Make chess puzzle level (Kasparov to F3) winnable. master
authorSimon Cross <hodgestar@gmail.com>
Sun, 8 Jun 2014 20:04:15 +0000 (22:04 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sun, 8 Jun 2014 20:04:15 +0000 (22:04 +0200)
data/location_decks/puzzles/chess.yaml

index 7af047b35cae371d9d7db5974b2075469e9e8209..1f96f70c2f0cf59d85d7392e5cff18b3287a7114 100644 (file)
@@ -12,6 +12,15 @@ _action_defitions:
       acquire_win: true
       lose_health: true
       once: true
       acquire_win: true
       lose_health: true
       once: true
+  - &ORDINARY-VICTORY
+    action_class: GenericBits
+    required_bits: [RED, GREEN, BLUE]
+    data:
+      clear: [NORTH, SOUTH, EAST, WEST, RED, GREEN, BLUE, MSB]
+      acquire_win: true
+      lose_health: false
+      once: true
+
 
 # This field is ignored, but it's a useful place to put some card definitions
 # we can reference later.
 
 # This field is ignored, but it's a useful place to put some card definitions
 # we can reference later.
@@ -49,7 +58,7 @@ _card_definitions:
     actions:
       - action_class: LoseHealthOrMSB
         required_bits: []
     actions:
       - action_class: LoseHealthOrMSB
         required_bits: []
-      - *PYRRHIC-VICTORY
+      - *ORDINARY-VICTORY
   - &BORING
     card_name: 'boring'
     actions:
   - &BORING
     card_name: 'boring'
     actions: