mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Lingo: Add item/location groups (#2789)
This commit is contained in:
committed by
GitHub
parent
f4b7c28a33
commit
30a0aa2c85
@@ -30,10 +30,11 @@ class LingoLocation(Location):
|
||||
|
||||
|
||||
ALL_LOCATION_TABLE: Dict[str, LocationData] = {}
|
||||
LOCATIONS_BY_GROUP: Dict[str, List[str]] = {}
|
||||
|
||||
|
||||
def load_location_data():
|
||||
global ALL_LOCATION_TABLE
|
||||
global ALL_LOCATION_TABLE, LOCATIONS_BY_GROUP
|
||||
|
||||
for room_name, panels in PANELS_BY_ROOM.items():
|
||||
for panel_name, panel in panels.items():
|
||||
@@ -50,6 +51,9 @@ def load_location_data():
|
||||
LocationData(get_panel_location_id(room_name, panel_name), room_name,
|
||||
[RoomAndPanel(None, panel_name)], classification)
|
||||
|
||||
if panel.achievement:
|
||||
LOCATIONS_BY_GROUP.setdefault("Achievements", []).append(location_name)
|
||||
|
||||
for room_name, doors in DOORS_BY_ROOM.items():
|
||||
for door_name, door in doors.items():
|
||||
if door.skip_location or door.event or door.panels is None:
|
||||
|
||||
Reference in New Issue
Block a user