Add explicit machine damage application

This commit is contained in:
2022-06-05 10:56:15 +01:00
parent fcc6d3952c
commit 0afbb39aaf
4 changed files with 7 additions and 1 deletions
+4
View File
@@ -1,6 +1,7 @@
module Dodge.Machine where
import Dodge.Data
import Dodge.Wall.Delete
import Dodge.Machine.Damage
import LensHelp
import Sound.Data
import Dodge.SoundLogic
@@ -9,6 +10,9 @@ import Dodge.Base
import qualified Data.IntMap.Strict as IM
basicMachineUpdate :: (Machine -> World -> World) -> Machine -> World -> World
basicMachineUpdate f mc = basicMachineApplyDamage mc . f mc
machineUpdateLiveDieEff
:: (Machine -> World -> World) -- | effect when hp >= 1
-> (Machine -> World -> World) -- | effect (once) when hp < 1