gandarf improvements.

This commit is contained in:
Bryce Covert
2016-02-15 18:21:27 -08:00
parent 344d081541
commit d005cfaf2e
6 changed files with 29 additions and 26 deletions

View File

@@ -13,8 +13,10 @@
(defn open-safe [entities]
(actions/play-animation entities :ego :start-squat :stop? false)
(Thread/sleep 500)
(screen! safe/safe-screen :show-screen
:success (actions/get-script entities
(Thread/sleep 500)
(actions/play-animation entities :ego :end-squat)
(if (actions/has-item? entities :recipe)
@@ -36,6 +38,7 @@
(actions/give entities :mandrake)
(actions/talk entities :ego "Weird. It's some kind of root."))))
:failure (actions/get-script entities
(Thread/sleep 500)
(actions/play-animation entities :ego :end-squat)
(actions/talk entities :ego "I don't think that worked...")))
(actions/update-state entities #(assoc % :active? false)))