2021-06-26 12:52:50 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								from worlds.hk import HKWorld
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-25 18:23:19 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								from BaseClasses import MultiWorld
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-26 12:52:50 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								from worlds import AutoWorld
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								from worlds.hk.Options import hollow_knight_randomize_options, hollow_knight_skip_options
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-25 18:23:19 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								from test.TestBase import TestBase
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								class TestVanilla(TestBase):
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    def setUp(self):
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-14 08:38:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        self.world = MultiWorld(1)
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-25 18:23:19 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        self.world.game[1] = "Hollow Knight"
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-26 12:52:50 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        self.world.worlds[1] = HKWorld(self.world, 1)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        for hk_option in hollow_knight_randomize_options:
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-08 22:14:56 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            setattr(self.world, hk_option, {1: True})
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-26 12:52:50 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        for hk_option, option in hollow_knight_skip_options.items():
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-08 22:14:56 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            setattr(self.world, hk_option, {1: option.default})
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-26 12:52:50 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        AutoWorld.call_single(self.world, "create_regions", 1)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        AutoWorld.call_single(self.world, "generate_basic", 1)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        AutoWorld.call_single(self.world, "set_rules", 1)
							 |