This commit is contained in:
2022-06-16 12:33:00 +01:00
parent aa29e5ddf2
commit 4d6e547b74
2 changed files with 10 additions and 26 deletions
+2 -2
View File
@@ -60,6 +60,6 @@ shootShatter it cr w = maybe w (uncurry $ shatterWall w sp ep) $ collidePointWal
shatterWall :: World -> Point2 -> Point2 -> Point2 -> Wall -> World
shatterWall w sp ep p wl = w
& makeDebris StoneBlock p
& makeDebrisDirected StoneBlock p (argV $ vNormal $ uncurry (-.-) $ _wlLine wl)
& makeDebris (_wlColor wl) StoneBlock p
& makeDebrisDirected (pi/2) (argV $ vNormal $ uncurry (-.-) $ _wlLine wl) (_wlColor wl) StoneBlock p
& damageWall (Damage SHATTERING 1000 sp p ep NoDamageEffect) wl