Make reloading based upon creature stance

This commit is contained in:
2022-06-20 00:53:47 +01:00
parent 8d457033a2
commit 2f4b381484
11 changed files with 91 additions and 77 deletions
+12 -6
View File
@@ -482,14 +482,19 @@ data Equipment = Equipment
_itUseAimStance :: Item -> AimStance
_itUseAimStance = _aimStance . _useAim . _itUse
data TransferState
= Transfer { _transferAmount :: Int , _transferTime :: Int}
| NoTransfer
deriving (Eq,Ord,Show)
data ItemConsumption
= LoadableAmmo
{ _laType :: AmmoType
, _laMax :: Int
{ _laType :: AmmoType
, _laMax :: Int
, _laLoaded :: Int
, _laReloadTime :: Int
, _laReloadState :: Maybe' Int
, _laReloadType :: ReloadType
, _laReloadTime :: Int
, _laTransfer :: TransferState
, _laReloadType :: ReloadType
}
| ChargeableAmmo
{ _wpMaxCharge :: Int
@@ -549,7 +554,7 @@ data ItemPortage
data ReloadType
= ActiveClear
| ActivePartial Int
| ActivePartial {_partialReloadAmount :: Int}
| PassiveReload SoundID
deriving Eq
@@ -1476,6 +1481,7 @@ makeLenses ''ItEffect
makeLenses ''FloorItem
makeLenses ''ItemConsumption
makeLenses ''AmmoType
makeLenses ''TransferState
makeLenses ''TweakParam
makeLenses ''Prop
makeLenses ''Modification