drops the coin correctly.
This commit is contained in:
@@ -270,12 +270,12 @@
|
||||
(actions/give entities :flask-2))))
|
||||
|
||||
(defn add-wizard-if-necessary [entities]
|
||||
(if (actions/has-obtained? entities :money)
|
||||
(if (get-in entities [:state :seen-frankie?])
|
||||
entities
|
||||
(update-in entities [:room :entities] #(assoc % :wizard (get-in entities [:room :wizard])))))
|
||||
|
||||
(defn add-note-if-necessary [entities]
|
||||
(if (and (actions/has-obtained? entities :money)
|
||||
(if (and (get-in entities [:state :seen-frankie?])
|
||||
(not (actions/has-obtained? entities :note-1)))
|
||||
(update-in entities [:room :entities] #(assoc % :note (get-in entities [:room :note])))
|
||||
entities))
|
||||
|
||||
Reference in New Issue
Block a user