more cursor cleanup. right clicking removes inventory cursor.

This commit is contained in:
=
2014-09-15 22:16:34 -07:00
parent bcb80ae2db
commit e5b2f95699
3 changed files with 21 additions and 12 deletions

View File

@@ -135,7 +135,9 @@
(reify
IAction
(begin [this screen entities]
(update-in entities [target-id :inventory] #(conj % item)))
(-> entities
(update-in [target-id :inventory] #(conj % item))
(assoc-in [:cursor :current] item)))
(continue [this screen entities] entities)