Make chasms remove RoomPos within their boundaries
This commit is contained in:
@@ -92,8 +92,8 @@ posRms prs parenti@(parent, _) ((numChild, t@(Node childi _)) : its) tseq = do
|
||||
--, _rpDir = snd (lnkPosDir outlnk)
|
||||
{ _rpPos = outlnk ^. rlPos
|
||||
, _rpDir = outlnk ^. rlDir
|
||||
, _rpType = S.empty
|
||||
, _rpLinkStatus = UsedOutLink (_rlType outlnk) numChild (snd childi)
|
||||
, _rpFlags = S.empty
|
||||
, _rpType = UsedOutLink (_rlType outlnk) numChild (snd childi)
|
||||
, _rpPlacementUse = mempty
|
||||
}
|
||||
& rmChildren .:~ snd childi
|
||||
@@ -109,8 +109,8 @@ posRms prs parenti@(parent, _) ((numChild, t@(Node childi _)) : its) tseq = do
|
||||
--, _rpDir = snd (lnkPosDir outlnk)
|
||||
{ _rpPos = il ^. rlPos
|
||||
, _rpDir = il ^. rlDir
|
||||
, _rpType = S.empty
|
||||
, _rpLinkStatus = UsedInLink (_rlType il) (snd parenti)
|
||||
, _rpFlags = mempty
|
||||
, _rpType = UsedInLink (_rlType il) (snd parenti)
|
||||
, _rpPlacementUse = mempty
|
||||
}
|
||||
shiftedt =
|
||||
@@ -128,8 +128,8 @@ createUnusedLinkPos rm = rm & rmPos .++~ map f (_rmLinks rm)
|
||||
RoomPos
|
||||
{ _rpPos = _rlPos rl
|
||||
, _rpDir = _rlDir rl
|
||||
, _rpType = S.empty
|
||||
, _rpLinkStatus = UnusedLink $ _rlType rl
|
||||
, _rpFlags = mempty
|
||||
, _rpType = UnusedLink $ _rlType rl
|
||||
, _rpPlacementUse = mempty
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user