The Witness: New hint type ("area hints") (#2494)

This new type of "area hint" will instead give you general information about one of the named geographical areas in your world.
Example:

```
There are 4 progression items in the "Quarry" region.
Of them, 2 are for other players.
Also, one of them is a laser for this world.
```

This also renames some of the locations in the game to better fit into an "area", such as the "River Obelisk" being renamed to the "Mountainside Obelisk".

---------

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
NewSoupVi
2024-02-28 04:44:22 +01:00
committed by GitHub
parent c126418f35
commit 59a6e4a1b5
19 changed files with 1152 additions and 611 deletions

View File

@@ -129,9 +129,9 @@ class WitnessRegions:
regions_to_check.add(target.name)
reachable_regions.add(target.name)
final_regions_list = [v for k, v in regions_by_name.items() if k in reachable_regions]
self.created_regions = {k: v for k, v in regions_by_name.items() if k in reachable_regions}
world.multiworld.regions += final_regions_list
world.multiworld.regions += self.created_regions.values()
def __init__(self, locat: WitnessPlayerLocations, world: "WitnessWorld"):
difficulty = world.options.puzzle_randomization
@@ -145,3 +145,4 @@ class WitnessRegions:
self.locat = locat
self.created_entrances: Dict[Tuple[str, str], List[Entrance]] = KeyedDefaultDict(lambda _: [])
self.created_regions: Dict[str, Region] = dict()