mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
* create building data object and rename ItemSource to Source to be more generic # Conflicts: # worlds/stardew_valley/content/game_content.py # Conflicts: # worlds/stardew_valley/data/artisan.py # worlds/stardew_valley/data/game_item.py # worlds/stardew_valley/data/harvest.py # worlds/stardew_valley/data/shop.py * remove compound sources, replace by other requirements which already handle this usecase * add coops to content packs * add building progression in game features * add shippping bin to starting building; remove has_house * replace config check with feature * add other buildings in content packs * not passing * tests passes, unbelievable * use newly create methods more * use new assets to ease readability * self review * fix flake8 maybe * properly split rule for mapping cave systems * fix tractor garage name * self review * add upgrade_from to farm house buldings * don't override building name variable in logic * remove has_group from buildings * mark some items easy in grinding logic so blueprints buildings can be in more early spheres * move stuff around to maybe avoid future conflicts cuz I have like 10 PRs opened right now * remove price_multiplier, turns out it's unused during generation * disable shop source for mapping cave systems * bunch of code review changes * add petbowl and farmhouse to autobuilding * set min easy items to 300 * fix farm type
45 lines
1.7 KiB
Python
45 lines
1.7 KiB
Python
import unittest
|
|
from itertools import combinations
|
|
|
|
from BaseClasses import get_seed
|
|
from .option_names import all_option_choices
|
|
from .. import SVTestCase, solo_multiworld
|
|
from ..assertion.world_assert import WorldAssertMixin
|
|
from ... import options
|
|
|
|
|
|
class TestGenerateDynamicOptions(WorldAssertMixin, SVTestCase):
|
|
def test_given_option_pair_when_generate_then_basic_checks(self):
|
|
if self.skip_long_tests:
|
|
raise unittest.SkipTest("Long tests disabled")
|
|
|
|
for (option1, option1_choice), (option2, option2_choice) in combinations(all_option_choices, 2):
|
|
if option1 is option2:
|
|
continue
|
|
|
|
world_options = {
|
|
option1: option1_choice,
|
|
option2: option2_choice
|
|
}
|
|
|
|
with self.solo_world_sub_test(f"{option1.internal_name}: {option1_choice}, {option2.internal_name}: {option2_choice}",
|
|
world_options,
|
|
world_caching=False) \
|
|
as (multiworld, _):
|
|
self.assert_basic_checks(multiworld)
|
|
|
|
|
|
class TestDynamicOptionDebug(WorldAssertMixin, SVTestCase):
|
|
|
|
def test_option_pair_debug(self):
|
|
option_dict = {
|
|
options.Goal.internal_name: options.Goal.option_cryptic_note,
|
|
options.EntranceRandomization.internal_name: options.EntranceRandomization.option_buildings,
|
|
}
|
|
for i in range(1):
|
|
seed = get_seed(76312028554502615508)
|
|
with self.subTest(f"Seed: {seed}"):
|
|
print(f"Seed: {seed}")
|
|
with solo_multiworld(option_dict, seed=seed) as (multiworld, _):
|
|
self.assert_basic_checks(multiworld)
|