mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user