Bumper Stickers and Meritous: Options and world: multiworld fixes (#3281)

* Update Options.py

* Update __init__.py

* Correct case

* Correct case

* Update Meritous and actually use Options

* Oops

* Fixing world: multiworld
This commit is contained in:
Exempt-Medic
2024-05-12 12:52:34 -04:00
committed by GitHub
parent 701fbab837
commit f38655d6b6
6 changed files with 59 additions and 53 deletions

View File

@@ -11,7 +11,7 @@ def _generate_entrances(player: int, entrance_list: [str], parent: Region):
return [Entrance(player, entrance, parent) for entrance in entrance_list]
def create_regions(world: MultiWorld, player: int):
def create_regions(multiworld: MultiWorld, player: int):
region_map = {
"Menu": level1_locs + ["Bonus Booster 1"] + [f"Treasure Bumper {i + 1}" for i in range(8)],
"Level 1": level2_locs + ["Bonus Booster 2"] + [f"Treasure Bumper {i + 9}" for i in range(8)],
@@ -34,7 +34,7 @@ def create_regions(world: MultiWorld, player: int):
for x, region_name in enumerate(region_map):
region_list = region_map[region_name]
region = Region(region_name, player, world)
region = Region(region_name, player, multiworld)
for location_name in region_list:
region.locations += [BumpStikLocation(
player, location_name, location_table[location_name], region)]
@@ -42,9 +42,9 @@ def create_regions(world: MultiWorld, player: int):
region.exits += _generate_entrances(player,
[f"To Level {x + 1}"], region)
world.regions += [region]
multiworld.regions += [region]
for entrance in entrance_map:
connection = world.get_entrance(f"To {entrance}", player)
connection = multiworld.get_entrance(f"To {entrance}", player)
connection.access_rule = entrance_map[entrance]
connection.connect(world.get_region(entrance, player))
connection.connect(multiworld.get_region(entrance, player))