backwards compatibility pantheons
This commit is contained in:
parent
a31bbeccac
commit
f58444c804
3 changed files with 17 additions and 1 deletions
|
|
@ -1803,6 +1803,13 @@ function CheckPantheon(db, sectionName, playerData) {
|
||||||
var entries = db.sections[sectionName].entries;
|
var entries = db.sections[sectionName].entries;
|
||||||
|
|
||||||
for (var entry in entries) {
|
for (var entry in entries) {
|
||||||
|
/* Backwards compatibility, disable and skip to next when not found */
|
||||||
|
if (!playerData.hasOwnProperty(property)) {
|
||||||
|
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconNone)(section, entry);
|
||||||
|
entries[entry].disabled = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (playerData[property][entry] === true) {
|
if (playerData[property][entry] === true) {
|
||||||
switch (entry) {
|
switch (entry) {
|
||||||
case "boundNail":
|
case "boundNail":
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1980,6 +1980,15 @@ function CheckPantheon(db, sectionName, playerData) {
|
||||||
|
|
||||||
for (let entry in entries) {
|
for (let entry in entries) {
|
||||||
|
|
||||||
|
/* Backwards compatibility, disable and skip to next when not found */
|
||||||
|
if (!playerData.hasOwnProperty(property)) {
|
||||||
|
|
||||||
|
SetIconNone(section, entry);
|
||||||
|
entries[entry].disabled = true;
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (playerData[property][entry] === true) {
|
if (playerData[property][entry] === true) {
|
||||||
|
|
||||||
switch (entry) {
|
switch (entry) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue