Make clouds use specific upscale filter, break cloud render over walls
This commit is contained in:
@@ -7,6 +7,7 @@ module Dodge.Wall.Damage (
|
||||
damageWall,
|
||||
) where
|
||||
|
||||
import Control.Monad
|
||||
import Data.Foldable
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
import Data.Maybe
|
||||
@@ -48,6 +49,7 @@ damageBlock = \case
|
||||
|
||||
damageGlassBlock :: Int -> Int -> World -> (S.Set Int2, World)
|
||||
damageGlassBlock x i w = fromMaybe (mempty,w) $ do
|
||||
guard $ x > 0
|
||||
bl <- w ^? cWorld . lWorld . blocks . ix i
|
||||
return $ case bl ^. blHP - x of
|
||||
y | y > 0 -> (mempty, w
|
||||
|
||||
Reference in New Issue
Block a user