Move some item datatypes into dedicated module

This commit is contained in:
2021-11-29 16:50:44 +00:00
parent f40d486d68
commit 89a80a0c77
15 changed files with 90 additions and 124 deletions
+6 -5
View File
@@ -86,13 +86,11 @@ defaultGun = Weapon
, _itIdentity = Pistol
, _itConsumption = defaultAmmo
, _itUse = defaultrUse
, _wpSpread = 0.02
, _wpRange = 20
, _itFloorPict = const $ noPic $ colorSH green (prismPoly
(map (addZ 3) $ rectNESW 3 3 (-3) (-3))
(map (addZ 0) $ rectNESW 5 3 (-5) (-7))
)
, _itZoom = ItZoom 20 0.2 1
-- , _itZoom = ItZoom 20 0.2 1
, _itEquipPict = pictureWeaponOnAim
, _itScroll = \_ _ -> id
, _itAttachment = NoItAttachment
@@ -101,8 +99,11 @@ defaultGun = Weapon
, _itInvDisplay = basicWeaponDisplay
, _itInvColor = white
, _itTargeting = Nothing
, _itWorldTrigger = Nothing
, _wpNumBarrels = 1
, _itType = Weapon'
{ _wpSpread = 0.02
, _wpRange = 20
, _wpNumBarrels = 1
}
, _itDimension = defaultItemDimension
}
defaultItemDimension :: ItemDimension