diff --git a/HKCheckCompletion.js b/HKCheckCompletion.js index 1d1519e..2499b99 100644 --- a/HKCheckCompletion.js +++ b/HKCheckCompletion.js @@ -27,6 +27,10 @@ const DIV_ID = { id: "hk-intro", maxPercent: 112 }, + hints: { + h2: "My old friend Elderbug once told me about...", + id: "hk-hints", + }, bosses: { h2: "Bosses", id: "hk-bosses", @@ -104,6 +108,28 @@ const DIV_ID = { } }; +const HK_HINTS = { + fireballLevel: ["", "...some powerful spell learned below the town of Dirtmouth"], + hornet1Defeated: ["", "...a skilled protector guarding ruins in a lush green forest"], + hasDash: ["", "...some old cloak lying deep in the lush green forest"], + hasWalljump: ["", "...some sharp claw lying forgotten somewhere amidst the insect village"], + Crossroads_04: ["", "...a mother sleeping peacefully below the town of Dirtmouth"], + slyRescued: ["", "...a fellow town bug who seems to be lost somewhere in the crossroads"], + hasLantern: ["", "...a precious item able to carry some light to even the darkest places"], + hasSuperDash: ["", "...some powerful crystal beating somewhere deep inside the mines"], + hasDreamNail: ["", "...some weapon not from this world only found where the souls can peacefully rest"], + killedInfectedKnight: ["", "...a shattered corpse forgotten in a windy cave in the depths below the city"], + hasDoubleJump: ["", "...something incredibly light dropped by a monarchfly in the depths below the city"], + killedBlackKnight: ["", "...discarded shells of black guards lying on the floor of a high spire"], + lurienDefeated: ["", "...a dreamer sleeping somewhere at the top of a high spire"], + dungDefenderOrHornet2: ["", "...a skilled combatant living at the heart of the sewers or watching over a shell amidst ash falling from the sky"], + ismaTearOrShadeCloak: ["", "...something precious in a grove accessed from the waterways or a massive door guarding a cloak behind the darkness"], + defeatedMegaJelly: ["", "...an intelligent being floating inside hidden archives behind the fog"], + monomonDefeated: ["", "...a dreamer sleeping somewhere hidden in a foggy area"], + hegemolDefeated: ["", "...a dreamer sleeping near a spider nest area"], + killedHollowKnight: ["", "...a disturbance inside a black temple"], +}; + const HK_BOSSES = { falseKnightDefeated: ["False Knight", "Forgotten Crossroads"], // "Battle Scene" - "Crossroads_10" ? hornet1Defeated: ["Hornet Protector", "Greenpath"], @@ -309,6 +335,7 @@ function HKCheckCompletion(jsonObject) { PrefillHTML(DIV_ID); // Shallow Clone const objects (used for destructive functions) + let HK_HINTS_temp = Object.assign({}, HK_HINTS); let HK_BOSSES_temp = Object.assign({}, HK_BOSSES); let HK_BOSSES_WORLD_temp = Object.assign({}, HK_BOSSES_WORLD); let HK_CHARMS_temp = Object.assign({}, HK_CHARMS); @@ -367,6 +394,10 @@ function HKCheckCompletion(jsonObject) { document.getElementById(DIV_ID.intro.id).innerHTML += divStart + icon + textFill + divEnd; } + // ---------------- Hints --------------------- // + + // function CheckHints() + // ---------------- Bosses (Base Game) --------------------- // if (HK_BOSSES_temp) CheckIfDataTrue(DIV_ID.bosses, HK_BOSSES_temp, HKPlayerData); @@ -448,7 +479,7 @@ function HKCheckCompletion(jsonObject) { } } - } + } // end for (let i in HKPlayerData) // Outside playerData checks @@ -485,10 +516,10 @@ function PrefillHTML(jsObj) { h2 = jsObj[i].h2; id = jsObj[i].id; mp = " (" + jsObj[i].maxPercent + "%)"; - if (i === "intro") mp = ""; + if (!jsObj[i].hasOwnProperty("maxPercent") || i === "intro") mp = ""; - document.getElementById("generated").innerHTML += "