Move creature mass out of record

This commit is contained in:
2025-06-06 09:10:03 +01:00
parent aa219acf8d
commit 73c79f2f4d
12 changed files with 76 additions and 67 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ data Creature = Creature
, _crType :: CreatureType
, _crID :: Int
, _crRad :: Float
, _crMass :: Float
-- , _crMass :: Float
, _crHP :: Int
, _crMaxHP :: Int
, _crInv :: IM.IntMap Item
+1 -6
View File
@@ -67,12 +67,7 @@ data Pulse = PulseStatus
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data CreatureType
= Avatar
-- { _skinHead :: Color
-- , _skinUpper :: Color
-- , _skinLower :: Color
{ _avatarPulse :: Pulse
}
= Avatar { _avatarPulse :: Pulse }
| AvatarDead
| ChaseCrit
| SwarmCrit