sm64ex: Fix possible inaccessible region

This commit is contained in:
N00byKing 2023-08-07 13:37:53 +02:00 committed by Fabian Dill
parent 01e8e9576c
commit 64d1722acd
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ def set_rules(world, player: int, area_connections):
fix_reg(entrance_ids, 20, 5, swaplist, world)
# Guarantee BITFS is not mapped to DDD
fix_reg(entrance_ids, 22, 8, swaplist, world)
if entrance_ids.index(22) == 5: # If BITFS is mapped to HMC...
fix_reg(entrance_ids, 20, 8, swaplist, world) # ... then dont allow COTMC to be mapped to DDD
temp_assign = dict(zip(entrance_ids,destination_regions)) # Used for Rules only
# Destination Format: LVL | AREA with LVL = LEVEL_x, AREA = Area as used in sm64 code