Update pathing on block destruction without relying on _blObstructs

This commit is contained in:
2025-10-24 10:34:27 +01:00
parent 9a3c642684
commit c39f99e146
6 changed files with 181 additions and 158 deletions
+4
View File
@@ -13,6 +13,10 @@ import RandomHelp
type ECW = Either Creature Wall
-- perhaps rethink this as armour that
-- transforms damage and passes it on to the interior object
-- (block,door,creature,machine)
-- alongside an external side effect (spark,dust,etc)
damMatSideEffect :: Damage -> Material -> ECW -> World -> (Int,World)
damMatSideEffect dm = \case
Stone -> damageStone dm