This commit is contained in:
2022-02-22 22:07:55 +00:00
parent 8a7d06783d
commit 1e5f24c8a1
9 changed files with 20 additions and 49 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
module Dodge.Item.Weapon.Targeting
where
( useTargetPos
, removeItTarget
) where
import Dodge.Data
import Geometry.Data
@@ -10,9 +12,9 @@ useTargetPos
-> Creature
-> World
-> World
useTargetPos f cr w = case cr ^? crInv . ix (_crInvSel cr) . itTargeting' . tgPos of
useTargetPos f cr w = case cr ^? crInv . ix (_crInvSel cr) . itTargeting . tgPos of
Nothing -> w
Just p -> f p cr w
removeItTarget :: Item -> Item
removeItTarget = itTargeting' . tgPos .~ Nothing
removeItTarget = itTargeting . tgPos .~ Nothing