Make crytal walls destructible by shatterGun
This commit is contained in:
@@ -36,6 +36,6 @@ damageBlockWith dm = case _dmType dm of
|
||||
dam = _dmAmount dm
|
||||
|
||||
damageBlocksBy :: Int -> Wall -> World -> World
|
||||
damageBlocksBy x wl = case wl ^? wlStructure . wlStBlock of
|
||||
damageBlocksBy x wl = case wl ^? wlStructure . wsBlock of
|
||||
Just blid -> blocks . ix blid . blHP -~ x
|
||||
Nothing -> id
|
||||
|
||||
Reference in New Issue
Block a user