diff options
Diffstat (limited to 'utils/pickle_static_data.py')
| -rw-r--r-- | utils/pickle_static_data.py | 13 | 
1 files changed, 9 insertions, 4 deletions
| 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): | |||
| 255 | else: | 255 | else: | 
| 256 | junk_item = False | 256 | junk_item = False | 
| 257 | 257 | ||
| 258 | if "group" in door_data: | 258 | if "door_group" in door_data: | 
| 259 | group = door_data["group"] | 259 | door_group = door_data["door_group"] | 
| 260 | else: | 260 | else: | 
| 261 | group = None | 261 | door_group = None | 
| 262 | |||
| 263 | if "item_group" in door_data: | ||
| 264 | item_group = door_data["item_group"] | ||
| 265 | else: | ||
| 266 | item_group = None | ||
| 262 | 267 | ||
| 263 | # panels is a list of panels. Each panel can either be a simple string (the name of a panel in the current room) or | 268 | # panels is a list of panels. Each panel can either be a simple string (the name of a panel in the current room) or | 
| 264 | # a dictionary specifying a panel in a different room. | 269 | # a dictionary specifying a panel in a different room. | 
| @@ -308,7 +313,7 @@ def process_door(room_name, door_name, door_data): | |||
| 308 | painting_ids = [] | 313 | painting_ids = [] | 
| 309 | 314 | ||
| 310 | door_obj = Door(door_name, item_name, location_name, panels, skip_location, skip_item, has_doors, | 315 | door_obj = Door(door_name, item_name, location_name, panels, skip_location, skip_item, has_doors, | 
| 311 | painting_ids, event, group, include_reduce, junk_item) | 316 | painting_ids, event, door_group, include_reduce, junk_item, item_group) | 
| 312 | 317 | ||
| 313 | DOORS_BY_ROOM[room_name][door_name] = door_obj | 318 | DOORS_BY_ROOM[room_name][door_name] = door_obj | 
| 314 | 319 | ||
