Split item consumables from item use
This commit is contained in:
@@ -53,8 +53,8 @@ ammoMagSPic it = \case
|
||||
_ -> noPic $ upperPrismPolyTS 1 (rectNSWE 0 (- y) (-1) 1)
|
||||
where
|
||||
y = fromIntegral y' * 0.3
|
||||
y' = fromMaybe 0 $ it ^? itUse . amagLoadStatus . iaLoaded
|
||||
am = fractionLoadedAmmo (it ^?! itUse . amagLoadStatus)
|
||||
y' = fromMaybe 0 $ it ^? itConsumables . magLoadStatus . iaLoaded
|
||||
am = fractionLoadedAmmo (it ^?! itConsumables . magLoadStatus)
|
||||
|
||||
fractionLoadedAmmo :: ReloadStatus -> Float
|
||||
fractionLoadedAmmo rs = fromIntegral (_iaLoaded rs) / fromIntegral (_iaMax rs)
|
||||
|
||||
Reference in New Issue
Block a user