made it so you can make the spell componoent.
This commit is contained in:
@@ -140,12 +140,12 @@
|
||||
(actions/give entities :flask-2))))
|
||||
|
||||
(defn add-wizard-if-necessary [entities]
|
||||
(if (actions/has-item? entities :flask-water)
|
||||
(if (actions/has-obtained? entities :flask-water)
|
||||
entities
|
||||
(update-in entities [:room :entities] #(assoc % :wizard (get-in entities [:room :wizard])))))
|
||||
|
||||
(defn add-note-if-necessary [entities]
|
||||
(if (and (actions/has-item? entities :flask-water)
|
||||
(if (and (actions/has-obtained? entities :flask-water)
|
||||
(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