Cleanup targeting
This commit is contained in:
@@ -139,7 +139,7 @@ pjTrack :: Int -> Proj -> World -> World
|
||||
pjTrack itid pj w = rotateToTarget pj w
|
||||
where
|
||||
rotateToTarget _ = fromMaybe id $ do
|
||||
tpos <- w ^? itPoint . itTargeting . tgPos . _Just
|
||||
tpos <- w ^? itPoint . itUse . heldTargeting . tgPos . _Just
|
||||
return $
|
||||
cWorld . lWorld . projectiles . ix (_prjID pj) . prjSpin
|
||||
.~ turnToAmount
|
||||
|
||||
Reference in New Issue
Block a user