mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Added Subnautica Support
This commit is contained in:
14
worlds/subnautica/Items.py
Normal file
14
worlds/subnautica/Items.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import json
|
||||
|
||||
with open('worlds/subnautica/items.json', 'r') as file:
|
||||
item_table = json.loads(file.read())
|
||||
|
||||
lookup_id_to_name = {}
|
||||
lookup_name_to_item = {}
|
||||
for item in item_table:
|
||||
lookup_id_to_name[item["id"]] = item["name"]
|
||||
lookup_name_to_item[item["name"]] = item
|
||||
|
||||
lookup_id_to_name[None] = "Victory"
|
||||
|
||||
lookup_name_to_id = {name: id for id, name in lookup_id_to_name.items()}
|
Reference in New Issue
Block a user