Fix bug in flame wall damages, cleanup

This commit is contained in:
2025-06-08 14:16:59 +01:00
parent 4c3a3d83da
commit 5b1e4fba4e
16 changed files with 93 additions and 253 deletions
+1 -2
View File
@@ -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
-1
View File
@@ -46,7 +46,6 @@ aStaticBall p =
, _ebPos = p
, _ebTimer = 20
, _ebEff = ElectricalBall
, _ebRot = 0
}
{- | Note damgeInRadius by itself never destroys the particle