Remove old datatypes, change ammomag inv text colour

This commit is contained in:
2024-06-22 12:15:10 +01:00
parent 8e127f0603
commit e977673aa2
8 changed files with 13 additions and 22 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ tinMag =
.~ AmmoMagUse
{ _amagParams = BulletParams defaultBullet
, _amagLoadStatus =
InternalAmmo
ReloadStatus
{ _iaMax = 15
, _iaLoaded = 15
, _iaPrimed = True
@@ -51,7 +51,7 @@ shellMag =
.~ AmmoMagUse
{ _amagParams = BulletParams defaultBullet
, _amagLoadStatus =
InternalAmmo
ReloadStatus
{ _iaMax = 15
, _iaLoaded = 15
, _iaPrimed = True
+1 -1
View File
@@ -171,7 +171,7 @@ showReloadProgress _ itm = fromMaybe [] $ do
-- where
-- ic = itm ^?! itUse . heldConsumption
showLoadActionType :: LoadAction -> InternalAmmo -> String
showLoadActionType :: LoadAction -> ReloadStatus -> String
showLoadActionType la as = case la of
LoadEject{} -> "E"
LoadInsert{} -> "L"
+1 -1
View File
@@ -12,4 +12,4 @@ itemInvColor itm = case itm ^. itType . iyBase of
CONSUMABLE {} -> blue
CRAFT {} -> green
ATTACH {} -> orange
AMMOMAG {} -> greyN 0.5
AMMOMAG {} -> greyN 0.8