Skip to content

Commit

Permalink
added option groups
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLX5 committed May 23, 2024
1 parent a82a872 commit 8c30363
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 28 additions & 1 deletion worlds/mmx/Options.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
import typing

from Options import Choice, Range, Toggle, DefaultOnToggle, DeathLink, PerGameCommonOptions, StartInventoryPool
from Options import OptionGroup, Choice, Range, Toggle, DefaultOnToggle, DeathLink, PerGameCommonOptions, StartInventoryPool

class EnergyLink(DefaultOnToggle):
"""
Expand Down Expand Up @@ -216,6 +216,33 @@ class SigmaSubTankCount(Range):
range_end = 4
default = 4

mmx_option_groups = [
OptionGroup("Sigma Fortress Options", [
SigmaOpen,
SigmaMedalCount,
SigmaWeaponCount,
SigmaArmorUpgradeCount,
SigmaHeartTankCount,
SigmaSubTankCount,
FortressBundleUnlock,
]),
OptionGroup("Boss Weaknesses", [
BossWeaknessRando,
BossWeaknessStrictness,
BossRandomizedHP,
]),
OptionGroup("Gameplay Options", [
StartingLifeCount,
StartingHP,
HeartTankEffectiveness,
JammedBuster,
]),
OptionGroup("Logic", [
LogicBossWeakness,
LogicLegSigma,
LogicChargedShotgunIce,
]),
]

@dataclass
class MMXOptions(PerGameCommonOptions):
Expand Down
4 changes: 3 additions & 1 deletion worlds/mmx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .Locations import MMXLocation, setup_locations, all_locations, location_groups
from .Regions import create_regions, connect_regions
from .Names import ItemName, LocationName, EventName
from .Options import MMXOptions
from .Options import MMXOptions, mmx_option_groups
from .Client import MMXSNIClient
from .Levels import location_id_to_level_id
from .Weaknesses import randomize_weaknesses, boss_weaknesses, weapon_id
Expand Down Expand Up @@ -44,6 +44,8 @@ class MMXWeb(WebWorld):

tutorials = [setup_en]

option_groups = mmx_option_groups


class MMXWorld(World):
"""
Expand Down

0 comments on commit 8c30363

Please sign in to comment.