Add attached/aiming checks on item usage
This commit is contained in:
@@ -53,9 +53,6 @@ useHotkey w (NInt itid, pt) = fromMaybe w $ do
|
||||
invid <- w ^? cWorld . lWorld . itemLocations . ix itid . ilInvID
|
||||
return $ useItem invid pt w
|
||||
|
||||
--allHotkeys :: [SDL.Scancode]
|
||||
--allHotkeys = map hotkeyToScancode [minBound .. maxBound]
|
||||
|
||||
hotkeyToScancode :: Hotkey -> SDL.Scancode
|
||||
hotkeyToScancode x = case x of
|
||||
HotkeyQ -> SDL.ScancodeQ
|
||||
|
||||
Reference in New Issue
Block a user