Single source of truth for wall pathing
This commit is contained in:
@@ -17,7 +17,7 @@ damageWall dt wl (is,w) = case _wlStructure wl of
|
||||
BlockPart blid ->
|
||||
w' & cWorld . lWorld . blocks . ix blid . blHP -~ dmam
|
||||
& maybeDestroyBlock is blid
|
||||
DoorPart drid ->
|
||||
DoorPart drid _ ->
|
||||
f $ w' & cWorld . lWorld . doors . ix drid . drHP -~ dmam
|
||||
-- & maybeDestroyDoor drid
|
||||
_ -> f w'
|
||||
|
||||
Reference in New Issue
Block a user