Move towards using item structural function when using items
This commit is contained in:
@@ -15,7 +15,7 @@ updateLaser w pt =
|
||||
( case _lpType pt of
|
||||
DamageLaser dam -> damThingHitWith
|
||||
(\p1 p2 p3 -> Damage LASERING dam p1 p2 p3 NoDamageEffect) sp xp thHit w
|
||||
TargetingLaser itid -> w & pointerToItemID itid . itUse . tgPos ?~ last ps
|
||||
TargetingLaser itid -> w & pointerToItemID itid . itTargeting . itTgPos ?~ last ps
|
||||
, Laser{_lzPoints = sp : ps, _lzColor = _lpColor pt, _lzType = _lpType pt}
|
||||
)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user