2024-11-29 19:46:35 -05:00
|
|
|
from .. import SVTestBase, allsanity_mods_6_x_x
|
|
|
|
from ...stardew_rule import HasProgressionPercent
|
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
|
|
|
class TestHasProgressionPercentWithVictory(SVTestBase):
|
|
|
|
options = allsanity_mods_6_x_x()
|
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 test_has_100_progression_percent_is_false_while_items_are_missing(self):
|
|
|
|
has_100_progression_percent = HasProgressionPercent(1, 100)
|
|
|
|
|
|
|
|
for i, item in enumerate([i for i in self.multiworld.get_items() if i.advancement and i.code][1:]):
|
|
|
|
if item.name != "Victory":
|
|
|
|
self.collect(item)
|
|
|
|
self.assertFalse(has_100_progression_percent(self.multiworld.state),
|
|
|
|
f"Rule became true after {i} items, total_progression_items is {self.world.total_progression_items}")
|
|
|
|
|
|
|
|
def test_has_100_progression_percent_account_for_victory_not_being_collected(self):
|
|
|
|
has_100_progression_percent = HasProgressionPercent(1, 100)
|
|
|
|
|
|
|
|
self.collect_all_except("Victory")
|
|
|
|
|
|
|
|
self.assert_rule_true(has_100_progression_percent, self.multiworld.state)
|