Tweak ledge room, rename roomRectAutoLinks
This commit is contained in:
@@ -56,7 +56,9 @@ setInLinks = setLinkType InLink
|
||||
isMidEdgeLink :: Room -> CardinalPoint -> RoomLink -> Bool
|
||||
isMidEdgeLink r x rl
|
||||
| x == North || x == South = g West (f $ r ^?! rmType . numLinkEW)
|
||||
&& OnEdge x `S.member` (rl ^. rlType)
|
||||
| otherwise = g South (f $ r ^?! rmType . numLinkNS)
|
||||
&& OnEdge x `S.member` (rl ^. rlType)
|
||||
where
|
||||
f y | even y = [y `div` 2]
|
||||
| otherwise = [y `div` 2, 1 + (y `div` 2)]
|
||||
|
||||
Reference in New Issue
Block a user