Remove explicit external terminal color record

This commit is contained in:
2025-12-07 14:24:11 +00:00
parent 1d53ff4277
commit 6e5d2f147a
16 changed files with 117 additions and 132 deletions
+11 -2
View File
@@ -46,7 +46,7 @@ terminalShape lw mc = fromMaybe mempty $ do
term <- lw ^? terminals . ix tid
return $
colorSH
(_tmExternalColor term)
(mcColor mc)
( prismBox
Medium
Typical
@@ -68,11 +68,20 @@ terminalShape lw mc = fromMaybe mempty $ do
drawBaseMachine :: Float -> Machine -> SPic
drawBaseMachine h mc =
noPic
. colorSH (_mcColor mc)
. colorSH (mcColor mc)
. upperBox Medium Typical h
. square
$ _mcWidth mc
mcColor :: Machine -> Color
mcColor mc = case mc ^. mcType of
McStatic -> blue
McTerminal -> dark magenta
McDamSensor {} -> yellow
McProxSensor {} -> aquamarine
McTurret {} -> blue
drawTurret :: LWorld -> Turret -> Machine -> SPic
drawTurret lw tu mc = fold $ do
itm <- lw ^? items . ix (tu ^. tuWeapon)