can't get stash too quickly now.

This commit is contained in:
Bryce Covert
2015-08-15 10:33:21 -07:00
parent 7d04d6fa69
commit a04259a9da
2 changed files with 7 additions and 4 deletions

View File

@@ -104,12 +104,18 @@
(do-saved-grandma-dialogue entities)
(do-grandma-dialogue-with-cat entities)))
(defn remove-rock-if-necessary [entities]
(if (actions/has-obtained? entities :note-1)
entities
(utils/remove-interaction entities :rock)))
(defn make-night [entities]
(-> entities
(update-in [:room :entities] #(dissoc % :grandma))
(utils/remove-interaction :ladder-area)
(utils/remove-interaction :grandma)
(update-in [:room :entities] #(assoc % :owl (doto (get-in entities [:room :owl]) println)))))
(update-in [:room :entities] #(assoc % :owl (get-in entities [:room :owl])))
remove-rock-if-necessary))
(defn talk-to-owl [entities]