Skip to content

Commit

Permalink
Merge pull request ArchipelagoMW#14 from remyjette/yooka-laylee-apworld
Browse files Browse the repository at this point in the history
Make Yooka-Laylee work as a .apworld
  • Loading branch information
SunnyBat authored Jun 24, 2023
2 parents 58074b8 + 3f57fd0 commit 90104ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions worlds/yooka_laylee/Items.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json
import os
import pkgutil

with open(os.path.join(os.path.dirname(__file__), 'items.json'), 'r') as file:
item_table = json.loads(file.read())
item_table = json.loads(pkgutil.get_data(__name__, "items.json").decode())

lookup_name_to_item = {}
lookup_name_to_id = {}
Expand Down
5 changes: 2 additions & 3 deletions worlds/yooka_laylee/Locations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json
import os
import pkgutil

with open(os.path.join(os.path.dirname(__file__), 'locations.json'), 'r') as file:
location_table = json.loads(file.read())
location_table = json.loads(pkgutil.get_data(__name__, "locations.json").decode())

lookup_name_to_id = {}
for item in location_table:
Expand Down
5 changes: 2 additions & 3 deletions worlds/yooka_laylee/Regions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import json
import os
import pkgutil
from BaseClasses import Entrance

with open(os.path.join(os.path.dirname(__file__), 'regions.json'), 'r') as file:
regionMap = json.loads(file.read())
regionMap = json.loads(pkgutil.get_data(__name__, "regions.json").decode())

def create_regions(world, player: int):
from . import create_region
Expand Down

0 comments on commit 90104ce

Please sign in to comment.