feedback.

This commit is contained in:
Bryce Covert
2015-12-08 08:45:07 -08:00
parent 84c687d86f
commit a7cb87cf8d
3 changed files with 11 additions and 3 deletions

View File

@@ -322,7 +322,15 @@
(actions/do-dialogue entities :ego "I'm trying to escape."
:ego "Not help the next bloke who gets trapped here."))}}
:chest {:box [194 62 228 99]
:script (actions/get-script entities (touch-chest entities))}
:script (actions/get-script entities (touch-chest entities))
:scripts {:key (actions/get-script entities
(if (get-in @entities [:state :opened-bars?])
(do
(actions/walk-to entities :ego [192 66] :face :right)
(actions/play-animation entities :ego :reach)
(actions/do-dialogue entities :ego "The key doesn't unlock the chest."
:ego "Good thing it's not locked!"))
(actions/talk entities :ego "Not while I'm in this cell.")))}}
:door {:box [257 62 301 152]
:cursor :down
:script (actions/get-script entities (leave entities))}}