Tweak shell spin
This commit is contained in:
@@ -42,6 +42,7 @@ createShell mdetonator mscreen stab pjtype payload muz cr w =
|
||||
, _pjID = i
|
||||
, _pjDir = dir
|
||||
, _pjSpin = 0
|
||||
, _pjSpinFactor = spinfactor
|
||||
, _pjPayload = payload
|
||||
, _pjTimer = lifespan
|
||||
, _pjUpdates =
|
||||
@@ -61,6 +62,10 @@ createShell mdetonator mscreen stab pjtype payload muz cr w =
|
||||
Just StabOrthReduce -> []
|
||||
Just StabSpinIncrease -> [StartSpinPU (lifespan - 15) (_crID cr) 4]
|
||||
_ -> [StartSpinPU (lifespan - 15) (_crID cr) 2]
|
||||
spinfactor = case stab of
|
||||
Just StabOrthReduce -> 0
|
||||
Just StabSpinIncrease -> 2
|
||||
_ -> 1
|
||||
speed = case pjtype of
|
||||
Grenade{} -> 4
|
||||
Rocket{} -> 1
|
||||
|
||||
Reference in New Issue
Block a user