 52e65e208e
			
		
	
	52e65e208e
	
	
	
		
			
			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>
		
			
				
	
	
		
			25 lines
		
	
	
		
			805 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			805 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from dataclasses import dataclass
 | |
| from random import Random
 | |
| from typing import List
 | |
| 
 | |
| from .bundle import Bundle, BundleTemplate
 | |
| from ..options import BundlePrice, StardewValleyOptions
 | |
| 
 | |
| 
 | |
| @dataclass
 | |
| class BundleRoom:
 | |
|     name: str
 | |
|     bundles: List[Bundle]
 | |
| 
 | |
| 
 | |
| @dataclass
 | |
| class BundleRoomTemplate:
 | |
|     name: str
 | |
|     bundles: List[BundleTemplate]
 | |
|     number_bundles: int
 | |
| 
 | |
|     def create_bundle_room(self, bundle_price_option: BundlePrice, random: Random, options: StardewValleyOptions):
 | |
|         filtered_bundles = [bundle for bundle in self.bundles if bundle.can_appear(options)]
 | |
|         chosen_bundles = random.sample(filtered_bundles, self.number_bundles)
 | |
|         return BundleRoom(self.name, [bundle.create_bundle(bundle_price_option, random, options) for bundle in chosen_bundles])
 |