started intro.

This commit is contained in:
2015-01-20 07:15:17 -08:00
parent ff00749c50
commit 6636538f0c
2 changed files with 20 additions and 4 deletions

View File

@@ -346,7 +346,9 @@
:obtained-items #{}
:inventory []
:clues #{}
:mints-eaten 0}))
:mints-eaten 0
:seen-intro? false}))
(defscreen scene
:on-timer
(fn [screen [entities]]
@@ -402,6 +404,8 @@
(doseq [[k [start time fn]] (get-in entities [:room :timers])]
(add-timer! screen k start time))
(when (not (get-in entities [:state :seen-intro?]))
((actions/get-script entities (rooms.dream/do-intro entities)) entities))
(if-let [apply-state (get-in entities [:room :apply-state])]
(apply-state entities)
entities))))