fix Vengefly King achievements
This commit is contained in:
parent
fc222b6252
commit
6093685bc0
3 changed files with 27 additions and 1 deletions
|
|
@ -847,6 +847,10 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
playerData[i] == 0 ? CurrentDataTrue() : CurrentDataFalse();
|
playerData[i] == 0 ? CurrentDataTrue() : CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "killsBigBuzzer":
|
||||||
|
playerData[i] == 0 ? CurrentDataTrue() : CurrentDataFalse();
|
||||||
|
break;
|
||||||
|
|
||||||
case "killedVoidIdol_1":
|
case "killedVoidIdol_1":
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
CurrentDataBlank();
|
CurrentDataBlank();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -817,6 +817,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
}
|
}
|
||||||
(amount >= dataObject[i].max) ? CurrentDataTrue(): CurrentDataBlank();
|
(amount >= dataObject[i].max) ? CurrentDataTrue(): CurrentDataBlank();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "geoPool":
|
case "geoPool":
|
||||||
case "rancidEggs":
|
case "rancidEggs":
|
||||||
case "jinnEggsSold":
|
case "jinnEggsSold":
|
||||||
|
|
@ -834,6 +835,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "geoRocks":
|
case "geoRocks":
|
||||||
discoveredTotal = sceneData.geoRocks.length;
|
discoveredTotal = sceneData.geoRocks.length;
|
||||||
|
|
||||||
|
|
@ -843,6 +845,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
||||||
CurrentDataTrue();
|
CurrentDataTrue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "itemsDiscovered":
|
case "itemsDiscovered":
|
||||||
discoveredTotal = sceneData.persistentBoolItems.length;
|
discoveredTotal = sceneData.persistentBoolItems.length;
|
||||||
|
|
||||||
|
|
@ -852,18 +855,23 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
||||||
CurrentDataTrue();
|
CurrentDataTrue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "shopkeeperKey":
|
case "shopkeeperKey":
|
||||||
(playerData.hasSlykey === true || playerData.gaveSlykey === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData.hasSlykey === true || playerData.gaveSlykey === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "elegantKey":
|
case "elegantKey":
|
||||||
(playerData.hasWhiteKey === true || playerData.usedWhiteKey === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData.hasWhiteKey === true || playerData.usedWhiteKey === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "loveKey":
|
case "loveKey":
|
||||||
(playerData.hasLoveKey === true || playerData.openedLoveDoor === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData.hasLoveKey === true || playerData.openedLoveDoor === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "paleOreSeer": // #2
|
case "paleOreSeer": // #2
|
||||||
(playerData.dreamReward3 === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData.dreamReward3 === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* -------------------- Interactables ------------------------------- */
|
/* -------------------- Interactables ------------------------------- */
|
||||||
case "simpleKeyCityOfTears": // #2
|
case "simpleKeyCityOfTears": // #2
|
||||||
case "simpleKeyAncientBasin": // #3
|
case "simpleKeyAncientBasin": // #3
|
||||||
|
|
@ -880,6 +888,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
case "whiteLadyRoom":
|
case "whiteLadyRoom":
|
||||||
(FindWorldItem(dataObject[i].id, dataObject[i].sceneName)) ? CurrentDataTrue(): CurrentDataFalse();
|
(FindWorldItem(dataObject[i].id, dataObject[i].sceneName)) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "relicsWandererJournal":
|
case "relicsWandererJournal":
|
||||||
case "relicsHallownestSeal":
|
case "relicsHallownestSeal":
|
||||||
case "relicsKingsIdol":
|
case "relicsKingsIdol":
|
||||||
|
|
@ -888,6 +897,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
(total >= dataObject[i].max) ? CurrentDataTrue(): CurrentDataBlank();
|
(total >= dataObject[i].max) ? CurrentDataTrue(): CurrentDataBlank();
|
||||||
textPrefix += ": " + total;
|
textPrefix += ": " + total;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "bossDoorStateTier5":
|
case "bossDoorStateTier5":
|
||||||
if (playerData.hasOwnProperty("bossDoorStateTier5") === false) {
|
if (playerData.hasOwnProperty("bossDoorStateTier5") === false) {
|
||||||
CurrentDataBlank();
|
CurrentDataBlank();
|
||||||
|
|
@ -896,6 +906,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
(playerData[i].completed === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData[i].completed === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "killsBindingSeal":
|
case "killsBindingSeal":
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
CurrentDataBlank();
|
CurrentDataBlank();
|
||||||
|
|
@ -904,6 +915,11 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
}
|
}
|
||||||
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "killsBigBuzzer":
|
||||||
|
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
|
break;
|
||||||
|
|
||||||
case "killedVoidIdol_1":
|
case "killedVoidIdol_1":
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
CurrentDataBlank();
|
CurrentDataBlank();
|
||||||
|
|
@ -913,6 +929,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
if (playerData[i] === false && (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) CurrentDataTrue();
|
if (playerData[i] === false && (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) CurrentDataTrue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "killedVoidIdol_2":
|
case "killedVoidIdol_2":
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
CurrentDataBlank();
|
CurrentDataBlank();
|
||||||
|
|
@ -922,6 +939,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue();
|
if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "greyPrinceDefeated":
|
case "greyPrinceDefeated":
|
||||||
// compatibility with earlier game versions
|
// compatibility with earlier game versions
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
|
|
@ -934,6 +952,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank();
|
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank();
|
||||||
if (playerData.zoteRescuedBuzzer === true && playerData[i] === false) CurrentDataFalse();
|
if (playerData.zoteRescuedBuzzer === true && playerData[i] === false) CurrentDataFalse();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "zoteStatus":
|
case "zoteStatus":
|
||||||
CurrentDataFalse();
|
CurrentDataFalse();
|
||||||
if (playerData.zoteDead === true) {
|
if (playerData.zoteDead === true) {
|
||||||
|
|
@ -964,6 +983,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "nailsmithStatus":
|
case "nailsmithStatus":
|
||||||
CurrentDataFalse();
|
CurrentDataFalse();
|
||||||
if (playerData.nailsmithKilled === true) {
|
if (playerData.nailsmithKilled === true) {
|
||||||
|
|
@ -982,9 +1002,11 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
textSuffix = dataObject[i].spoilerUpgradeNail;
|
textSuffix = dataObject[i].spoilerUpgradeNail;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "mrMushroomState":
|
case "mrMushroomState":
|
||||||
sFillText += CheckMrMushroomState(divId, dataObject[i], playerData[i]);
|
sFillText += CheckMrMushroomState(divId, dataObject[i], playerData[i]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// backwards compatibility with earlier game versions
|
// backwards compatibility with earlier game versions
|
||||||
if (playerData.hasOwnProperty(i) === false) {
|
if (playerData.hasOwnProperty(i) === false) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue