diff --git a/worlds/yachtdice/Options.py b/worlds/yachtdice/Options.py index b8250a45ef..7e95c48235 100644 --- a/worlds/yachtdice/Options.py +++ b/worlds/yachtdice/Options.py @@ -1,4 +1,4 @@ -from Options import Choice, Range, PerGameCommonOptions +from Options import Choice, Range, PerGameCommonOptions, OptionGroup from dataclasses import dataclass class GameDifficulty(Choice): @@ -266,6 +266,8 @@ class YachtDiceOptions(PerGameCommonOptions): alternative_categories: AlternativeCategories + allow_manual_input: AllowManual + #the following options determine what extra items are shuffled into the pool: weight_of_dice: ChanceOfDice weight_of_roll: ChanceOfRoll @@ -279,6 +281,14 @@ class YachtDiceOptions(PerGameCommonOptions): add_bonus_points: AddExtraPoints add_story_chapters: AddStoryChapters which_story: WhichStory + +yd_option_groups = [ + OptionGroup("Extra progression items", [ + ChanceOfDice, ChanceOfRoll, ChanceOfFixedScoreMultiplier, ChanceOfStepScoreMultiplier, + ChanceOfDoubleCategory, ChanceOfPoints, PointsSize + ]), - allow_manual_input: AllowManual - \ No newline at end of file + OptionGroup("Other items", [ + MinimizeExtraItems, AddExtraPoints, AddStoryChapters, WhichStory + ]) +] diff --git a/worlds/yachtdice/__init__.py b/worlds/yachtdice/__init__.py index d700dcf979..2728cd3a2d 100644 --- a/worlds/yachtdice/__init__.py +++ b/worlds/yachtdice/__init__.py @@ -3,7 +3,7 @@ import math from BaseClasses import Region, Entrance, Item, Tutorial, CollectionState from .Items import YachtDiceItem, item_table, item_groups from .Locations import YachtDiceLocation, all_locations, ini_locations -from .Options import YachtDiceOptions +from .Options import YachtDiceOptions, yd_option_groups from .Rules import set_yacht_rules, set_yacht_completion_rules, dice_simulation from worlds.AutoWorld import World, WebWorld @@ -18,6 +18,8 @@ class YachtDiceWeb(WebWorld): "setup/en", ["Spineraks"] )] + + option_groups = yd_option_groups class YachtDiceWorld(World):