-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensations.yml
42 lines (38 loc) · 1.6 KB
/
sensations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- name: Reset messages.
set_fact:
bats_msg: ""
pit_msg: ""
wumpus_msg: ""
- name: Get adjacent rooms.
set_fact:
first: "{{ cave[position]['connect'][0] }}"
second: "{{ cave[position]['connect'][1] }}"
third: "{{ cave[position]['connect'][2] }}"
- name: Sensations | Feel pits.
set_fact:
pit_msg: "*whoosh* (I feel a draft from some pits)."
when: (cave[cave[position]['connect'][0]]['pit']
or cave[cave[position]['connect'][1]]['pit']
or cave[cave[position]['connect'][2]]['pit'])
- name: Sensations | Hear bats.
set_fact:
bats_msg: "*rustle* *rustle* (must be bats nearby)"
when: (cave[cave[position]['connect'][0]]['bats']
or cave[cave[position]['connect'][1]]['bats']
or cave[cave[position]['connect'][2]]['bats'])
- name: Sensations | Smell Wumpus.
set_fact:
wumpus_msg: "*sniff* (I can smell the evil Wumpus nearby!)"
when: (cave[cave[position]['connect'][0]]['wumpus']
or cave[cave[position]['connect'][1]]['wumpus']
or cave[cave[position]['connect'][2]]['wumpus']
or cave[cave[first|string]['connect'][0]]['wumpus']
or cave[cave[first|string]['connect'][1]]['wumpus']
or cave[cave[first|string]['connect'][2]]['wumpus']
or cave[cave[second|string]['connect'][0]]['wumpus']
or cave[cave[second|string]['connect'][1]]['wumpus']
or cave[cave[second|string]['connect'][2]]['wumpus']
or cave[cave[third|string]['connect'][0]]['wumpus']
or cave[cave[third|string]['connect'][1]]['wumpus']
or cave[cave[third|string]['connect'][2]]['wumpus'])