format document
This commit is contained in:
parent
ddbfe8dd2f
commit
437d6025d4
1 changed files with 29 additions and 31 deletions
|
|
@ -371,7 +371,7 @@ function CurrentDataBlank(section = {}, entry = "") {
|
||||||
* @param {number} playTime Number of total gameplay time in seconds
|
* @param {number} playTime Number of total gameplay time in seconds
|
||||||
*/
|
*/
|
||||||
function CheckPlayTime(section, playTime) {
|
function CheckPlayTime(section, playTime) {
|
||||||
|
|
||||||
let seconds = Math.floor(playTime);
|
let seconds = Math.floor(playTime);
|
||||||
let minutes = Math.floor((seconds / 60) % 60);
|
let minutes = Math.floor((seconds / 60) % 60);
|
||||||
let hours = Math.floor(seconds / 3600);
|
let hours = Math.floor(seconds / 3600);
|
||||||
|
|
@ -437,7 +437,7 @@ function CheckHealthMasks(section, masks = 5, permadeathMode = 0) {
|
||||||
} else {
|
} else {
|
||||||
section.entries.health.permadeathMode = false;
|
section.entries.health.permadeathMode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* let icon = SYMBOL_EMPTY;
|
/* let icon = SYMBOL_EMPTY;
|
||||||
let textFill = "<span>Health:</span>";
|
let textFill = "<span>Health:</span>";
|
||||||
let maskImages = "";
|
let maskImages = "";
|
||||||
|
|
@ -592,7 +592,7 @@ function CheckIfDataTrue(section, dataObject, playerData, worldData = []) {
|
||||||
// prevents green checkbox and adding 1% when only got one white fragment
|
// prevents green checkbox and adding 1% when only got one white fragment
|
||||||
(playerData.gotQueenFragment === true && playerData.gotKingFragment === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
(playerData.gotQueenFragment === true && playerData.gotKingFragment === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "gotCharm_37":
|
case "gotCharm_37":
|
||||||
case "gotCharm_38":
|
case "gotCharm_38":
|
||||||
case "gotCharm_39":
|
case "gotCharm_39":
|
||||||
|
|
@ -661,7 +661,7 @@ function CheckIfDataTrue(section, dataObject, playerData, worldData = []) {
|
||||||
(playerData[i] === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
(playerData[i] === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "bossGruzMother":
|
case "bossGruzMother":
|
||||||
case "bossBroodingMawlek":
|
case "bossBroodingMawlek":
|
||||||
case "maskShardCrossroadsSprings":
|
case "maskShardCrossroadsSprings":
|
||||||
|
|
@ -682,7 +682,7 @@ function CheckIfDataTrue(section, dataObject, playerData, worldData = []) {
|
||||||
case "vesselFragmentFountain":
|
case "vesselFragmentFountain":
|
||||||
(WorldDataActivated(dataObject[i].id, dataObject[i].sceneName, worldData)) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
(WorldDataActivated(dataObject[i].id, dataObject[i].sceneName, worldData)) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "pantheonMaster":
|
case "pantheonMaster":
|
||||||
case "pantheonArtist":
|
case "pantheonArtist":
|
||||||
case "pantheonSage":
|
case "pantheonSage":
|
||||||
|
|
@ -700,7 +700,7 @@ function CheckIfDataTrue(section, dataObject, playerData, worldData = []) {
|
||||||
CurrentDataFalse(section, i);
|
CurrentDataFalse(section, i);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
(playerData[i] === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
(playerData[i] === true) ? CurrentDataTrue(section, i): CurrentDataFalse(section, i);
|
||||||
}
|
}
|
||||||
|
|
@ -1197,7 +1197,7 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
||||||
case "mrMushroomState7":
|
case "mrMushroomState7":
|
||||||
CheckMrMushroomState(section, dataObject[i], playerData["mrMushroomState"]);
|
CheckMrMushroomState(section, dataObject[i], playerData["mrMushroomState"]);
|
||||||
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) {
|
||||||
|
|
@ -1205,11 +1205,9 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
||||||
dataObject[i].disabled = true;
|
dataObject[i].disabled = true;
|
||||||
textPrefix = `<del>${dataObject[i].name}</del>`;
|
textPrefix = `<del>${dataObject[i].name}</del>`;
|
||||||
break;
|
break;
|
||||||
}
|
} else if (playerData[i] === true) {
|
||||||
else if (playerData[i] === true) {
|
|
||||||
CurrentDataTrue(section, i);
|
CurrentDataTrue(section, i);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
CurrentDataFalse(section, i);
|
CurrentDataFalse(section, i);
|
||||||
}
|
}
|
||||||
} // end switch (i)
|
} // end switch (i)
|
||||||
|
|
@ -1525,34 +1523,34 @@ function InitializeHTMLPopulation(db) {
|
||||||
GenerateInnerHTML(db);
|
GenerateInnerHTML(db);
|
||||||
|
|
||||||
// PrefillHTML(sections);
|
// PrefillHTML(sections);
|
||||||
/*
|
/*
|
||||||
// Play Time
|
// Play Time
|
||||||
CheckPlayTime(sections.intro, 0)
|
CheckPlayTime(sections.intro, 0)
|
||||||
|
|
||||||
// Game Completion
|
// Game Completion
|
||||||
CheckCompletionPercent(sections.intro, 0);
|
CheckCompletionPercent(sections.intro, 0);
|
||||||
|
|
||||||
// Save File Version
|
// Save File Version
|
||||||
CheckSaveFileVersion(sections.intro);
|
CheckSaveFileVersion(sections.intro);
|
||||||
|
|
||||||
// Fleur Divide
|
// Fleur Divide
|
||||||
// AppendHTML(sections.intro, FLEUR_DIVIDE);
|
// AppendHTML(sections.intro, FLEUR_DIVIDE);
|
||||||
|
|
||||||
// Health Masks
|
// Health Masks
|
||||||
CheckHealthMasks(sections.intro);
|
CheckHealthMasks(sections.intro);
|
||||||
|
|
||||||
// Soul Orbs
|
// Soul Orbs
|
||||||
CheckSoulOrbs(sections.intro, 99);
|
CheckSoulOrbs(sections.intro, 99);
|
||||||
|
|
||||||
// Charm Notches
|
// Charm Notches
|
||||||
CheckNotches(sections.intro);
|
CheckNotches(sections.intro);
|
||||||
|
|
||||||
// Geo
|
// Geo
|
||||||
CheckGeo(sections.intro);
|
CheckGeo(sections.intro);
|
||||||
|
|
||||||
// Keep symbol False
|
// Keep symbol False
|
||||||
CurrentDataFalse();
|
CurrentDataFalse();
|
||||||
*/
|
*/
|
||||||
// First Hint Only
|
// First Hint Only
|
||||||
// AppendHTML(sections.hints, sections.hints.entries.fireballLevel.spoiler);
|
// AppendHTML(sections.hints, sections.hints.entries.fireballLevel.spoiler);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue