Minor tweaking, argument refining
This commit is contained in:
@@ -84,7 +84,7 @@ unsafeBlinkGun =
|
||||
useForceFieldGun :: Item -> Creature -> World -> World
|
||||
useForceFieldGun itm cr w = fromMaybe w $ do
|
||||
a <- _tgPos $ _itTargeting itm
|
||||
let mwp = mouseWorldPos w
|
||||
let mwp = mouseWorldPos (w ^. input) (w ^. cWorld . lWorld . camPos)
|
||||
b = if dist a mwp < 100 then mwp else a +.+ 100 *.* normalizeV (mwp -.- a)
|
||||
wlline = (a, b)
|
||||
return $
|
||||
|
||||
Reference in New Issue
Block a user