CheckHealthMasks() default values

This commit is contained in:
ReznoRMichael 2021-01-26 20:47:45 +01:00
parent e67356a1c7
commit 25a63d4f70
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -249,7 +249,7 @@ function HKCheckCompletion(jsonObject) {
CheckAdditionalThings(DIV_ID.achievements, HK_ACHIEVEMENTS, HKPlayerData, HKWorldItems); CheckAdditionalThings(DIV_ID.achievements, HK_ACHIEVEMENTS, HKPlayerData, HKWorldItems);
// ---------------- Fleur Divide ----------------- // // ---------------- Fleur Divide ----------------- //
AppendHTML(DIV_ID.achievements, FLEUR_DIVIDE); AppendHTML(DIV_ID.achievements, FLEUR_DIVIDE);
// ------------------------- Game Statistics ----------------------------- // // ------------------------- Game Statistics ----------------------------- //
@ -440,7 +440,7 @@ function CheckCompletionPercent(divId, completionPercentage) {
* @param {number} masks Number of max health masks from the save * @param {number} masks Number of max health masks from the save
* @param {number} permadeathMode Value of permadeathMode property. 0 = Normal, 1 = Steel Soul * @param {number} permadeathMode Value of permadeathMode property. 0 = Normal, 1 = Steel Soul
*/ */
function CheckHealthMasks(divId, masks, permadeathMode) { function CheckHealthMasks(divId, masks = 5, permadeathMode = 0) {
let icon = SYMBOL_EMPTY; let icon = SYMBOL_EMPTY;
let textFill = "<span>Health:</span>"; let textFill = "<span>Health:</span>";
@ -857,7 +857,7 @@ function InitialHTMLPopulate(divIdObj) {
AppendHTML(divIdObj.intro, FLEUR_DIVIDE); AppendHTML(divIdObj.intro, FLEUR_DIVIDE);
// Health Masks // Health Masks
CheckHealthMasks(divIdObj.intro, 5, 0); CheckHealthMasks(divIdObj.intro);
// Soul Orbs // Soul Orbs
CheckSoulOrbs(divIdObj.intro, 99); CheckSoulOrbs(divIdObj.intro, 99);