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
View File
@@ -19,7 +19,6 @@ data EnergyBall = EnergyBall
, _ebPos :: Point2
, _ebTimer :: Int
, _ebEff :: EnergyBallType
, _ebRot :: Float
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
+3 -1
View File
@@ -5,15 +5,17 @@
module Dodge.Data.EnergyBall.Type where
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
data EnergyBallType
= FlamingBall
| FlameletBall Float
| FlameletBall {_fbSize :: Float, _fbRot :: Float}
| ElectricalBall
| ExplosiveBall
| FlashBall
deriving (Eq, Ord, Show, Read) --Generic, Flat)
makeLenses ''EnergyBallType
deriveJSON defaultOptions ''EnergyBallType
+2 -3
View File
@@ -11,10 +11,9 @@ import Data.Aeson.TH
import Geometry.Data
data Flame = Flame
{ _flVel :: Point2
{ _flTimer :: Int
, _flPos :: Point2
, _flTimer :: Int
-- , _flOriginalVel :: Point2
, _flVel :: Point2
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)