HK: force disabled options to actually be disabled
This commit is contained in:
		
							parent
							
								
									0cf396e5d6
								
							
						
					
					
						commit
						73bcd0058a
					
				|  | @ -9,7 +9,7 @@ logger = logging.getLogger("Hollow Knight") | |||
| from .Items import item_table, lookup_type_to_names | ||||
| from .Regions import create_regions | ||||
| from .Rules import set_rules | ||||
| from .Options import hollow_knight_options, hollow_knight_randomize_options | ||||
| from .Options import hollow_knight_options, hollow_knight_randomize_options, disabled | ||||
| from .ExtractedData import locations, starts, multi_locations, location_to_region_lookup, \ | ||||
|     event_names, item_effects, connectors, one_ways | ||||
| 
 | ||||
|  | @ -114,6 +114,8 @@ class HKWorld(World): | |||
|             self.ranges[unit] = mini.value, maxi.value | ||||
|         world.push_precollected(HKItem(starts[world.start_location[self.player].current_key], | ||||
|                                        True, None, "Event", self.player)) | ||||
|         for option_name in disabled: | ||||
|             getattr(world, option_name)[self.player].value = 0 | ||||
| 
 | ||||
|     def create_regions(self): | ||||
|         menu_region: Region = create_region(self.world, self.player, 'Menu') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue