merging Zote and Nailsmith initial

This commit is contained in:
ReznoRMichael 2021-02-13 22:02:33 +01:00
parent 248870b647
commit 50e8edafa5
3 changed files with 43 additions and 9 deletions

View file

@ -922,10 +922,36 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue(); if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue();
break; break;
case "greyPrinceDefeated": case "greyPrinceDefeated":
case "zoteDead":
case "nailsmithSpared":
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank(); (playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank();
break; break;
case "zoteStatus":
if (playerData.zoteDead === true) {
textPrefix = dataObject[i].nameNeglect;
textSuffix = dataObject[i].spoilerNeglect;
CurrentDataTrue();
}
else if (playerData.zoteDefeated === true) {
textPrefix = dataObject[i].nameRivalry;
textSuffix = dataObject[i].spoilerRivalry;
CurrentDataTrue();
}
else if (playerData.zoteRescuedBuzzer === false) {
CurrentDataBlank();
if (playerData.hasWalljump === false) {
textPrefix = dataObject[i].nameTrappedVengefly;
textSuffix = dataObject[i].spoilerTrappedVengefly;
}
else {
textPrefix = dataObject[i].nameNotRescuedVengefly;
textSuffix = dataObject[i].spoilerNotRescuedVengefly;
}
}
else {
CurrentDataFalse();
}
break;
case "nailsmithStatus":
break;
case "mrMushroomState": case "mrMushroomState":
CheckMrMushroomState(divId, dataObject[i], playerData[i]); CheckMrMushroomState(divId, dataObject[i], playerData[i]);
break; break;

View file

@ -955,13 +955,21 @@ const HK = {
name: "Embrace the Void", name: "Embrace the Void",
spoiler: "Godhome: Pantheon of Hallownest" spoiler: "Godhome: Pantheon of Hallownest"
}, },
zoteDead: { zoteStatus: {
name: "Optimal Zote", name: "Zote Status",
spoiler: "Neglect achievement (per save choice)" nameNeglect: "Zote Status",
nameRivalry: "Zote Status",
spoiler: "Neglect achievement (per save choice)",
spoilerNeglect: "Neglect achievement (per save choice)",
spoilerRivalry: "Neglect achievement (per save choice)",
}, },
nailsmithSpared: { nailsmithStatus: {
name: "Optimal Nailsmith", name: "Nailsmith Status",
spoiler: "Happy Couple achievement (per save choice)" nameHappyCouple: "Nailsmith Status",
namePurity: "Nailsmith Status",
spoiler: "Happy Couple achievement (per save choice)",
spoilerHappyCouple: "Happy Couple achievement (per save choice)",
spoilerPurity: "Happy Couple achievement (per save choice)",
}, },
mrMushroomState: { mrMushroomState: {
name: "Mr Mushroom", name: "Mr Mushroom",

View file

@ -2,7 +2,7 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= ga_property_id %>"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=<%= ga_property_id %>"></script>
<script> <script>
// Temporarily disable the tracking for testing (set to false to enable Analytics) // Temporarily disable the tracking for testing (set to false to enable Analytics)
window['ga-disable-<%= ga_property_id %>'] = false; window['ga-disable-<%= ga_property_id %>'] = true;
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];