Unify block wall types
This commit is contained in:
@@ -5,7 +5,7 @@ import Dodge.Data
|
||||
import Control.Lens
|
||||
|
||||
damageBlocksBy :: Int -> Wall -> World -> World
|
||||
damageBlocksBy x wl = case wl ^? wlBlockID of
|
||||
damageBlocksBy x wl = case _wlBlockID wl of
|
||||
Just blid -> blocks . ix blid . blHPs %~ reduceHeadBy x
|
||||
Nothing -> id
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user