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>
		
			
				
	
	
		
			101 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			101 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
from . import SVTestBase
 | 
						|
from .. import options, item_table, Group
 | 
						|
 | 
						|
max_iterations = 2000
 | 
						|
 | 
						|
 | 
						|
class TestItemLinksEverythingIncluded(SVTestBase):
 | 
						|
    options = {options.ExcludeGingerIsland.internal_name: options.ExcludeGingerIsland.option_false,
 | 
						|
               options.TrapItems.internal_name: options.TrapItems.option_medium}
 | 
						|
 | 
						|
    def test_filler_of_all_types_generated(self):
 | 
						|
        max_number_filler = 114
 | 
						|
        filler_generated = []
 | 
						|
        at_least_one_trap = False
 | 
						|
        at_least_one_island = False
 | 
						|
        for i in range(0, max_iterations):
 | 
						|
            filler = self.multiworld.worlds[1].get_filler_item_name()
 | 
						|
            if filler in filler_generated:
 | 
						|
                continue
 | 
						|
            filler_generated.append(filler)
 | 
						|
            self.assertNotIn(Group.MAXIMUM_ONE, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.EXACTLY_TWO, item_table[filler].groups)
 | 
						|
            if Group.TRAP in item_table[filler].groups:
 | 
						|
                at_least_one_trap = True
 | 
						|
            if Group.GINGER_ISLAND in item_table[filler].groups:
 | 
						|
                at_least_one_island = True
 | 
						|
            if len(filler_generated) >= max_number_filler:
 | 
						|
                break
 | 
						|
        self.assertTrue(at_least_one_trap)
 | 
						|
        self.assertTrue(at_least_one_island)
 | 
						|
        self.assertGreaterEqual(len(filler_generated), max_number_filler)
 | 
						|
 | 
						|
 | 
						|
class TestItemLinksNoIsland(SVTestBase):
 | 
						|
    options = {options.ExcludeGingerIsland.internal_name: options.ExcludeGingerIsland.option_true,
 | 
						|
               options.TrapItems.internal_name: options.TrapItems.option_medium}
 | 
						|
 | 
						|
    def test_filler_has_no_island_but_has_traps(self):
 | 
						|
        max_number_filler = 109
 | 
						|
        filler_generated = []
 | 
						|
        at_least_one_trap = False
 | 
						|
        for i in range(0, max_iterations):
 | 
						|
            filler = self.multiworld.worlds[1].get_filler_item_name()
 | 
						|
            if filler in filler_generated:
 | 
						|
                continue
 | 
						|
            filler_generated.append(filler)
 | 
						|
            self.assertNotIn(Group.GINGER_ISLAND, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.MAXIMUM_ONE, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.EXACTLY_TWO, item_table[filler].groups)
 | 
						|
            if Group.TRAP in item_table[filler].groups:
 | 
						|
                at_least_one_trap = True
 | 
						|
            if len(filler_generated) >= max_number_filler:
 | 
						|
                break
 | 
						|
        self.assertTrue(at_least_one_trap)
 | 
						|
        self.assertGreaterEqual(len(filler_generated), max_number_filler)
 | 
						|
 | 
						|
 | 
						|
class TestItemLinksNoTraps(SVTestBase):
 | 
						|
    options = {options.ExcludeGingerIsland.internal_name: options.ExcludeGingerIsland.option_false,
 | 
						|
               options.TrapItems.internal_name: options.TrapItems.option_no_traps}
 | 
						|
 | 
						|
    def test_filler_has_no_traps_but_has_island(self):
 | 
						|
        max_number_filler = 99
 | 
						|
        filler_generated = []
 | 
						|
        at_least_one_island = False
 | 
						|
        for i in range(0, max_iterations):
 | 
						|
            filler = self.multiworld.worlds[1].get_filler_item_name()
 | 
						|
            if filler in filler_generated:
 | 
						|
                continue
 | 
						|
            filler_generated.append(filler)
 | 
						|
            self.assertNotIn(Group.TRAP, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.MAXIMUM_ONE, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.EXACTLY_TWO, item_table[filler].groups)
 | 
						|
            if Group.GINGER_ISLAND in item_table[filler].groups:
 | 
						|
                at_least_one_island = True
 | 
						|
            if len(filler_generated) >= max_number_filler:
 | 
						|
                break
 | 
						|
        self.assertTrue(at_least_one_island)
 | 
						|
        self.assertGreaterEqual(len(filler_generated), max_number_filler)
 | 
						|
 | 
						|
 | 
						|
class TestItemLinksNoTrapsAndIsland(SVTestBase):
 | 
						|
    options = {options.ExcludeGingerIsland.internal_name: options.ExcludeGingerIsland.option_true,
 | 
						|
               options.TrapItems.internal_name: options.TrapItems.option_no_traps}
 | 
						|
 | 
						|
    def test_filler_generated_without_island_or_traps(self):
 | 
						|
        max_number_filler = 94
 | 
						|
        filler_generated = []
 | 
						|
        for i in range(0, max_iterations):
 | 
						|
            filler = self.multiworld.worlds[1].get_filler_item_name()
 | 
						|
            if filler in filler_generated:
 | 
						|
                continue
 | 
						|
            filler_generated.append(filler)
 | 
						|
            self.assertNotIn(Group.GINGER_ISLAND, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.TRAP, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.MAXIMUM_ONE, item_table[filler].groups)
 | 
						|
            self.assertNotIn(Group.EXACTLY_TWO, item_table[filler].groups)
 | 
						|
            if len(filler_generated) >= max_number_filler:
 | 
						|
                break
 | 
						|
        self.assertGreaterEqual(len(filler_generated), max_number_filler)
 |