LttP: crash on outdated dungeon_items use
This commit is contained in:
		
							parent
							
								
									ca3e01b15e
								
							
						
					
					
						commit
						3cb0a22e17
					
				| 
						 | 
				
			
			@ -529,6 +529,8 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
def roll_alttp_settings(ret: argparse.Namespace, weights, plando_options):
 | 
			
		||||
    if "dungeon_items" in weights and get_choice_legacy('dungeon_items', weights, "non") != "none":
 | 
			
		||||
        raise Exception(f"dungeon_items key in A Link to the Past was removed, but is present in these weights as {get_choice_legacy('dungeon_items', weights, False)}.")
 | 
			
		||||
    glitches_required = get_choice_legacy('glitches_required', weights)
 | 
			
		||||
    if glitches_required not in [None, 'none', 'no_logic', 'overworld_glitches', 'hybrid_major_glitches', 'minor_glitches']:
 | 
			
		||||
        logging.warning("Only NMG, OWG, HMG and No Logic supported")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue