Add sound on creature piercing damage

This commit is contained in:
2025-06-22 09:19:37 +01:00
parent 4e9739afa5
commit 2db3342532
6 changed files with 565 additions and 482 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ module Dodge.Wall.Damage (
damageWall,
) where
import Geometry.Vector
import Dodge.Material.Damage
import Dodge.Block
import Dodge.Data.World
@@ -25,7 +24,7 @@ damageWall dt wl w = case _wlStructure wl of
_ -> w'
where
x = dt ^. dmAmount
w' = damageMaterial dt (_wlMaterial wl) (argV $ uncurry (-) (_wlLine wl)) w
w' = damageMaterial dt (_wlMaterial wl) (Right wl) w
-- block destruction is convoluted...
maybeDestroyBlock :: Int -> World -> World