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
+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)
})