add equipment
This commit is contained in:
parent
796121d20c
commit
0da758d77b
2 changed files with 26 additions and 0 deletions
|
|
@ -52,6 +52,16 @@ var HK_DREAMNAIL = {
|
||||||
mothDeparted: "Hear the Seer's final words"
|
mothDeparted: "Hear the Seer's final words"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var HK_EQUIPMENT = {
|
||||||
|
hasKingsBrand: "King's Brand",
|
||||||
|
hasSuperDash: "Crystal Heart",
|
||||||
|
hasWalljump: "Mantis Claw",
|
||||||
|
hasDoubleJump: "Monarch Wings",
|
||||||
|
hasAcidArmour: "Isma's Tear",
|
||||||
|
hasDash: "Mothwing Cloak",
|
||||||
|
hasShadowDash: "Shade Cloak"
|
||||||
|
};
|
||||||
|
|
||||||
function HKCheckCompletion(jsonObject) {
|
function HKCheckCompletion(jsonObject) {
|
||||||
|
|
||||||
let HKPlayerData = jsonObject.playerData;
|
let HKPlayerData = jsonObject.playerData;
|
||||||
|
|
@ -61,6 +71,7 @@ function HKCheckCompletion(jsonObject) {
|
||||||
let divIdColosseum = "hk-colosseum";
|
let divIdColosseum = "hk-colosseum";
|
||||||
let divIdDreamers = "hk-dreamers";
|
let divIdDreamers = "hk-dreamers";
|
||||||
let divIdDreamNail = "hk-dreamnail";
|
let divIdDreamNail = "hk-dreamnail";
|
||||||
|
let divIdEquipment = "hk-equipment";
|
||||||
|
|
||||||
for (i in HKPlayerData) {
|
for (i in HKPlayerData) {
|
||||||
COMPLETED_CHECK = SYMBOL_FALSE;
|
COMPLETED_CHECK = SYMBOL_FALSE;
|
||||||
|
|
@ -119,6 +130,17 @@ function HKCheckCompletion(jsonObject) {
|
||||||
fillHTML(divId, HK_DREAMNAIL[j]);
|
fillHTML(divId, HK_DREAMNAIL[j]);
|
||||||
delete HK_DREAMNAIL[j];
|
delete HK_DREAMNAIL[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------- Equipment --------------------- //
|
||||||
|
|
||||||
|
divId = divIdEquipment;
|
||||||
|
|
||||||
|
for (j in HK_EQUIPMENT) {
|
||||||
|
if (HKPlayerData[j] === true) currentDataTrue();
|
||||||
|
else currentDataFalse();
|
||||||
|
fillHTML(divId, HK_EQUIPMENT[j]);
|
||||||
|
delete HK_EQUIPMENT[j];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,5 +66,9 @@
|
||||||
<h2>Dream Nail and Essence:</h2>
|
<h2>Dream Nail and Essence:</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="hk-equipment">
|
||||||
|
<h2>Equipment:</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue