Add sound for distributer
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user