mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew Valley: 5.x.x - The Allsanity Update (#2764)
Major Content update for Stardew Valley, including the following features - Major performance improvements all across the Stardew Valley apworld, including a significant reduction in the test time - Randomized Farm Type - Bundles rework (Remixed Bundles and Missing Bundle!) - New Settings: * Shipsanity - Shipping individual items * Monstersanity - Slaying monsters * Cooksanity - Cooking individual recipes * Chefsanity - Learning individual recipes * Craftsanity - Crafting individual items - New Goals: * Protector of the Valley - Complete every monster slayer goal * Full Shipment - Ship every item * Craftmaster - Craft every item * Gourmet Chef - Cook every recipe * Legend - Earn 10 000 000g * Mystery of the Stardrops - Find every stardrop (Maguffin Hunt) * Allsanity - Complete every check in your slot - Building Shuffle: Cheaper options - Tool Shuffle: Cheaper options - Money rework - New traps - New isolated checks and items, including the farm cave, the movie theater, etc - Mod Support: SVE [Albrekka] - Mod Support: Distant Lands [Albrekka] - Mod Support: Hat Mouse Lacey [Albrekka] - Mod Support: Boarding House [Albrekka] Co-authored-by: Witchybun <elnendil@gmail.com> Co-authored-by: Witchybun <96719127+Witchybun@users.noreply.github.com> Co-authored-by: Jouramie <jouramie@hotmail.com> Co-authored-by: Alchav <59858495+Alchav@users.noreply.github.com>
This commit is contained in:
26
worlds/stardew_valley/test/assertion/mod_assert.py
Normal file
26
worlds/stardew_valley/test/assertion/mod_assert.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from typing import Union, List
|
||||
from unittest import TestCase
|
||||
|
||||
from BaseClasses import MultiWorld
|
||||
from ... import item_table, location_table
|
||||
from ...mods.mod_data import ModNames
|
||||
|
||||
|
||||
class ModAssertMixin(TestCase):
|
||||
def assert_stray_mod_items(self, chosen_mods: Union[List[str], str], multiworld: MultiWorld):
|
||||
if isinstance(chosen_mods, str):
|
||||
chosen_mods = [chosen_mods]
|
||||
|
||||
if ModNames.jasper in chosen_mods:
|
||||
# Jasper is a weird case because it shares NPC w/ SVE...
|
||||
chosen_mods.append(ModNames.sve)
|
||||
|
||||
for multiworld_item in multiworld.get_items():
|
||||
item = item_table[multiworld_item.name]
|
||||
self.assertTrue(item.mod_name is None or item.mod_name in chosen_mods,
|
||||
f"Item {item.name} has is from mod {item.mod_name}. Allowed mods are {chosen_mods}.")
|
||||
for multiworld_location in multiworld.get_locations():
|
||||
if multiworld_location.event:
|
||||
continue
|
||||
location = location_table[multiworld_location.name]
|
||||
self.assertTrue(location.mod_name is None or location.mod_name in chosen_mods)
|
||||
Reference in New Issue
Block a user