Room with doors and central ledge terminal
This commit is contained in:
@@ -14,6 +14,7 @@ module Dodge.PlacementSpot (
|
||||
isUnusedLnk,
|
||||
isInLnk,
|
||||
isOutLnk,
|
||||
isOutLnkNum,
|
||||
unusedSpotNearInLink,
|
||||
randDirPS,
|
||||
unusedSpotAwayFromInLink,
|
||||
@@ -169,6 +170,11 @@ isOutLnk rp = case _rpType rp of
|
||||
UsedOutLink{} -> null $ _rpPlacementUse rp
|
||||
_ -> False
|
||||
|
||||
isOutLnkNum :: Int -> RoomPos -> Bool
|
||||
isOutLnkNum i rp = case _rpType rp of
|
||||
UsedOutLink{_rplsChildNum = j} | j == i -> null $ _rpPlacementUse rp
|
||||
_ -> False
|
||||
|
||||
useUnusedLnk :: PlacementSpot
|
||||
useUnusedLnk = rprBool isUnusedLnk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user