Use GenericBits for NEWS.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 17:56:12 +0000 (19:56 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 17:56:21 +0000 (19:56 +0200)
data/location_decks/puzzles/chess.yaml

index 364de026389bdc849d63684592eef466674d20fb..03528df01df18071fd39ba4a7bde91f3adc207be 100644 (file)
@@ -36,20 +36,30 @@ _card_definitions:
     card_name: 'chess-south'
     bits: [SOUTH, EAST, WEST, RED, GREEN]
     actions:
-      - action_class: 'ToggleBits'
-        required_bits: [SOUTH]
+      - action_class: 'GenericBits'
+        required_bits: []
+        data:
+          toggle: [RED, GREEN]
+          clear: [SOUTH, EAST, WEST]
   - &CHESS-EAST
     card_name: 'chess-east'
     bits: [NORTH, SOUTH, EAST, RED, BLUE]
     actions:
-      - action_class: 'ToggleBits'
-        required_bits: [EAST]
+      - action_class: 'GenericBits'
+        required_bits: []
+        data:
+          toggle: [RED, BLUE]
+          clear: [NORTH, SOUTH, EAST]
+
   - &CHESS-WEST
     card_name: 'chess-west'
     bits: [NORTH, SOUTH, WEST, BLUE, MSB]
     actions:
-      - action_class: 'ToggleBits'
-        required_bits: [WEST]
+      - action_class: 'GenericBits'
+        required_bits: []
+        data:
+          toggle: [BLUE, MSB]
+          clear: [NORTH, SOUTH, WEST]
 
 cards:
   - *TEST-WIN-CARD