Steel Soul Mode
This commit is contained in:
parent
14113e041b
commit
d774507e0d
1 changed files with 20 additions and 0 deletions
|
|
@ -434,6 +434,10 @@ function HKCheckCompletion(jsonObject) {
|
||||||
|
|
||||||
CheckGeo(DIV_ID.intro, HKPlayerData.geo);
|
CheckGeo(DIV_ID.intro, HKPlayerData.geo);
|
||||||
|
|
||||||
|
// ---------------- Steel Soul Mode ----------------- //
|
||||||
|
|
||||||
|
CheckSteelSoul(DIV_ID.intro, HKPlayerData.permadeathMode);
|
||||||
|
|
||||||
// ---------------- Bosses (Base Game) --------------------- //
|
// ---------------- Bosses (Base Game) --------------------- //
|
||||||
|
|
||||||
CheckIfDataTrue(DIV_ID.bosses, HK_BOSSES_temp, HKPlayerData);
|
CheckIfDataTrue(DIV_ID.bosses, HK_BOSSES_temp, HKPlayerData);
|
||||||
|
|
@ -704,6 +708,22 @@ function CheckGeo(divId, geoValue) {
|
||||||
document.getElementById(divId.id).innerHTML += divStart + icon + textFill + divEnd;
|
document.getElementById(divId.id).innerHTML += divStart + icon + textFill + divEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends HTML with "Steel Soul" when it's enabled in the save file. When not enabled, don't show anything.
|
||||||
|
* @param {object} divId ID of the HTML element for data appending
|
||||||
|
* @param {number} permadeathMode Value of permadeathMode property
|
||||||
|
*/
|
||||||
|
function CheckSteelSoul(divId, permadeathMode) {
|
||||||
|
|
||||||
|
// append HTML only when enabled
|
||||||
|
if (permadeathMode === 1) {
|
||||||
|
let icon = SYMBOL_INFO;
|
||||||
|
let textFill = "<b>Steel Soul Mode</b>";
|
||||||
|
|
||||||
|
document.getElementById(divId.id).innerHTML += divStart + icon + textFill + divEnd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the data in a specific object is true or false, and appends HTML accordingly.
|
* Verifies if the data in a specific object is true or false, and appends HTML accordingly.
|
||||||
* @param {object} divId ID of the HTML element for data appending
|
* @param {object} divId ID of the HTML element for data appending
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue