consuming item when used.
This commit is contained in:
@@ -290,7 +290,9 @@
|
|||||||
(defn remove-item [entities item]
|
(defn remove-item [entities item]
|
||||||
(run-action entities
|
(run-action entities
|
||||||
(begin [this screen entities]
|
(begin [this screen entities]
|
||||||
(update-in entities [:state :inventory] #(remove (partial = item) %)))
|
(-> entities
|
||||||
|
(update-in [:state :inventory] #(remove (partial = item) %))
|
||||||
|
(assoc-in [:cursor :current] :main)))
|
||||||
|
|
||||||
(continue [this screen entities] entities)
|
(continue [this screen entities] entities)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user