mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-03 01:03:39 -07:00
Major Content update for Stardew Valley ### Features - New BundleRandomization Value: Meme Bundles - Over 100 custom bundles, designed to be jokes, references, trolls, etc - New Setting: Bundles Per Room modifier - New Setting: Backpack Size - New Setting: Secretsanity - Checks for triggering easter eggs and secrets - New Setting: Moviesanity - Checks for watching movies and sharing snacks with Villagers - New Setting: Eatsanity - Checks for eating items - New Setting: Hatsanity - Checks for wearing Hats - New Setting: Start Without - Allows you to select any combination of various "starting" items, that you will actually not start with. Notably, tools, backpack slots, Day5 unlocks, etc. - New Setting: Allowed Filler Items - Allows you to customize the filler items you'll get - New Setting: Endgame Locations - Checks for various expensive endgame tasks and purchases - New Shipsanity value: Crops and Fish - New Settings: Jojapocalypse and settings to customize it - Bundle Plando: Replaced with BundleWhitelist and BundleBlacklist, for more customization freedom - Added a couple of Host.yaml settings to help hosts allow or ban specific difficult settings that could cause problems if the people don't know what they are signing up for. Plus a truckload of improvements on the mod side, not seen in this PR. ### Removed features - Integration for Stardew Valley Expanded. It is simply disabled, the code is all still there, but I'm extremely tired of providing tech support for it, plus Stardew Valley 1.7 was announced and that will break it again, so I'm done. When a maintainer steps up, it can be re-enabled.
67 lines
3.5 KiB
Python
67 lines
3.5 KiB
Python
import unittest
|
|
|
|
from ..options.utils import fill_dataclass_with_default
|
|
from ... import options
|
|
from ...content import create_content
|
|
from ...mods.region_data import region_data_by_content_pack
|
|
from ...regions import vanilla_data
|
|
from ...regions.model import MergeFlag
|
|
from ...regions.regions import create_all_regions, create_all_connections
|
|
|
|
|
|
class TestVanillaRegionsConnectionsWithGingerIsland(unittest.TestCase):
|
|
def test_region_exits_lead_somewhere(self):
|
|
for region in vanilla_data.regions_with_ginger_island_by_name.values():
|
|
with self.subTest(region=region.name):
|
|
for exit_ in region.exits:
|
|
self.assertIn(exit_, vanilla_data.connections_with_ginger_island_by_name,
|
|
f"{region.name} is leading to {exit_} but it does not exist.")
|
|
|
|
def test_connection_lead_somewhere(self):
|
|
for connection in vanilla_data.connections_with_ginger_island_by_name.values():
|
|
with self.subTest(connection=connection.name):
|
|
self.assertIn(connection.destination, vanilla_data.regions_with_ginger_island_by_name,
|
|
f"{connection.name} is leading to {connection.destination} but it does not exist.")
|
|
|
|
|
|
class TestVanillaRegionsConnectionsWithoutGingerIsland(unittest.TestCase):
|
|
def test_region_exits_lead_somewhere(self):
|
|
for region in vanilla_data.regions_without_ginger_island_by_name.values():
|
|
with self.subTest(region=region.name):
|
|
for exit_ in region.exits:
|
|
self.assertIn(exit_, vanilla_data.connections_without_ginger_island_by_name,
|
|
f"{region.name} is leading to {exit_} but it does not exist.")
|
|
|
|
def test_connection_lead_somewhere(self):
|
|
for connection in vanilla_data.connections_without_ginger_island_by_name.values():
|
|
with self.subTest(connection=connection.name):
|
|
self.assertIn(connection.destination, vanilla_data.regions_without_ginger_island_by_name,
|
|
f"{connection.name} is leading to {connection.destination} but it does not exist.")
|
|
|
|
|
|
class TestModsConnections(unittest.TestCase):
|
|
options = {
|
|
options.ExcludeGingerIsland: options.ExcludeGingerIsland.option_false,
|
|
options.Mods: frozenset(options.all_mods_except_invalid_combinations),
|
|
}
|
|
content = create_content(fill_dataclass_with_default(options))
|
|
all_regions_by_name = create_all_regions(content.registered_packs)
|
|
all_connections_by_name = create_all_connections(content.registered_packs)
|
|
|
|
def test_region_exits_lead_somewhere(self):
|
|
for mod_region_data in region_data_by_content_pack.values():
|
|
for region in mod_region_data.regions:
|
|
if MergeFlag.REMOVE_EXITS in region.flag:
|
|
continue
|
|
|
|
with self.subTest(mod=mod_region_data.content_pack, region=region.name):
|
|
for exit_ in region.exits:
|
|
self.assertIn(exit_, self.all_connections_by_name, f"{region.name} is leading to {exit_} but it does not exist.")
|
|
|
|
def test_connection_lead_somewhere(self):
|
|
for mod_region_data in region_data_by_content_pack.values():
|
|
for connection in mod_region_data.connections:
|
|
with self.subTest(mod=mod_region_data.content_pack, connection=connection.name):
|
|
self.assertIn(connection.destination, self.all_regions_by_name,
|
|
f"{connection.name} is leading to {connection.destination} but it does not exist.")
|