Commit before changing module system to Map

This commit is contained in:
2022-02-21 07:50:15 +00:00
parent 779e076c93
commit 724ee21afc
25 changed files with 171 additions and 86 deletions
+8 -1
View File
@@ -342,7 +342,7 @@ _itUseAimStance = _aimStance . _useAim . _itUse
data ItemConsumption
= LoadableAmmo
{ _aoType :: AmmoType
, _ammoMax :: Int
, _ammoBaseMax :: Int
, _ammoLoaded :: Int
, _reloadTime :: Int
, _reloadState :: Maybe' Int
@@ -380,7 +380,13 @@ data Item
data ItemModules = ItemModules
{ _modHitEffect :: ItemModule HitEffect
, _modRifleMag :: ItemModule RifleMag
}
data RifleMag = DrumMag | BeltMag | MagnetMag
data ModuleSlot
= ModBullet
| ModRifleMag
data ItemModule a
= BlockedModule
@@ -389,6 +395,7 @@ data ItemModule a
{ _theModule :: a
, _modName :: [String]
, _modSize :: Int
, _modModification :: Item -> Item
}
data ItemDimension = ItemDimension