introduce World.topology_present, to indicate if any meaningful path information is available in the world
This commit is contained in:
@@ -28,6 +28,7 @@ class World(metaclass=AutoWorldRegister):
|
||||
world: MultiWorld
|
||||
player: int
|
||||
options: dict = {}
|
||||
topology_present: bool = False # indicate if world type has any meaningful layout/pathing
|
||||
|
||||
def __init__(self, world: MultiWorld, player: int):
|
||||
self.world = world
|
||||
|
||||
@@ -7,6 +7,8 @@ from .Options import alttp_options
|
||||
class ALTTPWorld(World):
|
||||
game: str = "A Link to the Past"
|
||||
options = alttp_options
|
||||
topology_present = True
|
||||
|
||||
def collect(self, state: CollectionState, item: Item) -> bool:
|
||||
if item.name.startswith('Progressive '):
|
||||
if 'Sword' in item.name:
|
||||
|
||||
@@ -12,7 +12,7 @@ client_version = (0, 4)
|
||||
class MinecraftWorld(World):
|
||||
game: str = "Minecraft"
|
||||
options = minecraft_options
|
||||
|
||||
topology_present = True
|
||||
|
||||
def _get_mc_data(self):
|
||||
exits = ["Overworld Structure 1", "Overworld Structure 2", "Nether Structure 1", "Nether Structure 2",
|
||||
|
||||
Reference in New Issue
Block a user