Refactor, add bullet modules and weapon effect modifiers

This commit is contained in:
2021-05-27 02:50:33 +02:00
parent 0187ae6001
commit 346c426b43
13 changed files with 395 additions and 144 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ defaultGun = Weapon
, _itUseRate = 8
, _itUseTime = 0
, _itUse = \_ _ -> id
, _itUseModifiers = []
, _itLeftClickUse = Nothing
, _wpSpread = 0.02
, _wpRange = 20
@@ -37,6 +38,7 @@ defaultGun = Weapon
, _itTargeting = Nothing
, _itWorldTrigger = Nothing
}
defaultAutoGun :: Item
defaultAutoGun = defaultGun
{ _itScrollUp = const id
@@ -48,7 +50,7 @@ defaultShellAmmo :: Ammo
defaultShellAmmo = ShellAmmo
{ _amPayload = \_ -> id
, _amString = "Shell"
, _amPjMove = []
, _amPjParams = []
, _amPjDraw = \_ -> blank
, _amParamSel = 0
}