Skip to content

Commit

Permalink
Switch to using Utils.parse_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hatkirby committed Nov 16, 2023
1 parent d189ed1 commit d5abd5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions worlds/lingo/static_logic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from typing import Dict, List, NamedTuple, Optional, Set

import yaml

import Utils


Expand Down Expand Up @@ -114,7 +112,7 @@ def load_static_data():

# Load in all item and location IDs. These are broken up into groups based on the type of item/location.
with files(data).joinpath("ids.yaml").open() as file:
config = yaml.load(file, Loader=Utils.SafeLoader)
config = Utils.parse_yaml(file)

if "special_items" in config:
for item_name, item_id in config["special_items"].items():
Expand Down Expand Up @@ -149,7 +147,7 @@ def load_static_data():

# Process the main world file.
with files(data).joinpath("LL1.yaml").open() as file:
config = yaml.load(file, Loader=Utils.SafeLoader)
config = Utils.parse_yaml(file)

for room_name, room_data in config.items():
process_room(room_name, room_data)
Expand Down

0 comments on commit d5abd5f

Please sign in to comment.