Correct non-pushing of partially destroyed doors

This commit is contained in:
2022-06-23 15:20:50 +01:00
parent 56b9b2dd9e
commit 85406d06c1
6 changed files with 23 additions and 4 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ import Dodge.LevelGen.Data
import Dodge.Creature.Test
import Dodge.LevelGen.Switch
import Data.Maybe
import Control.Lens
import qualified Data.IntMap.Strict as IM
@@ -52,7 +51,7 @@ divideDoorPane mid pathing col cond soff speed ppairs g = case ppairs of
where
adoor (x,y) = PutSlideDr pathing col thedoor soff x y
thedoor = defaultDoor & drSpeed .~ speed & drTrigger .~ cond
& drSupport .~ SupportedBy (fromJust mid)
& drSupport .~ maybe SupportsItself SupportedBy mid
putAutoDoor :: Point2 -> Point2 -> Placement
putAutoDoor a b = PlacementUsingPos (addZ 0 a)