Commit before attempting to simplify auto door placement

This commit is contained in:
2025-09-02 11:09:07 +01:00
parent 2261556c16
commit 380c0f6938
7 changed files with 76 additions and 81 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ defaultDirtWall =
, _wlColor = dirtColor
, _wlOpacity = Opaque 6
, _wlRotateTo = False
, _wlFireThrough = True
, _wlFireThrough = False
, _wlPenetrable = True
, _wlMaterial = Dirt
}
@@ -89,7 +89,7 @@ defaultWindow =
, _wlID = 0
, _wlColor = withAlpha 0.5 cyan
, _wlOpacity = SeeThrough
, _wlFireThrough = True
, _wlFireThrough = False
, _wlMaterial = Glass
, _wlPenetrable = True
}
+1 -1
View File
@@ -81,7 +81,7 @@ shieldWall crid =
, _wlOpacity = SeeAbove
, _wlPathable = True
, _wlWalkable = True
, _wlFireThrough = True
, _wlFireThrough = False
, _wlReflect = True
, _wlRotateTo = False
, _wlStructure = CreaturePart crid -- shieldWallDamage
-4
View File
@@ -87,12 +87,8 @@ putAutoDoor a b = PlacementUsingPos (addZ 0 a) $
b
3
where
--cond az bz = any (crNearSeg 40 (stripZ az) (stripZ bz)) . IM.filter isAnimate . _creatures
cond az bz = WdBlCrFilterNearPoint 40 (0.5 *.* (stripZ az +.+ stripZ bz)) CrIsAnimate
-- any (crNearPoint 40 (0.5 *.* (stripZ az +.+ stripZ bz)))
-- . IM.filter isAnimate . _creatures
switchDoor :: Point2 -> Float -> Point2 -> Point2 -> Color -> Placement
switchDoor btpos btrot dra drb col = pContID
(PS btpos btrot)
+1 -1
View File
@@ -93,7 +93,7 @@ baseBlockPane =
--, _wlOpacity = Opaque 10
, _wlOpacity = Opaque 17
, _wlUnshadowed = True
, _wlFireThrough = True
, _wlFireThrough = False
, _wlPenetrable = True
}
+1 -1
View File
@@ -11,7 +11,7 @@ forceField =
, _wlOpacity = DrawnWall DrawForceField
, _wlPathable = True
, _wlWalkable = True
, _wlFireThrough = True
, _wlFireThrough = False
, _wlReflect = True
, _wlUnshadowed = True
, _wlRotateTo = False