Start of conveyor belt puzzle.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 22:54:24 +0000 (00:54 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 22:54:33 +0000 (00:54 +0200)
data/location_decks/puzzles/belts.yaml [new file with mode: 0644]

diff --git a/data/location_decks/puzzles/belts.yaml b/data/location_decks/puzzles/belts.yaml
new file mode 100644 (file)
index 0000000..3fc31ed
--- /dev/null
@@ -0,0 +1,110 @@
+description: "Moving the Mountain"
+puzzle: true
+
+# This field is ignored, but it's a useful place to put some action definitions
+# we can reference later.
+_action_definitions:
+  - &DO-NOTHING
+    action_class: DoNothing
+    required_bits: []
+  - &WIN-ONCE
+    action_class: GenericBits
+    required_bits: [RED, GREEN, BLUE]
+    data:
+      clear: [RED, GREEN, BLUE]
+      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:
+  - &WIN-CARD
+    card_name: 'win-card'
+    bits: [RED, GREEN, BLUE]
+    actions:
+      - *DO-NOTHING
+      - *WIN-ONCE
+  - &BORING
+    card_name: 'boring'
+    actions:
+      - *DO-NOTHING
+  - &RED-CARD
+    card_name: 'red-card'
+    bits: [RED]
+    actions:
+      - action_class: GenericBits
+        required_bits: []
+        data:
+          toggle: [RED]
+  - &BLUE-CARD
+    card_name: 'blue-card'
+    bits: [BLUE]
+    actions:
+      - action_class: GenericBits
+        required_bits: []
+        data:
+          toggle: [BLUE]
+  - &GREEN-CARD
+    card_name: 'green-card'
+    bits: [GREEN]
+    actions:
+      - action_class: GenericBits
+        required_bits: []
+        data:
+          toggle: [GREEN]
+  - &HOSPITAL
+    card_name: 'hospital'
+    bits: []
+    actions:
+      - action_class: GenericBits
+        required_bits: []
+        data:
+          gain_health: true
+  - &UNIVERSAL
+    card_name: 'universal-transporter'
+    bits: []
+    actions:
+      - action_class: ShiftLocations
+        required_bits: []
+        data:
+          direction: NORTH
+          skip_current: false
+          move_player: true
+      - action_class: ShiftLocations
+        required_bits: []
+        data:
+          direction: WEST
+          skip_current: false
+          move_player: true
+
+cards:
+  - *WIN-CARD
+  - *BORING
+  - *BORING
+  - *BORING
+  - *WIN-CARD
+
+  - *BORING
+  - *BORING
+  - *GREEN-CARD
+  - *BORING
+  - *BORING
+
+  - *BORING
+  - *RED-CARD
+  - *UNIVERSAL
+  - *BLUE-CARD
+  - *BORING
+
+  - *BORING
+  - *BORING
+  - *HOSPITAL
+  - *BORING
+  - *BORING
+
+  - *WIN-CARD
+  - *BORING
+  - *BORING
+  - *BORING
+  - *WIN-CARD