add Warrior Dreams
This commit is contained in:
parent
e7d0e7e59a
commit
25528a2131
2 changed files with 41 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ const DIV_ID = {
|
||||||
nailArts: "hk-nailarts",
|
nailArts: "hk-nailarts",
|
||||||
nailUpgrades: "hk-nailupgrades",
|
nailUpgrades: "hk-nailupgrades",
|
||||||
spells: "hk-spells",
|
spells: "hk-spells",
|
||||||
|
vesselFragments: "hk-vesselfragments",
|
||||||
|
warriorDreams: "hk-warriordreams",
|
||||||
};
|
};
|
||||||
|
|
||||||
const HK_BOSSES = {
|
const HK_BOSSES = {
|
||||||
|
|
@ -101,6 +103,16 @@ const HK_SPELLS = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const HK_WARRIORDREAMS = {
|
||||||
|
galienDefeated: "Galien",
|
||||||
|
mumCaterpillarDefeated: "Marmu",
|
||||||
|
markothDefeated: "Markoth",
|
||||||
|
xeroDefeated: "Xero",
|
||||||
|
noEyesDefeated: "No Eyes",
|
||||||
|
elderHuDefeated: "Elder Hu",
|
||||||
|
aladarSlugDefeated: "Gorb"
|
||||||
|
};
|
||||||
|
|
||||||
function HKCheckCompletion(jsonObject) {
|
function HKCheckCompletion(jsonObject) {
|
||||||
|
|
||||||
// Pre-Cleaning for safety
|
// Pre-Cleaning for safety
|
||||||
|
|
@ -109,6 +121,7 @@ function HKCheckCompletion(jsonObject) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let HK_BOSSES_temp = Object.assign({}, HK_BOSSES);
|
let HK_BOSSES_temp = Object.assign({}, HK_BOSSES);
|
||||||
|
let HK_WARRIORDREAMS_temp = Object.assign({}, HK_WARRIORDREAMS);
|
||||||
|
|
||||||
let HKPlayerData = jsonObject.playerData;
|
let HKPlayerData = jsonObject.playerData;
|
||||||
|
|
||||||
|
|
@ -144,6 +157,10 @@ function HKCheckCompletion(jsonObject) {
|
||||||
|
|
||||||
checkIfDataTrue(DIV_ID.equipment, HK_EQUIPMENT, HKPlayerData);
|
checkIfDataTrue(DIV_ID.equipment, HK_EQUIPMENT, HKPlayerData);
|
||||||
|
|
||||||
|
// ---------------- Mask Shards --------------------- //
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
// ---------------- Nail Arts --------------------- //
|
// ---------------- Nail Arts --------------------- //
|
||||||
|
|
||||||
checkIfDataTrue(DIV_ID.nailArts, HK_NAILARTS, HKPlayerData);
|
checkIfDataTrue(DIV_ID.nailArts, HK_NAILARTS, HKPlayerData);
|
||||||
|
|
@ -164,6 +181,15 @@ function HKCheckCompletion(jsonObject) {
|
||||||
// ---------------- Spells --------------------- //
|
// ---------------- Spells --------------------- //
|
||||||
|
|
||||||
checkSpellLevel(DIV_ID.spells, HK_SPELLS, HKPlayerData);
|
checkSpellLevel(DIV_ID.spells, HK_SPELLS, HKPlayerData);
|
||||||
|
|
||||||
|
// ---------------- Vessel Fragments --------------------- //
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
// ---------------- Warrior Dreams --------------------- //
|
||||||
|
|
||||||
|
checkWarriorDreams(DIV_ID.warriorDreams, HK_WARRIORDREAMS_temp, HKPlayerData);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -200,3 +226,12 @@ function checkSpellLevel(divId, dataObject, playerData) {
|
||||||
delete dataObject[i];
|
delete dataObject[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkWarriorDreams(divId, dataObject, playerData) {
|
||||||
|
for (i in dataObject) {
|
||||||
|
if (playerData[i] > 0) currentDataTrue();
|
||||||
|
else currentDataFalse();
|
||||||
|
fillHTML(divId, dataObject[i]);
|
||||||
|
delete dataObject[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -76,5 +76,11 @@
|
||||||
<h2>Spells:</h2>
|
<h2>Spells:</h2>
|
||||||
<div id="hk-spells"></div>
|
<div id="hk-spells"></div>
|
||||||
|
|
||||||
|
<h2>Vessel Fragments:</h2>
|
||||||
|
<div id="hk-vesselfragments"></div>
|
||||||
|
|
||||||
|
<h2>Warrior Dreams:</h2>
|
||||||
|
<div id="hk-warriordreams"></div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue