Use Item as argument in lUse rather than Int
This commit is contained in:
@@ -74,8 +74,9 @@ useLeftItem cid w
|
||||
| itmShouldBeUsed = useItem cr w
|
||||
| otherwise = fromMaybe w $ do
|
||||
invid <- _crLeftInvSel cr
|
||||
itm <- cr ^? crInv . ix invid
|
||||
f <- cr ^? crInv . ix invid . itUse . lUse
|
||||
return $ f cr invid w
|
||||
return $ f itm cr w
|
||||
where
|
||||
cr = _creatures w IM.! cid
|
||||
itmShouldBeUsed = isJust (cr ^? crInv . ix (_crInvSel cr) . itUse . cUse)
|
||||
|
||||
Reference in New Issue
Block a user