Skip to content

Commit

Permalink
Updated Options to new system. Changed all references from MultiWorld…
Browse files Browse the repository at this point in the history
… to World
  • Loading branch information
jamesbrq committed Jan 23, 2024
1 parent 0bbdae2 commit b86d7ef
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 484 deletions.
2 changes: 1 addition & 1 deletion worlds/mlss/Enemies.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(self):
0x5042CC,
0x5042EC,
0x50430C,
# 0x50438C, Popple 3
0x50438C,
0x5045CC,
0x5045EC,
0x50460C
Expand Down
56 changes: 28 additions & 28 deletions worlds/mlss/Options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typing
from Options import Choice, Option, Toggle, StartInventoryPool
from Options import Choice, Option, Toggle, StartInventoryPool, PerGameCommonOptions
from dataclasses import dataclass


class IntroSkip(Toggle):
Expand Down Expand Up @@ -245,29 +245,29 @@ class ChuckleBeans(Choice):
default = 2


mlss_options: typing.Dict[str, type(Option)] = {
"start_inventory_from_pool": StartInventoryPool,
"coins": Coins,
"difficult_logic": DifficultLogic,
"skip_intro": IntroSkip,
"castle_skip": BowsersCastleSkip,
"extra_pipes": ExtraPipes,
"skip_minecart": SkipMinecart,
"disable_surf": DisableSurf,
"harhalls_pants": HarhallsPants,
"hidden_visible": HiddenVisible,
"blocks_invisible": BlocksInvisible,
"chuckle_beans": ChuckleBeans,
"music_options": MusicOptions,
"randomize_sounds": RandomSounds,
"randomize_enemies": RandomizeEnemies,
"randomize_bosses": RandomizeBosses,
"randomize_backgrounds": RandomizeBackgrounds,
"scale_stats": ScaleStats,
"scale_pow": ScalePow,
"tattle_hp": TattleHp,
"mario_color": MarioColor,
"luigi_color": LuigiColor,
"mario_pants": MarioPants,
"luigi_pants": LuigiPants
}
@dataclass
class MLSSOptions(PerGameCommonOptions):
start_inventory_from_pool: StartInventoryPool
coins: Coins
difficult_logic: DifficultLogic
skip_intro: IntroSkip
castle_skip: BowsersCastleSkip
extra_pipes: ExtraPipes
skip_minecart: SkipMinecart
disable_surf: DisableSurf
harhalls_pants: HarhallsPants
hidden_visible: HiddenVisible
blocks_invisible: BlocksInvisible
chuckle_beans: ChuckleBeans
music_options: MusicOptions
randomize_sounds: RandomSounds
randomize_enemies: RandomizeEnemies
randomize_bosses: RandomizeBosses
randomize_backgrounds: RandomizeBackgrounds
scale_stats: ScaleStats
scale_pow: ScalePow
tattle_hp: TattleHp
mario_color: MarioColor
luigi_color: LuigiColor
mario_pants: MarioPants
luigi_pants: LuigiPants
Loading

0 comments on commit b86d7ef

Please sign in to comment.