Stardew valley: Create Option Groups (#3376)
* - Fix link in Stardew Setup Guide * - Create option groups for Stardew Valley * - Cleaned up the imports * - Fixed double quotes and trailing comma * - Improve order in the multipliers category
This commit is contained in:
		| @@ -13,6 +13,7 @@ from .locations import location_table, create_locations, LocationData, locations | ||||
| from .logic.bundle_logic import BundleLogic | ||||
| from .logic.logic import StardewLogic | ||||
| from .logic.time_logic import MAX_MONTHS | ||||
| from .option_groups import sv_option_groups | ||||
| from .options import StardewValleyOptions, SeasonRandomization, Goal, BundleRandomization, BundlePrice, NumberOfLuckBuffs, NumberOfMovementBuffs, \ | ||||
|     BackpackProgression, BuildingProgression, ExcludeGingerIsland, TrapItems, EntranceRandomization | ||||
| from .presets import sv_options_presets | ||||
| @@ -39,6 +40,7 @@ class StardewWebWorld(WebWorld): | ||||
|     theme = "dirt" | ||||
|     bug_report_page = "https://github.com/agilbert1412/StardewArchipelago/issues/new?labels=bug&title=%5BBug%5D%3A+Brief+Description+of+bug+here" | ||||
|     options_presets = sv_options_presets | ||||
|     option_groups = sv_option_groups | ||||
|  | ||||
|     tutorials = [ | ||||
|         Tutorial( | ||||
|   | ||||
							
								
								
									
										65
									
								
								worlds/stardew_valley/option_groups.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								worlds/stardew_valley/option_groups.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| from Options import OptionGroup, DeathLink, ProgressionBalancing, Accessibility | ||||
| from .options import (Goal, StartingMoney, ProfitMargin, BundleRandomization, BundlePrice, | ||||
|                       EntranceRandomization, SeasonRandomization, Cropsanity, BackpackProgression, | ||||
|                       ToolProgression, ElevatorProgression, SkillProgression, BuildingProgression, | ||||
|                       FestivalLocations, ArcadeMachineLocations, SpecialOrderLocations, | ||||
|                       QuestLocations, Fishsanity, Museumsanity, Friendsanity, FriendsanityHeartSize, | ||||
|                       NumberOfMovementBuffs, NumberOfLuckBuffs, ExcludeGingerIsland, TrapItems, | ||||
|                       MultipleDaySleepEnabled, MultipleDaySleepCost, ExperienceMultiplier, | ||||
|                       FriendshipMultiplier, DebrisMultiplier, QuickStart, Gifting, FarmType, | ||||
|                       Monstersanity, Shipsanity, Cooksanity, Chefsanity, Craftsanity, Mods) | ||||
|  | ||||
| sv_option_groups = [ | ||||
|     OptionGroup("General", [ | ||||
|         Goal, | ||||
|         FarmType, | ||||
|         BundleRandomization, | ||||
|         BundlePrice, | ||||
|         EntranceRandomization, | ||||
|         ExcludeGingerIsland, | ||||
|     ]), | ||||
|     OptionGroup("Major Unlocks", [ | ||||
|         SeasonRandomization, | ||||
|         Cropsanity, | ||||
|         BackpackProgression, | ||||
|         ToolProgression, | ||||
|         ElevatorProgression, | ||||
|         SkillProgression, | ||||
|         BuildingProgression, | ||||
|     ]), | ||||
|     OptionGroup("Extra Shuffling", [ | ||||
|         FestivalLocations, | ||||
|         ArcadeMachineLocations, | ||||
|         SpecialOrderLocations, | ||||
|         QuestLocations, | ||||
|         Fishsanity, | ||||
|         Museumsanity, | ||||
|         Friendsanity, | ||||
|         FriendsanityHeartSize, | ||||
|         Monstersanity, | ||||
|         Shipsanity, | ||||
|         Cooksanity, | ||||
|         Chefsanity, | ||||
|         Craftsanity, | ||||
|     ]), | ||||
|     OptionGroup("Multipliers and Buffs", [ | ||||
|         StartingMoney, | ||||
|         ProfitMargin, | ||||
|         ExperienceMultiplier, | ||||
|         FriendshipMultiplier, | ||||
|         DebrisMultiplier, | ||||
|         NumberOfMovementBuffs, | ||||
|         NumberOfLuckBuffs, | ||||
|         TrapItems, | ||||
|         MultipleDaySleepEnabled, | ||||
|         MultipleDaySleepCost, | ||||
|         QuickStart, | ||||
|     ]), | ||||
|     OptionGroup("Advanced Options", [ | ||||
|         Gifting, | ||||
|         DeathLink, | ||||
|         Mods, | ||||
|         ProgressionBalancing, | ||||
|         Accessibility, | ||||
|     ]), | ||||
| ] | ||||
| @@ -697,8 +697,6 @@ class Mods(OptionSet): | ||||
| class StardewValleyOptions(PerGameCommonOptions): | ||||
|     goal: Goal | ||||
|     farm_type: FarmType | ||||
|     starting_money: StartingMoney | ||||
|     profit_margin: ProfitMargin | ||||
|     bundle_randomization: BundleRandomization | ||||
|     bundle_price: BundlePrice | ||||
|     entrance_randomization: EntranceRandomization | ||||
| @@ -722,16 +720,18 @@ class StardewValleyOptions(PerGameCommonOptions): | ||||
|     craftsanity: Craftsanity | ||||
|     friendsanity: Friendsanity | ||||
|     friendsanity_heart_size: FriendsanityHeartSize | ||||
|     movement_buff_number: NumberOfMovementBuffs | ||||
|     luck_buff_number: NumberOfLuckBuffs | ||||
|     exclude_ginger_island: ExcludeGingerIsland | ||||
|     trap_items: TrapItems | ||||
|     multiple_day_sleep_enabled: MultipleDaySleepEnabled | ||||
|     multiple_day_sleep_cost: MultipleDaySleepCost | ||||
|     quick_start: QuickStart | ||||
|     starting_money: StartingMoney | ||||
|     profit_margin: ProfitMargin | ||||
|     experience_multiplier: ExperienceMultiplier | ||||
|     friendship_multiplier: FriendshipMultiplier | ||||
|     debris_multiplier: DebrisMultiplier | ||||
|     quick_start: QuickStart | ||||
|     movement_buff_number: NumberOfMovementBuffs | ||||
|     luck_buff_number: NumberOfLuckBuffs | ||||
|     trap_items: TrapItems | ||||
|     multiple_day_sleep_enabled: MultipleDaySleepEnabled | ||||
|     multiple_day_sleep_cost: MultipleDaySleepCost | ||||
|     gifting: Gifting | ||||
|     mods: Mods | ||||
|     death_link: DeathLink | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 agilbert1412
					agilbert1412