Fold some ammo data into its own type

This commit is contained in:
2021-11-27 13:40:56 +00:00
parent bfdac2fad5
commit 92a8dd59b8
21 changed files with 175 additions and 115 deletions
+1 -1
View File
@@ -17,6 +17,6 @@ basicWeaponDisplay it = case it ^? itAttachment of
_ -> midPadL 10 ' ' (_itName it) (' ' : aIfLoaded)
where
aIfLoaded = case it ^? wpReloadState of
Just 0 -> show $ _wpLoadedAmmo it
Just 0 -> show $ _wpLoadedAmmo (_wpAmmo it)
Just x -> "R" ++ show x
_ -> ""