The Witness: Get rid of Menu region, prepare for other worlds to change theirs (hints) #3888

This commit is contained in:
NewSoupVi 2024-11-09 21:10:54 +01:00 committed by GitHub
parent 6b4f6ebc1e
commit fa93bc5d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 10 deletions

View File

@ -50,6 +50,8 @@ class WitnessWorld(World):
topology_present = False
web = WitnessWebWorld()
origin_region_name = "Entry"
options_dataclass = TheWitnessOptions
options: TheWitnessOptions

View File

@ -1,7 +1,5 @@
==Tutorial (Inside)==
Menu (Menu) - Entry - True:
Entry (Entry):
Tutorial First Hallway (Tutorial First Hallway) - Entry - True - Tutorial First Hallway Room - 0x00064:

View File

@ -1,7 +1,5 @@
==Tutorial (Inside)==
Menu (Menu) - Entry - True:
Entry (Entry):
Tutorial First Hallway (Tutorial First Hallway) - Entry - True - Tutorial First Hallway Room - 0x00064:

View File

@ -1,7 +1,5 @@
==Tutorial (Inside)==
Menu (Menu) - Entry - True:
Entry (Entry):
Tutorial First Hallway (Tutorial First Hallway) - Entry - True - Tutorial First Hallway Room - 0x00064:

View File

@ -1,7 +1,5 @@
==Tutorial (Inside)==
Menu (Menu) - Entry - True:
Entry (Entry):
Tutorial First Hallway (Tutorial First Hallway) - Entry - True - Tutorial First Hallway Room - 0x00064:

View File

@ -250,8 +250,11 @@ def word_direct_hint(world: "WitnessWorld", hint: WitnessLocationHint) -> Witnes
elif group_type == "Group":
location_name = f"a \"{chosen_group}\" location in {player_name}'s world"
elif group_type == "Region":
if chosen_group == "Menu":
location_name = f"a location near the start of {player_name}'s game (\"Menu\" region)"
origin_region_name = world.multiworld.worlds[hint.location.player].origin_region_name
if chosen_group == origin_region_name:
location_name = (
f"a location in the origin region of {player_name}'s world (\"{origin_region_name}\" region)"
)
else:
location_name = f"a location in {player_name}'s \"{chosen_group}\" region"