minor fix.

This commit is contained in:
Bryce Covert
2016-06-15 21:28:24 -07:00
parent 642eb99cf2
commit eed94fa357

View File

@@ -153,8 +153,11 @@
(actions/talk entities :wizard "Don't touch my MagiSafe!!")
(open-safe entities)))
:scripts {:tune (actions/get-script entities
(actions/talk entities :ego "How did that tune go again?")
(actions/play-safe entities))}}
(if (get-in @entities [:room :entities :wizard])
(actions/talk entities :wizard "Don't touch my MagiSafe!!")
(do
(actions/talk entities :ego "How did that tune go again?")
(actions/play-safe entities))))}}
:knight {:box [71 70 102 190]
:script (actions/get-script entities
(actions/talk entities :ego "Maybe when I am an older knight, Gandarf will give me his armor!"))}