The Messenger: Fix some transition plando issues (#4720)
* don't allow one-way and two-way entrances to be connected to each other * add special handling for the tower hq nodes since they share the same parent region
This commit is contained in:
@@ -51,6 +51,12 @@ class TransitionPlando(PlandoConnections):
|
||||
entrances = frozenset(RANDOMIZED_CONNECTIONS.keys())
|
||||
exits = frozenset(RANDOMIZED_CONNECTIONS.values())
|
||||
|
||||
@classmethod
|
||||
def can_connect(cls, entrance: str, exit: str) -> bool:
|
||||
if entrance != "Glacial Peak - Left" and entrance.lower() in cls.exits:
|
||||
return exit.lower() in cls.entrances
|
||||
return exit.lower() not in cls.entrances
|
||||
|
||||
|
||||
class Logic(Choice):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user