Fix bug in flame wall damages, cleanup
This commit is contained in:
@@ -12,7 +12,6 @@ import Control.Monad
|
||||
import Data.List
|
||||
import Dodge.Data.World
|
||||
import Dodge.EnergyBall
|
||||
import Dodge.Flame
|
||||
import Dodge.SoundLogic
|
||||
import Dodge.WorldEvent.Shockwave
|
||||
import Dodge.WorldEvent.SpawnParticle
|
||||
@@ -62,7 +61,7 @@ makeFlameExplosionAt p w =
|
||||
& cWorld . lWorld . flames .++~ newFlames
|
||||
where
|
||||
newFlames = zipWith makeFlameWithVelAndTime velocities timers
|
||||
makeFlameWithVelAndTime vel time = aFlameParticle time p vel
|
||||
makeFlameWithVelAndTime vel time = Flame time vel p
|
||||
velocities = replicateM 15 (randInCirc 1) & evalState $ _randGen w
|
||||
timers = randomRs (80, 100) $ _randGen w
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ aStaticBall p =
|
||||
, _ebPos = p
|
||||
, _ebTimer = 20
|
||||
, _ebEff = ElectricalBall
|
||||
, _ebRot = 0
|
||||
}
|
||||
|
||||
{- | Note damgeInRadius by itself never destroys the particle
|
||||
|
||||
Reference in New Issue
Block a user