Add explicit machine damage application
This commit is contained in:
@@ -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 = machineAddSound fridgeHumS (\_ -> id)
|
||||
, _mcUpdate = basicMachineUpdate $ machineAddSound fridgeHumS (\_ -> id)
|
||||
, _mcDeath = \mc -> (buttons . at (fromJust (_plMID pl)) .~ Nothing)
|
||||
. makeExplosionAt (_mcPos mc)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user