From cb83f8d340ee13746ce2c63c7cd1b247244eb65a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 21 Mar 2024 10:46:53 -0500 Subject: Lingo: Add item/location groups (#2789) --- utils/pickle_static_data.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'utils/pickle_static_data.py') diff --git a/utils/pickle_static_data.py b/utils/pickle_static_data.py index c7a2711..5d6fa1e 100644 --- a/utils/pickle_static_data.py +++ b/utils/pickle_static_data.py @@ -255,10 +255,15 @@ def process_door(room_name, door_name, door_data): else: junk_item = False - if "group" in door_data: - group = door_data["group"] + if "door_group" in door_data: + door_group = door_data["door_group"] else: - group = None + door_group = None + + if "item_group" in door_data: + item_group = door_data["item_group"] + else: + item_group = None # panels is a list of panels. Each panel can either be a simple string (the name of a panel in the current room) or # a dictionary specifying a panel in a different room. @@ -308,7 +313,7 @@ def process_door(room_name, door_name, door_data): painting_ids = [] door_obj = Door(door_name, item_name, location_name, panels, skip_location, skip_item, has_doors, - painting_ids, event, group, include_reduce, junk_item) + painting_ids, event, door_group, include_reduce, junk_item, item_group) DOORS_BY_ROOM[room_name][door_name] = door_obj -- cgit 1.4.1