Tweak rockets, smoke

This commit is contained in:
2024-12-28 10:08:14 +00:00
parent 1507b8d3ed
commit 2abb70334f
6 changed files with 41 additions and 19 deletions
+4 -3
View File
@@ -16,10 +16,11 @@ import LensHelp
createShell :: RocketHoming
-> Maybe (NewInt ItmInt)
-> Maybe (NewInt ItmInt)
-> Bool
-- -> Bool
-> ProjectileType
-> Payload -> Muzzle -> Creature -> World -> World
createShell homing mdetonator mscreen smokestatus pjtype payload muz cr w = w
--createShell homing mdetonator mscreen smokestatus pjtype payload muz cr w = w
createShell homing mdetonator mscreen pjtype payload muz cr w = w
& updatescreen
& updatedetonator
& cWorld . lWorld . projectiles . at i
@@ -52,7 +53,7 @@ createShell homing mdetonator mscreen smokestatus pjtype payload muz cr w = w
Rocket{} -> 350
thrustorgrav = case pjtype of
Grenade -> [ApplyGravityPU]
Rocket{} -> [ThrustPU (lifespan - thrustdelay) 0 smokestatus]
Rocket{} -> [ThrustPU (lifespan - thrustdelay) 0]
spindrag = 1
spinamount = 2
thrustdelay = 20