LADX: tweak in-game hints (#3920)
* dont show local player name in hint * add option to disable hints --------- Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com>
This commit is contained in:
parent
85a0d59f73
commit
d80069385d
|
@ -266,6 +266,8 @@ def generateRom(args, world: "LinksAwakeningWorld"):
|
||||||
our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification]
|
our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification]
|
||||||
|
|
||||||
def gen_hint():
|
def gen_hint():
|
||||||
|
if not world.options.in_game_hints:
|
||||||
|
return 'Hints are disabled!'
|
||||||
chance = world.random.uniform(0, 1)
|
chance = world.random.uniform(0, 1)
|
||||||
if chance < JUNK_HINT:
|
if chance < JUNK_HINT:
|
||||||
return None
|
return None
|
||||||
|
@ -286,7 +288,7 @@ def generateRom(args, world: "LinksAwakeningWorld"):
|
||||||
else:
|
else:
|
||||||
location_name = location.name
|
location_name = location.name
|
||||||
|
|
||||||
hint = f"{name} {location.item} is at {location_name}"
|
hint = f"{name} {location.item.name} is at {location_name}"
|
||||||
if location.player != world.player:
|
if location.player != world.player:
|
||||||
# filter out { and } since they cause issues with string.format later on
|
# filter out { and } since they cause issues with string.format later on
|
||||||
player_name = world.multiworld.player_name[location.player].replace("{", "").replace("}", "")
|
player_name = world.multiworld.player_name[location.player].replace("{", "").replace("}", "")
|
||||||
|
|
|
@ -498,6 +498,13 @@ class Warps(Choice):
|
||||||
default = option_vanilla
|
default = option_vanilla
|
||||||
|
|
||||||
|
|
||||||
|
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 = [
|
ladx_option_groups = [
|
||||||
OptionGroup("Goal Options", [
|
OptionGroup("Goal Options", [
|
||||||
Goal,
|
Goal,
|
||||||
|
@ -518,6 +525,7 @@ ladx_option_groups = [
|
||||||
TradeQuest,
|
TradeQuest,
|
||||||
Rooster,
|
Rooster,
|
||||||
TrendyGame,
|
TrendyGame,
|
||||||
|
InGameHints,
|
||||||
NagMessages,
|
NagMessages,
|
||||||
BootsControls
|
BootsControls
|
||||||
]),
|
]),
|
||||||
|
@ -574,6 +582,7 @@ class LinksAwakeningOptions(PerGameCommonOptions):
|
||||||
nag_messages: NagMessages
|
nag_messages: NagMessages
|
||||||
ap_title_screen: APTitleScreen
|
ap_title_screen: APTitleScreen
|
||||||
boots_controls: BootsControls
|
boots_controls: BootsControls
|
||||||
|
in_game_hints: InGameHints
|
||||||
|
|
||||||
warp_improvements: Removed
|
warp_improvements: Removed
|
||||||
additional_warp_points: Removed
|
additional_warp_points: Removed
|
||||||
|
|
Loading…
Reference in New Issue