mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: don't allow region, location, or entrance with duplicate names (#2453)
This commit is contained in:
@@ -247,13 +247,7 @@ def connect(world: MultiWorld, player: int, source: str, target: str,
|
||||
|
||||
sourceRegion = world.get_region(source, player)
|
||||
targetRegion = world.get_region(target, player)
|
||||
|
||||
connection = Entrance(player, "", sourceRegion)
|
||||
|
||||
if rule:
|
||||
connection.access_rule = rule
|
||||
sourceRegion.exits.append(connection)
|
||||
connection.connect(targetRegion)
|
||||
sourceRegion.connect(targetRegion, rule=rule)
|
||||
|
||||
|
||||
def split_location_datas_per_region(locations: List[LocationData]) -> Dict[str, List[LocationData]]:
|
||||
|
Reference in New Issue
Block a user