more progress

This commit is contained in:
Bryce Covert
2016-07-29 09:25:25 -07:00
parent c765649d4d
commit a93c13d90c
3 changed files with 81 additions and 30 deletions

View File

@@ -541,7 +541,7 @@
(defn remove-item [entities item]
(run-action entities
(begin [this screen entities]
(screen! @(resolve 'advent.screens.scene/hud) :on-remove-item :item item)
(screen! @(resolve 'advent.screens.scene/hud) :on-remove-item :item ((:all-items entities) item))
(-> entities
(update-in [:state :inventory] #(remove (partial = item) %))
(assoc-in [:cursor :current] :main)))