| 
									
										
										
										
											2025-05-13 03:58:03 -04:00
										 |  |  | from ..bases import SVTestBase | 
					
						
							| 
									
										
										
											
												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 ... import options | 
					
						
							|  |  |  | from ...options import ToolProgression | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class TestWeaponsLogic(SVTestBase): | 
					
						
							|  |  |  |     options = { | 
					
						
							|  |  |  |         ToolProgression.internal_name: ToolProgression.option_progressive, | 
					
						
							|  |  |  |         options.SkillProgression.internal_name: options.SkillProgression.option_progressive, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_mine(self): | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.multiworld.state.collect(self.create_item("Progressive Pickaxe")) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Progressive Pickaxe")) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Progressive Pickaxe")) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Progressive Pickaxe")) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Progressive House")) | 
					
						
							| 
									
										
										
											
												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([self.create_item("Combat Level")] * 10) | 
					
						
							|  |  |  |         self.collect([self.create_item("Mining Level")] * 10) | 
					
						
							|  |  |  |         self.collect([self.create_item("Progressive Mine Elevator")] * 24) | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.multiworld.state.collect(self.create_item("Bus Repair")) | 
					
						
							|  |  |  |         self.multiworld.state.collect(self.create_item("Skull Key")) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.give_item_and_check_reachable_mine("Progressive Sword", 1) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Dagger", 1) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Club", 1) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.give_item_and_check_reachable_mine("Progressive Sword", 2) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Dagger", 2) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Club", 2) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.give_item_and_check_reachable_mine("Progressive Sword", 3) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Dagger", 3) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Club", 3) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.give_item_and_check_reachable_mine("Progressive Sword", 4) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Dagger", 4) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Club", 4) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.give_item_and_check_reachable_mine("Progressive Sword", 5) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Dagger", 5) | 
					
						
							|  |  |  |         self.give_item_and_check_reachable_mine("Progressive Club", 5) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |     def give_item_and_check_reachable_mine(self, item_name: str, reachable_level: int): | 
					
						
							| 
									
										
										
											
												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
										 |  |  |         item = self.multiworld.create_item(item_name, self.player) | 
					
						
							| 
									
										
										
										
											2024-11-29 19:46:35 -05:00
										 |  |  |         self.multiworld.state.collect(item) | 
					
						
							| 
									
										
										
											
												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
										 |  |  |         rule = self.world.logic.mine.can_mine_in_the_mines_floor_1_40() | 
					
						
							|  |  |  |         if reachable_level > 0: | 
					
						
							|  |  |  |             self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rule = self.world.logic.mine.can_mine_in_the_mines_floor_41_80() | 
					
						
							|  |  |  |         if reachable_level > 1: | 
					
						
							|  |  |  |             self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rule = self.world.logic.mine.can_mine_in_the_mines_floor_81_120() | 
					
						
							|  |  |  |         if reachable_level > 2: | 
					
						
							|  |  |  |             self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rule = self.world.logic.mine.can_mine_in_the_skull_cavern() | 
					
						
							|  |  |  |         if reachable_level > 3: | 
					
						
							|  |  |  |             self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             self.assert_rule_false(rule, self.multiworld.state) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         rule = self.world.logic.ability.can_mine_perfectly_in_the_skull_cavern() | 
					
						
							|  |  |  |         if reachable_level > 4: | 
					
						
							|  |  |  |             self.assert_rule_true(rule, self.multiworld.state) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             self.assert_rule_false(rule, self.multiworld.state) |