LADX: enable upstream options (#3962)

* enable some upstream settings

* flashing just disabled, no setting

* just enable fast text

* noflash and textmode as hidden options

* typo

* drop whitespace changes

* add hard mode to slot data

* textmode adjustments
fast text default (fixing mistake)
remove no text option (its buggy)

* unhide options

* Update worlds/ladx/Options.py

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>

* adjustments
This commit is contained in:
threeandthreee 2024-12-19 21:19:00 -05:00 committed by GitHub
parent de3707af4a
commit e142283e64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 87 additions and 40 deletions

View File

@ -181,7 +181,7 @@ Note, some entrances can lead into water, use the warp-to-home from the save&qui
Setting('quickswap', 'User options', 'Q', 'Quickswap', options=[('none', '', 'Disabled'), ('a', 'a', 'Swap A button'), ('b', 'b', 'Swap B button')], default='none', Setting('quickswap', 'User options', 'Q', 'Quickswap', options=[('none', '', 'Disabled'), ('a', 'a', 'Swap A button'), ('b', 'b', 'Swap B button')], default='none',
description='Adds that the select button swaps with either A or B. The item is swapped with the top inventory slot. The map is not available when quickswap is enabled.', description='Adds that the select button swaps with either A or B. The item is swapped with the top inventory slot. The map is not available when quickswap is enabled.',
aesthetic=True), aesthetic=True),
Setting('textmode', 'User options', 'f', 'Text mode', options=[('fast', '', 'Fast'), ('default', 'd', 'Normal'), ('none', 'n', 'No-text')], default='fast', Setting('textmode', 'User options', 'f', 'Text mode', options=[('fast', '', 'Fast'), ('normal', 'd', 'Normal'), ('none', 'n', 'No-text')], default='fast',
description="""[Fast] makes text appear twice as fast. description="""[Fast] makes text appear twice as fast.
[No-Text] removes all text from the game""", aesthetic=True), [No-Text] removes all text from the game""", aesthetic=True),
Setting('lowhpbeep', 'User options', 'p', 'Low HP beeps', options=[('none', 'D', 'Disabled'), ('slow', 'S', 'Slow'), ('default', 'N', 'Normal')], default='slow', Setting('lowhpbeep', 'User options', 'p', 'Low HP beeps', options=[('none', 'D', 'Disabled'), ('slow', 'S', 'Slow'), ('default', 'N', 'Normal')], default='slow',

View File

@ -278,11 +278,21 @@ class MusicChangeCondition(Choice):
# [Start with 1] normal game, you just start with 1 heart instead of 3. # [Start with 1] normal game, you just start with 1 heart instead of 3.
# [Low max] replace heart containers with heart pieces."""), # [Low max] replace heart containers with heart pieces."""),
# Setting('hardmode', 'Gameplay', 'X', 'Hard mode', options=[('none', '', 'Disabled'), ('oracle', 'O', 'Oracle'), ('hero', 'H', 'Hero'), ('ohko', '1', 'One hit KO')], default='none',
# description=""" class HardMode(Choice, LADXROption):
# [Oracle] Less iframes and heath from drops. Bombs damage yourself. Water damages you without flippers. No piece of power or acorn. """
# [Hero] Switch version hero mode, double damage, no heart/fairy drops. [Oracle] Less iframes and health from drops. Bombs damage yourself. Water damages you without flippers. No piece of power or acorn.
# [One hit KO] You die on a single hit, always."""), [Hero] Switch version hero mode, double damage, no heart/fairy drops.
[One hit KO] You die on a single hit, always.
"""
display_name = "Hard Mode"
ladxr_name = "hardmode"
option_none = 0
option_oracle = 1
option_hero = 2
option_ohko = 3
default = option_none
# Setting('steal', 'Gameplay', 't', 'Stealing from the shop', # Setting('steal', 'Gameplay', 't', 'Stealing from the shop',
# options=[('always', 'a', 'Always'), ('never', 'n', 'Never'), ('default', '', 'Normal')], default='default', # options=[('always', 'a', 'Always'), ('never', 'n', 'Never'), ('default', '', 'Normal')], default='default',
@ -317,35 +327,50 @@ class Overworld(Choice, LADXROption):
# Setting('superweapons', 'Special', 'q', 'Enable super weapons', default=False, # Setting('superweapons', 'Special', 'q', 'Enable super weapons', default=False,
# description='All items will be more powerful, faster, harder, bigger stronger. You name it.'), # description='All items will be more powerful, faster, harder, bigger stronger. You name it.'),
# Setting('quickswap', 'User options', 'Q', 'Quickswap', options=[('none', '', 'Disabled'), ('a', 'a', 'Swap A button'), ('b', 'b', 'Swap B button')], default='none',
# description='Adds that the select button swaps with either A or B. The item is swapped with the top inventory slot. The map is not available when quickswap is enabled.',
# aesthetic=True), class Quickswap(Choice, LADXROption):
# Setting('textmode', 'User options', 'f', 'Text mode', options=[('fast', '', 'Fast'), ('default', 'd', 'Normal'), ('none', 'n', 'No-text')], default='fast', """
# description="""[Fast] makes text appear twice as fast. Adds that the SELECT button swaps with either A or B. The item is swapped with the top inventory slot. The map is not available when quickswap is enabled.
# [No-Text] removes all text from the game""", aesthetic=True), """
# Setting('lowhpbeep', 'User options', 'p', 'Low HP beeps', options=[('none', 'D', 'Disabled'), ('slow', 'S', 'Slow'), ('default', 'N', 'Normal')], default='slow', display_name = "Quickswap"
# description='Slows or disables the low health beeping sound', aesthetic=True), ladxr_name = "quickswap"
# Setting('noflash', 'User options', 'l', 'Remove flashing lights', default=True, option_none = 0
# description='Remove the flashing light effects from Mamu, shopkeeper and MadBatter. Useful for capture cards and people that are sensitive for these things.', option_a = 1
# aesthetic=True), option_b = 2
# Setting('nagmessages', 'User options', 'S', 'Show nag messages', default=False, default = option_none
# description='Enables the nag messages normally shown when touching stones and crystals',
# aesthetic=True),
# Setting('gfxmod', 'User options', 'c', 'Graphics', options=gfx_options, default='', class TextMode(Choice, LADXROption):
# description='Generally affects at least Link\'s sprite, but can alter any graphics in the game', """
# aesthetic=True), [Fast] Makes text appear twice as fast
# Setting('linkspalette', 'User options', 'C', "Link's color", """
# options=[('-1', '-', 'Normal'), ('0', '0', 'Green'), ('1', '1', 'Yellow'), ('2', '2', 'Red'), ('3', '3', 'Blue'), display_name = "Text Mode"
# ('4', '4', '?? A'), ('5', '5', '?? B'), ('6', '6', '?? C'), ('7', '7', '?? D')], default='-1', aesthetic=True, ladxr_name = "textmode"
# description="""Allows you to force a certain color on link. option_normal = 0
# [Normal] color of link depends on the tunic. option_fast = 1
# [Green/Yellow/Red/Blue] forces link into one of these colors. default = option_fast
# [?? A/B/C/D] colors of link are usually inverted and color depends on the area you are in."""),
# Setting('music', 'User options', 'M', 'Music', options=[('', '', 'Default'), ('random', 'r', 'Random'), ('off', 'o', 'Disable')], default='',
# description=""" class LowHpBeep(Choice, LADXROption):
# [Random] Randomizes overworld and dungeon music' """
# [Disable] no music in the whole game""", Slows or disables the low health beeping sound.
# aesthetic=True), """
display_name = "Low HP Beep"
ladxr_name = "lowhpbeep"
option_default = 0
option_slow = 1
option_none = 2
default = option_default
class NoFlash(DefaultOnToggle, LADXROption):
"""
Remove the flashing light effects from Mamu, shopkeeper and MadBatter. Useful for capture cards and people that are sensitive to these things.
"""
display_name = "No Flash"
ladxr_name = "noflash"
class BootsControls(Choice): class BootsControls(Choice):
""" """
@ -540,6 +565,8 @@ ladx_option_groups = [
TrendyGame, TrendyGame,
InGameHints, InGameHints,
NagMessages, NagMessages,
Quickswap,
HardMode,
BootsControls BootsControls
]), ]),
OptionGroup("Experimental", [ OptionGroup("Experimental", [
@ -554,7 +581,10 @@ ladx_option_groups = [
APTitleScreen, APTitleScreen,
GfxMod, GfxMod,
Music, Music,
MusicChangeCondition MusicChangeCondition,
LowHpBeep,
TextMode,
NoFlash,
]) ])
] ]
@ -597,6 +627,11 @@ class LinksAwakeningOptions(PerGameCommonOptions):
nag_messages: NagMessages nag_messages: NagMessages
ap_title_screen: APTitleScreen ap_title_screen: APTitleScreen
boots_controls: BootsControls boots_controls: BootsControls
quickswap: Quickswap
hard_mode: HardMode
low_hp_beep: LowHpBeep
text_mode: TextMode
no_flash: NoFlash
in_game_hints: InGameHints in_game_hints: InGameHints
warp_improvements: Removed warp_improvements: Removed

View File

@ -514,10 +514,22 @@ class LinksAwakeningWorld(World):
slot_options = ["instrument_count"] slot_options = ["instrument_count"]
slot_options_display_name = [ slot_options_display_name = [
"goal", "logic", "tradequest", "rooster", "goal",
"experimental_dungeon_shuffle", "experimental_entrance_shuffle", "trendy_game", "gfxmod", "logic",
"shuffle_nightmare_keys", "shuffle_small_keys", "shuffle_maps", "tradequest",
"shuffle_compasses", "shuffle_stone_beaks", "shuffle_instruments", "nag_messages" "rooster",
"experimental_dungeon_shuffle",
"experimental_entrance_shuffle",
"trendy_game",
"gfxmod",
"shuffle_nightmare_keys",
"shuffle_small_keys",
"shuffle_maps",
"shuffle_compasses",
"shuffle_stone_beaks",
"shuffle_instruments",
"nag_messages",
"hard_mode",
] ]
# use the default behaviour to grab options # use the default behaviour to grab options