Move towards unifying door movement

This commit is contained in:
2025-10-21 23:13:36 +01:00
parent 2f3a00a971
commit 39677c3a02
9 changed files with 143 additions and 79 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ placeSpot rid w plmnt = case plmnt of
where
shift = _rmShift $ w ^?! genRooms . ix rid
placePlainPSSpot :: GenWorld -> Int -> Placement -> DPoint2 -> GenWorld
placePlainPSSpot :: GenWorld -> Int -> Placement -> Point2A -> GenWorld
placePlainPSSpot w rid plmnt shift = case plmnt ^. plType of
RandPS rgn ->
let (x, g) = runState rgn (w ^. gwWorld . randGen)
@@ -89,7 +89,7 @@ placeSpotUsingLink w rid plmnt extract eff fallback =
placeSpotRoomRand ::
Int ->
Int ->
(DPoint2 -> PlacementSpot) ->
(Point2A -> PlacementSpot) ->
Placement ->
GenWorld ->
GenWorld