 9ac921380f
			
		
	
	9ac921380f
	
	
	
		
			
			* create building data object and rename ItemSource to Source to be more generic # Conflicts: # worlds/stardew_valley/content/game_content.py # Conflicts: # worlds/stardew_valley/data/artisan.py # worlds/stardew_valley/data/game_item.py # worlds/stardew_valley/data/harvest.py # worlds/stardew_valley/data/shop.py * remove compound sources, replace by other requirements which already handle this usecase * add coops to content packs * add building progression in game features * add shippping bin to starting building; remove has_house * replace config check with feature * add other buildings in content packs * not passing * tests passes, unbelievable * use newly create methods more * use new assets to ease readability * self review * fix flake8 maybe * properly split rule for mapping cave systems * fix tractor garage name * self review * add upgrade_from to farm house buldings * don't override building name variable in logic * remove has_group from buildings * mark some items easy in grinding logic so blueprints buildings can be in more early spheres * move stuff around to maybe avoid future conflicts cuz I have like 10 PRs opened right now * remove price_multiplier, turns out it's unused during generation * disable shop source for mapping cave systems * bunch of code review changes * add petbowl and farmhouse to autobuilding * set min easy items to 300 * fix farm type
		
			
				
	
	
		
			98 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			98 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from ... import options
 | |
| from ...test import SVTestBase
 | |
| 
 | |
| 
 | |
| class TestArcadeMachinesLogic(SVTestBase):
 | |
|     options = {
 | |
|         options.ArcadeMachineLocations.internal_name: options.ArcadeMachineLocations.option_full_shuffling,
 | |
|     }
 | |
| 
 | |
|     def test_prairie_king(self):
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_cannot_reach_location("Journey of the Prairie King Victory")
 | |
| 
 | |
|         boots = self.create_item("JotPK: Progressive Boots")
 | |
|         gun = self.create_item("JotPK: Progressive Gun")
 | |
|         ammo = self.create_item("JotPK: Progressive Ammo")
 | |
|         life = self.create_item("JotPK: Extra Life")
 | |
|         drop = self.create_item("JotPK: Increased Drop Rate")
 | |
| 
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_cannot_reach_location("Journey of the Prairie King Victory")
 | |
|         self.remove(boots)
 | |
|         self.remove(gun)
 | |
| 
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_cannot_reach_location("Journey of the Prairie King Victory")
 | |
|         self.remove(boots)
 | |
|         self.remove(boots)
 | |
| 
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(life)
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertFalse(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_cannot_reach_location("Journey of the Prairie King Victory")
 | |
|         self.remove(boots)
 | |
|         self.remove(gun)
 | |
|         self.remove(ammo)
 | |
|         self.remove(life)
 | |
| 
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(life)
 | |
|         self.multiworld.state.collect(drop)
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_cannot_reach_location("Journey of the Prairie King Victory")
 | |
|         self.remove(boots)
 | |
|         self.remove(gun)
 | |
|         self.remove(gun)
 | |
|         self.remove(ammo)
 | |
|         self.remove(ammo)
 | |
|         self.remove(life)
 | |
|         self.remove(drop)
 | |
| 
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(boots)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(gun)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(ammo)
 | |
|         self.multiworld.state.collect(life)
 | |
|         self.multiworld.state.collect(drop)
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 1")(self.multiworld.state))
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 2")(self.multiworld.state))
 | |
|         self.assertTrue(self.world.logic.region.can_reach("JotPK World 3")(self.multiworld.state))
 | |
|         self.assert_can_reach_location("Journey of the Prairie King Victory")
 | |
|         self.remove(boots)
 | |
|         self.remove(boots)
 | |
|         self.remove(gun)
 | |
|         self.remove(gun)
 | |
|         self.remove(gun)
 | |
|         self.remove(gun)
 | |
|         self.remove(ammo)
 | |
|         self.remove(ammo)
 | |
|         self.remove(ammo)
 | |
|         self.remove(life)
 | |
|         self.remove(drop)
 |