Remove unused datatype
This commit is contained in:
@@ -6,6 +6,7 @@ crMass :: CreatureType -> Float
|
|||||||
crMass = \case
|
crMass = \case
|
||||||
Avatar {} -> 10
|
Avatar {} -> 10
|
||||||
ChaseCrit {} -> 10
|
ChaseCrit {} -> 10
|
||||||
|
HoverCrit {} -> 5
|
||||||
SwarmCrit -> 2
|
SwarmCrit -> 2
|
||||||
AutoCrit -> 10
|
AutoCrit -> 10
|
||||||
BarrelCrit{} -> 10
|
BarrelCrit{} -> 10
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ crMaterial :: CreatureType -> Material
|
|||||||
crMaterial = \case
|
crMaterial = \case
|
||||||
Avatar{_avatarMaterial = mt} -> mt
|
Avatar{_avatarMaterial = mt} -> mt
|
||||||
ChaseCrit {} -> Flesh
|
ChaseCrit {} -> Flesh
|
||||||
|
HoverCrit {} -> Metal
|
||||||
SwarmCrit -> Flesh
|
SwarmCrit -> Flesh
|
||||||
AutoCrit -> Flesh
|
AutoCrit -> Flesh
|
||||||
BarrelCrit{} -> Metal
|
BarrelCrit{} -> Metal
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ crMaxHP :: CreatureType -> Int
|
|||||||
crMaxHP = \case
|
crMaxHP = \case
|
||||||
Avatar {} -> 15000
|
Avatar {} -> 15000
|
||||||
ChaseCrit {} -> 150
|
ChaseCrit {} -> 150
|
||||||
|
HoverCrit {} -> 100
|
||||||
SwarmCrit -> 50
|
SwarmCrit -> 50
|
||||||
AutoCrit -> 100
|
AutoCrit -> 100
|
||||||
BarrelCrit{} -> 100
|
BarrelCrit{} -> 100
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ crRad :: CreatureType -> Float
|
|||||||
crRad = \case
|
crRad = \case
|
||||||
Avatar {} -> 10
|
Avatar {} -> 10
|
||||||
ChaseCrit {} -> 10
|
ChaseCrit {} -> 10
|
||||||
|
HoverCrit {} -> 8
|
||||||
SwarmCrit -> 2
|
SwarmCrit -> 2
|
||||||
AutoCrit -> 10
|
AutoCrit -> 10
|
||||||
BarrelCrit{} -> 10
|
BarrelCrit{} -> 10
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import Dodge.Data.Creature.Misc
|
|||||||
|
|
||||||
crShape :: CreatureType -> CreatureShape
|
crShape :: CreatureType -> CreatureShape
|
||||||
crShape = \case
|
crShape = \case
|
||||||
Avatar{} -> Humanoid (greyN 0.9) (lightx4 black) (greyN 0.3) InanimateAI
|
Avatar{} -> Humanoid (greyN 0.9) (lightx4 black) (greyN 0.3)
|
||||||
ChaseCrit {} -> Humanoid (greyN 0.9) (lightx4 green) (greyN 0.3) ChaseAI
|
ChaseCrit {} -> Humanoid (greyN 0.9) (lightx4 green) (greyN 0.3)
|
||||||
SwarmCrit -> Humanoid (greyN 0.9) (lightx4 yellow) (greyN 0.3) SwarmAI
|
SwarmCrit -> Humanoid (greyN 0.9) (lightx4 yellow) (greyN 0.3)
|
||||||
AutoCrit -> Humanoid (greyN 0.9) (lightx4 red) (greyN 0.3) AutoAI
|
AutoCrit -> Humanoid (greyN 0.9) (lightx4 red) (greyN 0.3)
|
||||||
BarrelCrit {} -> Barreloid
|
BarrelCrit {} -> Barreloid
|
||||||
LampCrit {} -> NonDrawnCreature
|
LampCrit {} -> NonDrawnCreature
|
||||||
|
|||||||
@@ -35,21 +35,6 @@ data CrMvType
|
|||||||
}
|
}
|
||||||
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
||||||
|
|
||||||
data HumanoidAI
|
|
||||||
= ChaseAI
|
|
||||||
| InanimateAI
|
|
||||||
| SpreadGunAI
|
|
||||||
| PistolAI
|
|
||||||
| LtAutoAI
|
|
||||||
| LauncherAI
|
|
||||||
| SwarmAI
|
|
||||||
| AutoAI
|
|
||||||
| FlockArmourChaseAI
|
|
||||||
| MiniGunAI
|
|
||||||
| LongAI
|
|
||||||
| MultGunAI
|
|
||||||
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
|
||||||
|
|
||||||
data Pulse = PulseStatus
|
data Pulse = PulseStatus
|
||||||
{ _pulseRate :: Int
|
{ _pulseRate :: Int
|
||||||
, _pulseProgress :: Int
|
, _pulseProgress :: Int
|
||||||
@@ -67,6 +52,7 @@ data CreatureType
|
|||||||
, _avPosture :: AvatarPosture
|
, _avPosture :: AvatarPosture
|
||||||
}
|
}
|
||||||
| ChaseCrit {_meleeCooldown :: Int}
|
| ChaseCrit {_meleeCooldown :: Int}
|
||||||
|
| HoverCrit
|
||||||
| SwarmCrit
|
| SwarmCrit
|
||||||
| AutoCrit
|
| AutoCrit
|
||||||
| BarrelCrit {_barrelType :: BarrelType}
|
| BarrelCrit {_barrelType :: BarrelType}
|
||||||
@@ -79,7 +65,6 @@ data CreatureShape
|
|||||||
{ _skinHead :: Color
|
{ _skinHead :: Color
|
||||||
, _skinUpper :: Color
|
, _skinUpper :: Color
|
||||||
, _skinLower :: Color
|
, _skinLower :: Color
|
||||||
, _humanoidAI :: HumanoidAI
|
|
||||||
}
|
}
|
||||||
| Barreloid
|
| Barreloid
|
||||||
| NonDrawnCreature
|
| NonDrawnCreature
|
||||||
@@ -99,12 +84,7 @@ makeLenses ''CrMvType
|
|||||||
makeLenses ''CreatureType
|
makeLenses ''CreatureType
|
||||||
makeLenses ''CreatureShape
|
makeLenses ''CreatureShape
|
||||||
deriveJSON defaultOptions ''Pulse
|
deriveJSON defaultOptions ''Pulse
|
||||||
|
|
||||||
--deriveJSON defaultOptions ''CreatureStatistics
|
|
||||||
deriveJSON defaultOptions ''Vocalization
|
deriveJSON defaultOptions ''Vocalization
|
||||||
|
|
||||||
--deriveJSON defaultOptions ''CrMvType
|
|
||||||
deriveJSON defaultOptions ''HumanoidAI
|
|
||||||
deriveJSON defaultOptions ''BarrelType
|
deriveJSON defaultOptions ''BarrelType
|
||||||
deriveJSON defaultOptions ''AvatarPosture
|
deriveJSON defaultOptions ''AvatarPosture
|
||||||
deriveJSON defaultOptions ''CreatureType
|
deriveJSON defaultOptions ''CreatureType
|
||||||
|
|||||||
Reference in New Issue
Block a user