Commit before explicit terminals list

This commit is contained in:
2022-06-05 12:05:16 +01:00
parent 0afbb39aaf
commit a6141fd79a
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -948,7 +948,7 @@ data Block = Block
data BlockMaterial = WoodBlock | DirtBlock | StoneBlock | GlassBlock | MetalBlock
data Terminal = Terminal
{ _tmID :: Int
, _tmParams :: TerminalParams
, _tmProgram :: Terminal -> World -> TerminalParams
, _tmButtonID :: Int
, _tmMachineID :: Int
, _tmName :: String
+3 -3
View File
@@ -1,5 +1,5 @@
module Dodge.Placement.Instance.Analyser
( analyser'
( analyser
, testYouHave
, testYourHealth
) where
@@ -48,7 +48,7 @@ initMCUpdate initup f mc
= (machines . ix (_mcID mc) . mcUpdate .~ f)
. initup mc
analyser'
analyser
:: [String] -- | initial text
-> String -- | succeed text
-> String -- | fail text
@@ -57,7 +57,7 @@ analyser'
-> PlacementSpot
-> PlacementSpot
-> Placement
analyser' starts sucs fails afters upf pslight psmc = extTrigLitPos pslight $ \tp ->
analyser starts sucs fails afters upf pslight psmc = extTrigLitPos pslight $ \tp ->
Just $ updatebuttonname $ plSpot .~ psmc $ putTerminal' aquamarine (termupdate tp)
where
termupdate tp btid = initMCUpdate
+1 -1
View File
@@ -42,7 +42,7 @@ putTerminal col f = ps0PushPSw PutNothing $ \_ _ -> Just $
$ \pl -> Just $ pt0 (PutMachine col (reverse $ square 10) defaultMachine
{ _mcDraw = noPic . terminalShape col
, _mcHP = 100
, _mcUpdate = basicMachineUpdate $ machineAddSound fridgeHumS (\_ -> id)
, _mcUpdate = basicMachineUpdate $ machineAddSound fridgeHumS (const id)
, _mcDeath = \mc -> (buttons . at (fromJust (_plMID pl)) .~ Nothing)
. makeExplosionAt (_mcPos mc)
})
+1 -1
View File
@@ -118,7 +118,7 @@ analyserByDoor sa sb sc sd mcf outplid rm = rm
]
& rmOutPmnt .~
[OutPlacement
(analyser' sa sb sc sd
(analyser sa sb sc sd
mcf
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
(atFstLnkOutShiftBy sensorshift)