YAML: Make player pick a game, error out if step is skipped.

This commit is contained in:
Fabian Dill 2021-08-09 23:00:28 +02:00
parent 50ad661796
commit ab7a5b07eb
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ import tempfile
import zipfile
from typing import Dict, Tuple
from BaseClasses import MultiWorld, CollectionState, Region
from BaseClasses import MultiWorld, CollectionState, Region, RegionType
from worlds.alttp.Items import item_name_groups
from worlds.alttp.Regions import lookup_vanilla_location_to_entrance
from Fill import distribute_items_restrictive, flood_items, balance_multiworld_progression, distribute_planned
@ -257,7 +257,7 @@ def main(args, seed=None):
# collect ER hint info
er_hint_data = {player: {} for player in world.get_game_players("A Link to the Past") if
world.shuffle[player] != "vanilla" or world.retro[player]}
from worlds.alttp.Regions import RegionType
for region in world.regions:
if region.player in er_hint_data and region.locations:
main_entrance = get_entrance_to_region(region)

View File

@ -23,13 +23,13 @@ name: YourName{number} # Your name in-game. Spaces will be replaced with undersc
#{PLAYER} will be replaced with the player's slot number if that slot number is greater than 1.
#{number} will be replaced with the counter value of the name.
#{NUMBER} will be replaced with the counter value of the name if the counter value is greater than 1.
game:
A Link to the Past: 1
Factorio: 1
Minecraft: 1
Subnautica: 1
game: # Pick a game to play
A Link to the Past: 0
Factorio: 0
Minecraft: 0
Subnautica: 0
requires:
version: 0.1.5 # Version of Archipelago required for this yaml to work as expected.
version: 0.1.6 # Version of Archipelago required for this yaml to work as expected.
# Shared Options supported by all games:
accessibility:
items: 0 # Guarantees you will be able to acquire all items, but you may not be able to access all locations