This commit is contained in:
2014-12-08 18:54:56 -08:00
parent 9dcd4c8b2e
commit 8cb3f3b388
3 changed files with 36 additions and 3 deletions

View File

@@ -74,7 +74,9 @@
(if current-action
entities
((or (when interaction
((:get-script interaction) (get-in entities [:cursor :current]) [x y]))
((:get-script interaction) (or (when (:cursor interaction) :main)
(get-in entities [:cursor :current]))
[x y]))
(when interacting-entity
((:get-script interacting-entity) (get-in entities [:cursor :current]) [x y]))
((:get-script default-interaction) (get-in entities [:cursor :current]) [x y])) entities))