made it so you can make the spell componoent.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
width (or width (.getRegionWidth region))
|
||||
height (or height (.getRegionHeight region))]
|
||||
((zone/box entity-x entity-y (+ entity-x (* width (or 1 scale-x))) (+ entity-y (* height (or scale-y 1)))) x y)))}
|
||||
(when (:script entity)
|
||||
(when (or (:scripts entity) (:script entity))
|
||||
{:get-script (fn [cursor [x y]]
|
||||
(if (= :main cursor)
|
||||
(:script entity)
|
||||
|
||||
Reference in New Issue
Block a user