Allow for item use when not root
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ newHotkey lw = fromMaybe maxBound $
|
||||
-- to swap with instead
|
||||
assignHotkey :: Int -> Hotkey -> LWorld -> LWorld
|
||||
assignHotkey invid hk lw = fromMaybe lw $ do
|
||||
guard $ lw ^? creatures . ix 0 . crInv . ix invid . itUse . useCondition
|
||||
guard $ lw ^? creatures . ix 0 . crInv . ix invid . itUseCondition
|
||||
== Just UseableAnytime
|
||||
return $ (setHotkey invid hk . moveOldHotkey invid hk) lw
|
||||
|
||||
|
||||
Reference in New Issue
Block a user