1
1
from dataclasses import dataclass
2
- from Options import Toggle , DefaultOnToggle , DeathLink , Range , Choice , PerGameCommonOptions
2
+ from Options import Toggle , DefaultOnToggle , DeathLink , Range , Choice , PerGameCommonOptions , OptionGroup
3
3
4
4
5
5
# NOTE be aware that since the range of item ids that RoR2 uses is based off of the maximums of checks
@@ -350,7 +350,7 @@ class ItemPoolPresetToggle(Toggle):
350
350
351
351
352
352
class ItemWeights (Choice ):
353
- """Set item_pool_presets to true if you want to use one of these presets.
353
+ """Set Use Item Weight Presets to yes if you want to use one of these presets.
354
354
Preset choices for determining the weights of the item pool.
355
355
- New is a test for a potential adjustment to the default weights.
356
356
- Uncommon puts a large number of uncommon items in the pool.
@@ -375,6 +375,44 @@ class ItemWeights(Choice):
375
375
option_void = 9
376
376
377
377
378
+ ror2_option_groups = [
379
+ OptionGroup ("Explore Mode Options" , [
380
+ ChestsPerEnvironment ,
381
+ ShrinesPerEnvironment ,
382
+ ScavengersPerEnvironment ,
383
+ ScannersPerEnvironment ,
384
+ AltarsPerEnvironment ,
385
+ RequireStages ,
386
+ ProgressiveStages ,
387
+ ]),
388
+ OptionGroup ("Classic Mode Options" , [
389
+ TotalLocations ,
390
+ ], start_collapsed = True ),
391
+ OptionGroup ("Weighted Choices" , [
392
+ ItemWeights ,
393
+ ItemPoolPresetToggle ,
394
+ WhiteScrap ,
395
+ GreenScrap ,
396
+ YellowScrap ,
397
+ RedScrap ,
398
+ CommonItem ,
399
+ UncommonItem ,
400
+ LegendaryItem ,
401
+ BossItem ,
402
+ LunarItem ,
403
+ VoidItem ,
404
+ Equipment ,
405
+ Money ,
406
+ LunarCoin ,
407
+ Experience ,
408
+ MountainTrap ,
409
+ TimeWarpTrap ,
410
+ CombatTrap ,
411
+ TeleportTrap ,
412
+ ]),
413
+ ]
414
+
415
+
378
416
@dataclass
379
417
class ROR2Options (PerGameCommonOptions ):
380
418
goal : Goal
@@ -399,10 +437,10 @@ class ROR2Options(PerGameCommonOptions):
399
437
item_weights : ItemWeights
400
438
item_pool_presets : ItemPoolPresetToggle
401
439
# define the weights of the generated item pool.
440
+ white_scrap : WhiteScrap
402
441
green_scrap : GreenScrap
403
- red_scrap : RedScrap
404
442
yellow_scrap : YellowScrap
405
- white_scrap : WhiteScrap
443
+ red_scrap : RedScrap
406
444
common_item : CommonItem
407
445
uncommon_item : UncommonItem
408
446
legendary_item : LegendaryItem
0 commit comments