Allow for no-ammo muzzles

This commit is contained in:
2025-08-10 08:09:03 +01:00
parent 9d973b2570
commit aa412f1911
9 changed files with 283 additions and 283 deletions
+7 -2
View File
@@ -13,12 +13,16 @@ data Muzzle = Muzzle
, _mzAmmoSlot :: AmmoExtractPosition
, _mzFlareType :: FlareType
, _mzEffect :: MuzzleEffect
, _mzAmmoPerShot :: AmmoPerShot
-- , _mzAmmoPerShot :: AmmoPerShot
, _mzRandomOffset :: Float
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data AmmoExtractPosition = MagBelow Int | CapacitorBelow | CapacitorSelf
data AmmoExtractPosition
= MagBelow {_magBelowID :: Int, _aps :: AmmoPerShot}
| CapacitorBelow {_aps :: AmmoPerShot}
| CapacitorSelf {_aps :: AmmoPerShot}
| NoAmmoRequired
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data FlareType
@@ -62,3 +66,4 @@ data AmmoPerShot
makeLenses ''Muzzle
makeLenses ''MuzzleEffect
makeLenses ''AmmoPerShot
makeLenses ''AmmoExtractPosition