mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add Raft to Archipelago (#174)
This commit is contained in:
12
worlds/raft/Locations.py
Normal file
12
worlds/raft/Locations.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), 'locations.json'), 'r') as file:
|
||||
location_table = json.loads(file.read())
|
||||
|
||||
lookup_id_to_name = {}
|
||||
for item in location_table:
|
||||
lookup_id_to_name[item["id"]] = item["name"]
|
||||
|
||||
lookup_id_to_name[None] = "Tangaroa Next Frequency"
|
||||
lookup_name_to_id = {name: id for id, name in lookup_id_to_name.items()}
|
Reference in New Issue
Block a user