Cleanup launchers
This commit is contained in:
@@ -154,9 +154,10 @@ targetRBPressUpdate _ _ w t
|
||||
|
||||
targetRBCreatureUpdate :: Item -> Creature -> World -> Targeting -> Targeting
|
||||
targetRBCreatureUpdate _ _ w t
|
||||
| SDL.ButtonRight `S.member` _mouseButtons w = t & updatePos
|
||||
| SDL.ButtonRight `S.member` _mouseButtons w && isJust (t ^? tgID . _Just)
|
||||
= t & updatePos
|
||||
& tgActive .~ True
|
||||
| otherwise = t & tgID .~ fmap _crID (creatureNearPoint mwp w)
|
||||
| otherwise = t & tgID .~ fmap _crID (creatureNearPointI 3 mwp w)
|
||||
& updatePos
|
||||
& tgActive .~ False
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user