diff --git a/worlds/ladx/LADXR/generator.py b/worlds/ladx/LADXR/generator.py index cf8e67ee..28966ab7 100644 --- a/worlds/ladx/LADXR/generator.py +++ b/worlds/ladx/LADXR/generator.py @@ -56,7 +56,7 @@ from . import hints from .locations.keyLocation import KeyLocation from .patches import bank34 -from ..Options import TrendyGame, Palette +from ..Options import TrendyGame, Palette, MusicChangeCondition # Function to generate a final rom, this patches the rom with all required patches @@ -181,7 +181,8 @@ def generateRom(args, settings, ap_settings, auth, seed_name, logic, rnd=None, m # patches.reduceRNG.slowdownThreeOfAKind(rom) patches.reduceRNG.fixHorseHeads(rom) patches.bomb.onlyDropBombsWhenHaveBombs(rom) - # patches.aesthetics.noSwordMusic(rom) + if ap_settings['music_change_condition'] == MusicChangeCondition.option_always: + patches.aesthetics.noSwordMusic(rom) patches.aesthetics.reduceMessageLengths(rom, rnd) patches.aesthetics.allowColorDungeonSpritesEverywhere(rom) if settings.music == 'random': diff --git a/worlds/ladx/Options.py b/worlds/ladx/Options.py index 13001841..b14d7b2a 100644 --- a/worlds/ladx/Options.py +++ b/worlds/ladx/Options.py @@ -180,17 +180,22 @@ class InstrumentCount(Range, LADXROption): range_end = 8 default = 8 -class ItemPool(Choice): - """Effects which items are shuffled. -[Casual] Places multiple copies of key items. -[More keys] Adds additional small/nightmare keys so that dungeons are faster. -[Path of Pain]. Adds negative heart containers to the item pool.""" - casual = 0 - more_keys = 1 - normal = 2 - painful = 3 - default = normal +class NagMessages(DefaultOffToggle, LADXROption): + """ + Controls if nag messages are shown when rocks and crystals are touched. Useful for glitches, annoying for everyone else. + """ + ladxr_name = "nagmessages" + +class MusicChangeCondition(Choice): + """ + Controls how the music changes. + [Sword] When you pick up a sword, the music changes + [Always] You always have the post-sword music + """ + option_sword = 0 + option_always = 1 + default = option_always # Setting('hpmode', 'Gameplay', 'm', 'Health mode', options=[('default', '', 'Normal'), ('inverted', 'i', 'Inverted'), ('1', '1', 'Start with 1 heart'), ('low', 'l', 'Low max')], default='default', # description=""" # [Normal} health works as you would expect. @@ -388,4 +393,6 @@ links_awakening_options: typing.Dict[str, typing.Type[Option]] = { 'shuffle_maps': ShuffleMaps, 'shuffle_compasses': ShuffleCompasses, 'shuffle_stone_beaks': ShuffleStoneBeaks, + 'music_change_condition': MusicChangeCondition, + 'nag_messages': NagMessages }