Add sound for distributer

This commit is contained in:
2025-12-31 13:06:46 +00:00
parent 6db7efece1
commit fa07f989c2
5 changed files with 462 additions and 425 deletions
+3 -3
View File
@@ -287,7 +287,7 @@ functionalUpdate =
. over uvWorld updateGasses
. over uvWorld updateDusts
. over uvWorld updateGusts
. over uvWorld (updateIMl' (_terminals . _lWorld . _cWorld) tmUpdate)
. over uvWorld (updateIMl' (_terminals . _lWorld . _cWorld) updateTerminal)
. over uvWorld (updateIMl' (_machines . _lWorld . _cWorld) updateMachine)
. over uvWorld (updateIMl' (_creatures . _lWorld . _cWorld) updateCreature)
-- creatures should be updated early so that crOldPos is set before any position change
@@ -487,8 +487,8 @@ zoneDusts w = w & dsZoning .~ foldl' (flip zoneDust) mempty (w ^. cWorld . lWorl
displayTerminalLineString :: TerminalLineString -> (String, Color)
displayTerminalLineString (TerminalLineConst str col) = (str, col)
tmUpdate :: Terminal -> World -> World
tmUpdate tm w = fromMaybe w $ do
updateTerminal :: Terminal -> World -> World
updateTerminal tm w = fromMaybe w $ do
guard $ tm ^. tmStatus == TerminalLineRead
tl <- w ^? cWorld . lWorld . terminals . ix (_tmID tm) . tmFutureLines . ix 0
return $ case tl of