Add missing fields to ingreds
missing ids and consumableIDs tags in some ingreds
This commit is contained in:
parent
df9412e994
commit
f3b4429b2e
6 changed files with 42 additions and 4 deletions
|
@ -82,7 +82,7 @@
|
||||||
<div class="container-fluid overall-box mt-lg-2" style="margin-top: 6vh;">
|
<div class="container-fluid overall-box mt-lg-2" style="margin-top: 6vh;">
|
||||||
<!-- REMOVE THIS DIV AT SOME POINT. -->
|
<!-- REMOVE THIS DIV AT SOME POINT. -->
|
||||||
<div class = "row scaled-font mx-auto" id = "discord-banner-dev">
|
<div class = "row scaled-font mx-auto" id = "discord-banner-dev">
|
||||||
<div class = "col text-center item-title">Join the <a class = "link" href = "https://discord.gg/CGavnAnerv" target = "_blank">discord</a> today to suggest new features, submit bug reports, and hangout/talk to devs!</div>
|
<div id='discord-banner' class = "col text-center item-title">Join the <a class = "link" href = "https://discord.gg/CGavnAnerv" target = "_blank">discord</a> today to suggest new features, submit bug reports, and hangout/talk to devs!</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row h-100 gx-lg-5 gy-3 mx-2 mx-lg-3 py-3 gx-0">
|
<div class="row h-100 gx-lg-5 gy-3 mx-2 mx-lg-3 py-3 gx-0">
|
||||||
<div class="col-xl-6">
|
<div class="col-xl-6">
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -407,6 +407,7 @@
|
||||||
"WEAPONSMITHING"
|
"WEAPONSMITHING"
|
||||||
],
|
],
|
||||||
"displayName": "Bob's Tear",
|
"displayName": "Bob's Tear",
|
||||||
|
"ids": {},
|
||||||
"id": 391
|
"id": 391
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1514,6 +1515,7 @@
|
||||||
"WEAPONSMITHING"
|
"WEAPONSMITHING"
|
||||||
],
|
],
|
||||||
"displayName": "Dry Bone",
|
"displayName": "Dry Bone",
|
||||||
|
"ids": {},
|
||||||
"id": 47
|
"id": 47
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2103,6 +2105,7 @@
|
||||||
"ALCHEMISM"
|
"ALCHEMISM"
|
||||||
],
|
],
|
||||||
"displayName": "Pride of the Heights",
|
"displayName": "Pride of the Heights",
|
||||||
|
"ids": {},
|
||||||
"id": 632
|
"id": 632
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2387,6 +2390,7 @@
|
||||||
"WOODWORKING"
|
"WOODWORKING"
|
||||||
],
|
],
|
||||||
"displayName": "7-Yottabyte Storage Component",
|
"displayName": "7-Yottabyte Storage Component",
|
||||||
|
"ids": {},
|
||||||
"id": 376
|
"id": 376
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -5475,6 +5479,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Nivlan Honey",
|
"displayName": "Nivlan Honey",
|
||||||
|
"ids": {},
|
||||||
"id": 621
|
"id": 621
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8493,6 +8498,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"displayName": "Forest Web",
|
"displayName": "Forest Web",
|
||||||
|
"consumableIDs": {
|
||||||
|
"dura": 0,
|
||||||
|
"charges": 0
|
||||||
|
},
|
||||||
"id": 55
|
"id": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8607,6 +8616,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Aspect of the Void",
|
"displayName": "Aspect of the Void",
|
||||||
|
"ids": {},
|
||||||
"id": 563
|
"id": 563
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8967,6 +8977,7 @@
|
||||||
"TAILORING"
|
"TAILORING"
|
||||||
],
|
],
|
||||||
"displayName": "Plasteel Plating",
|
"displayName": "Plasteel Plating",
|
||||||
|
"ids": {},
|
||||||
"id": 631
|
"id": 631
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -10041,6 +10052,7 @@
|
||||||
"COOKING"
|
"COOKING"
|
||||||
],
|
],
|
||||||
"displayName": "Death Whistle Leaf",
|
"displayName": "Death Whistle Leaf",
|
||||||
|
"ids": {},
|
||||||
"id": 581
|
"id": 581
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -10691,6 +10703,7 @@
|
||||||
"ALCHEMISM"
|
"ALCHEMISM"
|
||||||
],
|
],
|
||||||
"displayName": "Major's Badge",
|
"displayName": "Major's Badge",
|
||||||
|
"ids": {},
|
||||||
"id": 617
|
"id": 617
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -14582,6 +14595,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Draconic Bone Marrow",
|
"displayName": "Draconic Bone Marrow",
|
||||||
|
"ids": {},
|
||||||
"id": 589
|
"id": 589
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -15469,6 +15483,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Borange Fluff",
|
"displayName": "Borange Fluff",
|
||||||
|
"ids": {},
|
||||||
"id": 569
|
"id": 569
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -15895,6 +15910,7 @@
|
||||||
"COOKING"
|
"COOKING"
|
||||||
],
|
],
|
||||||
"displayName": "Salt",
|
"displayName": "Salt",
|
||||||
|
"ids": {},
|
||||||
"id": 333
|
"id": 333
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -16209,6 +16225,7 @@
|
||||||
"JEWELING"
|
"JEWELING"
|
||||||
],
|
],
|
||||||
"displayName": "Obelisk Core",
|
"displayName": "Obelisk Core",
|
||||||
|
"ids": {},
|
||||||
"id": 622
|
"id": 622
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -16532,6 +16549,7 @@
|
||||||
"JEWELING"
|
"JEWELING"
|
||||||
],
|
],
|
||||||
"displayName": "Lunar Charm",
|
"displayName": "Lunar Charm",
|
||||||
|
"ids": {},
|
||||||
"id": 614
|
"id": 614
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -18162,6 +18180,7 @@
|
||||||
"ARMOURING"
|
"ARMOURING"
|
||||||
],
|
],
|
||||||
"displayName": "Decaying Heart",
|
"displayName": "Decaying Heart",
|
||||||
|
"ids": {},
|
||||||
"id": 582
|
"id": 582
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -18193,6 +18212,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Golden Avia Feather",
|
"displayName": "Golden Avia Feather",
|
||||||
|
"ids": {},
|
||||||
"id": 440
|
"id": 440
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -18608,6 +18628,7 @@
|
||||||
"ARMOURING"
|
"ARMOURING"
|
||||||
],
|
],
|
||||||
"displayName": "Unicorn Horn",
|
"displayName": "Unicorn Horn",
|
||||||
|
"ids": {},
|
||||||
"id": 674
|
"id": 674
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -19869,6 +19890,7 @@
|
||||||
"ARMOURING"
|
"ARMOURING"
|
||||||
],
|
],
|
||||||
"displayName": "Crumbling Skull",
|
"displayName": "Crumbling Skull",
|
||||||
|
"ids": {},
|
||||||
"id": 401
|
"id": 401
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -20016,6 +20038,7 @@
|
||||||
"JEWELING"
|
"JEWELING"
|
||||||
],
|
],
|
||||||
"displayName": "Doom Stone",
|
"displayName": "Doom Stone",
|
||||||
|
"ids": {},
|
||||||
"id": 588
|
"id": 588
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -21140,6 +21163,7 @@
|
||||||
"WOODWORKING"
|
"WOODWORKING"
|
||||||
],
|
],
|
||||||
"displayName": "Primordial Soul",
|
"displayName": "Primordial Soul",
|
||||||
|
"ids": {},
|
||||||
"id": 633
|
"id": 633
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -21534,6 +21558,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Dominant Force",
|
"displayName": "Dominant Force",
|
||||||
|
"ids": {},
|
||||||
"id": 587
|
"id": 587
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -25602,6 +25627,7 @@
|
||||||
"ALCHEMISM"
|
"ALCHEMISM"
|
||||||
],
|
],
|
||||||
"displayName": "Coalescence",
|
"displayName": "Coalescence",
|
||||||
|
"ids": {},
|
||||||
"id": 573
|
"id": 573
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -27216,6 +27242,7 @@
|
||||||
"COOKING"
|
"COOKING"
|
||||||
],
|
],
|
||||||
"displayName": "Etheric Fern",
|
"displayName": "Etheric Fern",
|
||||||
|
"ids": {},
|
||||||
"id": 640
|
"id": 640
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -27246,6 +27273,7 @@
|
||||||
"ARMOURING"
|
"ARMOURING"
|
||||||
],
|
],
|
||||||
"displayName": "Transformativity",
|
"displayName": "Transformativity",
|
||||||
|
"ids": {},
|
||||||
"id": 694
|
"id": 694
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -27630,6 +27658,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Infected Mass",
|
"displayName": "Infected Mass",
|
||||||
|
"ids": {},
|
||||||
"id": 449
|
"id": 449
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -27742,6 +27771,7 @@
|
||||||
"SCRIBING"
|
"SCRIBING"
|
||||||
],
|
],
|
||||||
"displayName": "Lashing Hellfire",
|
"displayName": "Lashing Hellfire",
|
||||||
|
"ids": {},
|
||||||
"id": 610
|
"id": 610
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -28948,6 +28978,7 @@
|
||||||
"COOKING"
|
"COOKING"
|
||||||
],
|
],
|
||||||
"displayName": "Blessed Heart",
|
"displayName": "Blessed Heart",
|
||||||
|
"ids": {},
|
||||||
"id": 567
|
"id": 567
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -30329,6 +30360,7 @@
|
||||||
"ALCHEMISM"
|
"ALCHEMISM"
|
||||||
],
|
],
|
||||||
"displayName": "Sea Salt",
|
"displayName": "Sea Salt",
|
||||||
|
"ids": {},
|
||||||
"id": 335
|
"id": 335
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
const ING_DB_VERSION = 30;
|
const ING_DB_VERSION = 31;
|
||||||
|
|
||||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
|
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
|
||||||
|
|
||||||
|
|
|
@ -204,6 +204,12 @@ for ingred in ingreds:
|
||||||
# HACKY ING FIXES!
|
# HACKY ING FIXES!
|
||||||
ingred['itemIDs']['dura'] = int(ingred['itemIDs']['dura'] / 1000)
|
ingred['itemIDs']['dura'] = int(ingred['itemIDs']['dura'] / 1000)
|
||||||
ingred['skills'] = [x.upper() for x in ingred['skills']]
|
ingred['skills'] = [x.upper() for x in ingred['skills']]
|
||||||
|
if 'ids' not in ingred:
|
||||||
|
ingred['ids'] = dict()
|
||||||
|
print(f"ing missing 'ids': {ingred['name']}")
|
||||||
|
if 'consumableIDs' not in ingred:
|
||||||
|
ingred['consumableIDs'] = {'dura': 0, 'charges': 0}
|
||||||
|
print(f"ing missing 'consumableIDs': {ingred['name']}")
|
||||||
|
|
||||||
if not (ingred["name"] in ing_map):
|
if not (ingred["name"] in ing_map):
|
||||||
new_id = len(ing_map)
|
new_id = len(ing_map)
|
||||||
|
|
Loading…
Reference in a new issue