mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Lingo: Fix Basement access with THE MASTER (#3231)
This commit is contained in:
committed by
GitHub
parent
cff7327558
commit
fb2c194e37
@@ -49,8 +49,15 @@ def connect_entrance(regions: Dict[str, Region], source_region: Region, target_r
|
||||
if door is not None:
|
||||
effective_room = target_region.name if door.room is None else door.room
|
||||
if door.door not in world.player_logic.item_by_door.get(effective_room, {}):
|
||||
for region in world.player_logic.calculate_door_requirements(effective_room, door.door, world).rooms:
|
||||
access_reqs = world.player_logic.calculate_door_requirements(effective_room, door.door, world)
|
||||
for region in access_reqs.rooms:
|
||||
world.multiworld.register_indirect_condition(regions[region], connection)
|
||||
|
||||
# This pretty much only applies to Orange Tower Sixth Floor -> Orange Tower Basement.
|
||||
if access_reqs.the_master:
|
||||
for mastery_req in world.player_logic.mastery_reqs:
|
||||
for region in mastery_req.rooms:
|
||||
world.multiworld.register_indirect_condition(regions[region], connection)
|
||||
|
||||
if not pilgrimage and world.options.enable_pilgrimage and is_acceptable_pilgrimage_entrance(entrance_type, world)\
|
||||
and source_region.name != "Menu":
|
||||
|
||||
Reference in New Issue
Block a user