YAML: Make player pick a game, error out if step is skipped.
This commit is contained in:
		
							parent
							
								
									50ad661796
								
							
						
					
					
						commit
						ab7a5b07eb
					
				
							
								
								
									
										4
									
								
								Main.py
								
								
								
								
							
							
						
						
									
										4
									
								
								Main.py
								
								
								
								
							| 
						 | 
					@ -10,7 +10,7 @@ import tempfile
 | 
				
			||||||
import zipfile
 | 
					import zipfile
 | 
				
			||||||
from typing import Dict, Tuple
 | 
					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.Items import item_name_groups
 | 
				
			||||||
from worlds.alttp.Regions import lookup_vanilla_location_to_entrance
 | 
					from worlds.alttp.Regions import lookup_vanilla_location_to_entrance
 | 
				
			||||||
from Fill import distribute_items_restrictive, flood_items, balance_multiworld_progression, distribute_planned
 | 
					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
 | 
					        # collect ER hint info
 | 
				
			||||||
        er_hint_data = {player: {} for player in world.get_game_players("A Link to the Past") if
 | 
					        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]}
 | 
					                        world.shuffle[player] != "vanilla" or world.retro[player]}
 | 
				
			||||||
        from worlds.alttp.Regions import RegionType
 | 
					
 | 
				
			||||||
        for region in world.regions:
 | 
					        for region in world.regions:
 | 
				
			||||||
            if region.player in er_hint_data and region.locations:
 | 
					            if region.player in er_hint_data and region.locations:
 | 
				
			||||||
                main_entrance = get_entrance_to_region(region)
 | 
					                main_entrance = get_entrance_to_region(region)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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.
 | 
					#{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.
 | 
				
			||||||
#{NUMBER} will be replaced with the counter value of the name if the counter value is greater than 1.
 | 
					#{NUMBER} will be replaced with the counter value of the name if the counter value is greater than 1.
 | 
				
			||||||
game:
 | 
					game: # Pick a game to play
 | 
				
			||||||
  A Link to the Past: 1
 | 
					  A Link to the Past: 0
 | 
				
			||||||
  Factorio: 1
 | 
					  Factorio: 0
 | 
				
			||||||
  Minecraft: 1
 | 
					  Minecraft: 0
 | 
				
			||||||
  Subnautica: 1
 | 
					  Subnautica: 0
 | 
				
			||||||
requires:
 | 
					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:
 | 
					# Shared Options supported by all games:
 | 
				
			||||||
accessibility:
 | 
					accessibility:
 | 
				
			||||||
  items: 0 # Guarantees you will be able to acquire all items, but you may not be able to access all locations
 | 
					  items: 0 # Guarantees you will be able to acquire all items, but you may not be able to access all locations
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue