Skip to content

Commit

Permalink
add option to disable hints
Browse files Browse the repository at this point in the history
  • Loading branch information
threeandthreee committed Sep 11, 2024
1 parent b2fa97f commit 14f696c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worlds/ladx/LADXR/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def generateRom(args, world: "LinksAwakeningWorld"):
our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification]

def gen_hint():
if not world.options.in_game_hints:
return 'Hints are disabled!'
chance = world.random.uniform(0, 1)
if chance < JUNK_HINT:
return None
Expand Down
9 changes: 9 additions & 0 deletions worlds/ladx/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,13 @@ class AdditionalWarpPoints(DefaultOffToggle):
"""
display_name = "Additional Warp Points"

class InGameHints(DefaultOnToggle):
"""
When enabled, owl statues and library books may indicate the location of your items in the multiworld.
"""
display_name = "In-game Hints"


ladx_option_groups = [
OptionGroup("Goal Options", [
Goal,
Expand All @@ -522,6 +529,7 @@ class AdditionalWarpPoints(DefaultOffToggle):
TradeQuest,
Rooster,
TrendyGame,
InGameHints,
NagMessages,
BootsControls
]),
Expand Down Expand Up @@ -579,3 +587,4 @@ class LinksAwakeningOptions(PerGameCommonOptions):
nag_messages: NagMessages
ap_title_screen: APTitleScreen
boots_controls: BootsControls
in_game_hints: InGameHints

0 comments on commit 14f696c

Please sign in to comment.