Skip to content

Commit

Permalink
The Witness: Get rid of Menu region, prepare for other worlds to chan…
Browse files Browse the repository at this point in the history
…ge theirs (hints) #3888
  • Loading branch information
NewSoupVi authored Nov 9, 2024
1 parent 6b4f6eb commit fa93bc5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions worlds/witness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class WitnessWorld(World):
topology_present = False
web = WitnessWebWorld()

origin_region_name = "Entry"

options_dataclass = TheWitnessOptions
options: TheWitnessOptions

Expand Down
2 changes: 0 additions & 2 deletions worlds/witness/data/WitnessLogic.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 0 additions & 2 deletions worlds/witness/data/WitnessLogicExpert.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 0 additions & 2 deletions worlds/witness/data/WitnessLogicVanilla.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 0 additions & 2 deletions worlds/witness/data/WitnessLogicVariety.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 5 additions & 2 deletions worlds/witness/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit fa93bc5

Please sign in to comment.