Start moving creature properties out of records

This commit is contained in:
2025-06-06 08:46:27 +01:00
parent bae75a1e60
commit 4ae7c6ebd6
32 changed files with 609 additions and 672 deletions
+4 -5
View File
@@ -38,9 +38,7 @@ worldSPic cfig u =
drawCreature :: Creature -> SPic
drawCreature cr = case _crType cr of
Avatar {} -> basicCrPict cr
Humanoid{} -> basicCrPict cr
Barreloid{} ->
BarrelCrit{} ->
picAtCrPos1
( setDepth 20 $
fold
@@ -50,8 +48,9 @@ drawCreature cr = case _crType cr of
]
)
cr
Lampoid{_lampHeight = h} -> uncurryV translateSPxy (_crPos cr) $ lampCrSPic h
NonDrawnCreature -> mempty
LampCrit{_lampHeight = h} -> uncurryV translateSPxy (_crPos cr) $ lampCrSPic h
_ -> basicCrPict cr
-- NonDrawnCreature -> mempty
lampCrSPic :: Float -> SPic
lampCrSPic h =