Add VVVVVV to Archipelago (#178)
This commit is contained in:
committed by
GitHub
parent
4291912577
commit
344f4afdbd
45
worlds/v6/Regions.py
Normal file
45
worlds/v6/Regions.py
Normal file
@@ -0,0 +1,45 @@
|
||||
import typing
|
||||
from BaseClasses import MultiWorld, Region, Entrance, Location, RegionType
|
||||
from .Locations import V6Location, location_table
|
||||
|
||||
def create_regions(world: MultiWorld, player: int):
|
||||
regOvr = Region("Menu", RegionType.Generic, "Dimension VVVVVV", player, world)
|
||||
locOvr_names = ["Overworld (Pipe-shaped Segment)", "Overworld (Left of Ship)", "Overworld (Square Room)", "Overworld (Sad Elephant)",
|
||||
"It's a Secret to Nobody", "Trench Warfare", "NPC Trinket"]
|
||||
regOvr.locations += [V6Location(player, loc_name, location_table[loc_name], regOvr) for loc_name in locOvr_names]
|
||||
world.regions.append(regOvr)
|
||||
|
||||
regLab = Region("Laboratory", RegionType.Generic, "Laboratory", player, world)
|
||||
locLab_names = ["Young Man, It's Worth the Challenge", "Overworld (Outside Entanglement Generator)", "The Tantalizing Trinket", "Purest Unobtainium"]
|
||||
regLab.locations += [V6Location(player, loc_name, location_table[loc_name], regLab) for loc_name in locLab_names]
|
||||
world.regions.append(regLab)
|
||||
|
||||
regTow = Region("The Tower", RegionType.Generic, "The Tower", player, world)
|
||||
locTow_names = ["The Tower 1", "The Tower 2"]
|
||||
regTow.locations += [V6Location(player, loc_name, location_table[loc_name], regTow) for loc_name in locTow_names]
|
||||
world.regions.append(regTow)
|
||||
|
||||
regSp2 = Region("Space Station 2", RegionType.Generic, "Space Station 2", player, world)
|
||||
locSp2_names = ["One Way Room", "You Just Keep Coming Back", "Clarion Call", "Prize for the Reckless", "Doing things the hard way"]
|
||||
regSp2.locations += [V6Location(player, loc_name, location_table[loc_name], regSp2) for loc_name in locSp2_names]
|
||||
world.regions.append(regSp2)
|
||||
|
||||
regWrp = Region("Warp Zone", RegionType.Generic, "Warp Zone", player, world)
|
||||
locWrp_names = ["Edge Games"]
|
||||
regWrp.locations += [V6Location(player, loc_name, location_table[loc_name], regWrp) for loc_name in locWrp_names]
|
||||
world.regions.append(regWrp)
|
||||
|
||||
regEnd = Region("The Final Level", RegionType.Generic, "The Final Level", player, world)
|
||||
locEnd_names = ["V"]
|
||||
regEnd.locations += [V6Location(player, loc_name, location_table[loc_name], regEnd) for loc_name in locEnd_names]
|
||||
world.regions.append(regEnd)
|
||||
|
||||
def connect_regions(world: MultiWorld, player: int, source: str, target: str, rule):
|
||||
sourceRegion = world.get_region(source, player)
|
||||
targetRegion = world.get_region(target, player)
|
||||
|
||||
connection = Entrance(player,'', sourceRegion)
|
||||
connection.access_rule = rule
|
||||
|
||||
sourceRegion.exits.append(connection)
|
||||
connection.connect(targetRegion)
|
||||
Reference in New Issue
Block a user