minor dialogue tweak.

This commit is contained in:
Bryce Covert
2015-12-30 08:44:37 -08:00
parent 53b17f0d17
commit 2387918a6a
2 changed files with 8 additions and 1 deletions

View File

@@ -631,8 +631,15 @@
(actions/walk-to entities :ego [257 90] :face :right :skip-type :end)
(actions/talk entities :ego (str "Anyone home?"))
(actions/play-animation entities :ego :reach)
(if (= :night (get-in @entities [:state :time]))
(cond
(get-in @entities [:room :entities :wizard])
(actions/do-dialogue entities :wizard "What are you doing, boy?"
:wizard "I'm right here.")
(= :night (get-in @entities [:state :time]))
(actions/talk entities :ego "It's locked.")
:else
(do (actions/play-animation entities :door :open)
(actions/transition-background entities :inside-house [237 0] :between (fn [s e]
(if (= 1 (rand-int 2))