| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  | from collections import Counter | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from .. import SVTestBase | 
					
						
							|  |  |  | from ... import Event, options | 
					
						
							|  |  |  | from ...options import ToolProgression, SeasonRandomization | 
					
						
							|  |  |  | from ...strings.entrance_names import Entrance | 
					
						
							|  |  |  | from ...strings.region_names import Region | 
					
						
							|  |  |  | from ...strings.tool_names import Tool, ToolMaterial | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class TestProgressiveToolsLogic(SVTestBase): | 
					
						
							|  |  |  |     options = { | 
					
						
							|  |  |  |         ToolProgression.internal_name: ToolProgression.option_progressive, | 
					
						
							|  |  |  |         SeasonRandomization.internal_name: SeasonRandomization.option_randomized, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_sturgeon(self): | 
					
						
							|  |  |  |         self.multiworld.state.prog_items = {1: Counter()} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         sturgeon_rule = self.world.logic.has("Sturgeon") | 
					
						
							|  |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         summer = self.create_item("Summer") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(summer, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         fishing_rod = self.create_item("Progressive Fishing Rod") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(fishing_rod, prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(fishing_rod, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         fishing_level = self.create_item("Fishing Level") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(fishing_level, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_true(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         self.remove(summer) | 
					
						
							|  |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         winter = self.create_item("Winter") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(winter, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_true(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         self.remove(fishing_rod) | 
					
						
							|  |  |  |         self.assert_rule_false(sturgeon_rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_old_master_cannoli(self): | 
					
						
							|  |  |  |         self.multiworld.state.prog_items = {1: Counter()} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(self.create_item("Progressive Axe"), prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Progressive Axe"), prevent_sweep=False) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Summer"), prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.collect_lots_of_money() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rule = self.world.logic.region.can_reach_location("Old Master Cannoli") | 
					
						
							|  |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         fall = self.create_item("Fall") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(fall, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         tuesday = self.create_item("Traveling Merchant: Tuesday") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(tuesday, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rare_seed = self.create_item("Rare Seed") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(rare_seed, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         self.remove(fall) | 
					
						
							|  |  |  |         self.remove(self.create_item(Event.fall_farming)) | 
					
						
							|  |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  |         self.remove(tuesday) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         green_house = self.create_item("Greenhouse") | 
					
						
							|  |  |  |         self.collect(self.create_item(Event.fall_farming)) | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(green_house, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         friday = self.create_item("Traveling Merchant: Friday") | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(friday, prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  |         self.assertTrue(self.multiworld.get_location("Old Master Cannoli", 1).access_rule(self.multiworld.state)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         self.remove(green_house) | 
					
						
							|  |  |  |         self.remove(self.create_item(Event.fall_farming)) | 
					
						
							|  |  |  |         self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  |         self.remove(friday) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class TestToolVanillaRequiresBlacksmith(SVTestBase): | 
					
						
							|  |  |  |     options = { | 
					
						
							|  |  |  |         options.EntranceRandomization: options.EntranceRandomization.option_buildings, | 
					
						
							|  |  |  |         options.ToolProgression: options.ToolProgression.option_vanilla, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     seed = 4111845104987680262 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # Seed is hardcoded to make sure the ER is a valid roll that actually lock the blacksmith behind the Railroad Boulder Removed. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_cannot_get_any_tool_without_blacksmith_access(self): | 
					
						
							|  |  |  |         railroad_item = "Railroad Boulder Removed" | 
					
						
							|  |  |  |         place_region_at_entrance(self.multiworld, self.player, Region.blacksmith, Entrance.enter_bathhouse_entrance) | 
					
						
							|  |  |  |         self.collect_all_except(railroad_item) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         for tool in [Tool.pickaxe, Tool.axe, Tool.hoe, Tool.trash_can, Tool.watering_can]: | 
					
						
							|  |  |  |             for material in [ToolMaterial.copper, ToolMaterial.iron, ToolMaterial.gold, ToolMaterial.iridium]: | 
					
						
							|  |  |  |                 self.assert_rule_false(self.world.logic.tool.has_tool(tool, material), self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(self.create_item(railroad_item), prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |         for tool in [Tool.pickaxe, Tool.axe, Tool.hoe, Tool.trash_can, Tool.watering_can]: | 
					
						
							|  |  |  |             for material in [ToolMaterial.copper, ToolMaterial.iron, ToolMaterial.gold, ToolMaterial.iridium]: | 
					
						
							|  |  |  |                 self.assert_rule_true(self.world.logic.tool.has_tool(tool, material), self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_cannot_get_fishing_rod_without_willy_access(self): | 
					
						
							|  |  |  |         railroad_item = "Railroad Boulder Removed" | 
					
						
							|  |  |  |         place_region_at_entrance(self.multiworld, self.player, Region.fish_shop, Entrance.enter_bathhouse_entrance) | 
					
						
							|  |  |  |         self.collect_all_except(railroad_item) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         for fishing_rod_level in [3, 4]: | 
					
						
							|  |  |  |             self.assert_rule_false(self.world.logic.tool.has_fishing_rod(fishing_rod_level), self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-13 15:28:05 -05:00
										 |  |  |         self.multiworld.state.collect(self.create_item(railroad_item), prevent_sweep=False) | 
					
						
							| 
									
										
										
											
												Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests
This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.
In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
											
										 
											2024-07-07 16:04:25 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |         for fishing_rod_level in [3, 4]: | 
					
						
							|  |  |  |             self.assert_rule_true(self.world.logic.tool.has_fishing_rod(fishing_rod_level), self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def place_region_at_entrance(multiworld, player, region, entrance): | 
					
						
							|  |  |  |     region_to_place = multiworld.get_region(region, player) | 
					
						
							|  |  |  |     entrance_to_place_region = multiworld.get_entrance(entrance, player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     entrance_to_switch = region_to_place.entrances[0] | 
					
						
							|  |  |  |     region_to_switch = entrance_to_place_region.connected_region | 
					
						
							|  |  |  |     entrance_to_switch.connect(region_to_switch) | 
					
						
							|  |  |  |     entrance_to_place_region.connect(region_to_place) |