Fix flatshield wall creation and remove muzzle

This commit is contained in:
2026-01-02 12:34:17 +00:00
parent f6f63c9a14
commit b414da7dab
7 changed files with 392 additions and 393 deletions
+14
View File
@@ -2,6 +2,7 @@ module Dodge.Item.BackgroundEffect (
itEffectOnPickup,
itEffectOnDrop,
rootNotrootEff,
rootAndAttNotEff,
createShieldWall,
removeShieldWall,
) where
@@ -36,6 +37,19 @@ rootNotrootEff f g it
| it ^? itLocation . ilIsRoot == Just True = f it
| otherwise = g it
rootAndAttNotEff ::
(Item -> Creature -> World -> World) ->
(Item -> Creature -> World -> World) ->
Item ->
Creature ->
World ->
World
rootAndAttNotEff f g it
| it ^? itLocation . ilIsRoot == Just True
&& it ^? itLocation . ilIsAttached == Just True
= f it
| otherwise = g it
createShieldWall :: Item -> Creature -> World -> World
createShieldWall it cr w = case it ^? itParams . flatShieldWlMIX . _Just of
Nothing ->