fix Path of Pain detection, add rare Journal

This commit is contained in:
ReznoRMichael 2020-12-25 21:37:35 +01:00
parent aa62f582aa
commit 075c031554
3 changed files with 42 additions and 7 deletions

View file

@ -92,7 +92,7 @@
</html>
<!-- Instantly load test file (Debugging script) -->
<!-- <script src="js/LoadJson.js"></script> -->
<!-- <script src="js/loadJson.js"></script> -->
<!-- Main script -->
<script src="js/HKCheckCompletion.js"></script>

View file

@ -388,13 +388,40 @@ const HK_ACHIEVEMENTS = {
hasHuntersMark: ["Hunter's Mark", "Greenpath: Hunter"],
journalEntriesCompleted: ["Creatures Encountered", "Hunter's Journal (164 max)", 164],
journalNotesCompleted: ["Hunter Notes Completed", "Hunter's Journal (164 max)", 164],
salubraBlessing: ["Salubra's Blessing", "Salubra: 800 Geo + 40 Charms found"],
/*
Maggot
Gulka
Sporg
Maskfly
Aluba
Durandoo
Duranda
Charged Lumafly
Gorgeous Husk
Crystal Crawler
Lightseed
Goam
Garpede
Void Tendrils
*/
killedLazyFlyer: ["Journal: Aluba", "Lake of Unn, Queen's Gardens (near White Lady)"],
killedZapBug: ["Journal: Charged Lumafly", "Fog Canyon: Teacher's Archives (tank)"],
killedGorgeousHusk: ["Journal: Gorgeous Husk", "City of Tears: secret room"],
killedPrayerSlug: ["Journal: Maggot", "Forgotten Crossroads: False Knight secret room"],
killedPlantShooter: ["Journal: Gulka", "Greenpath: west of Stone Sanctuary"],
killedAcidFlyer: ["Journal: Duranda", "Greenpath: Nailmaster Sheo's tent path"],
killedAcidWalker: ["Journal: Durandoo", "Greenpath, Queen's Gardens"],
killedMushroomTurret: ["Journal: Sporg", "Fungal Wastes"],
killedPigeon: ["Journal: Maskfly", "Greenpath, Queen's Gardens"],
killedCrystalCrawler: ["Journal: Crystal Crawler", "Crystal Peak"],
killedOrangeScuttler: ["Journal: Lightseed", "Infected Crossroads"],
falseKnightDreamDefeated: ["Failed Champion", "Forgotten Crossroads"],
mageLordDreamDefeated: ["Soul Tyrant", "City of Tears: Soul Sanctum"],
infectedKnightDreamDefeated: ["Lost Kin", "Ancient Basin"],
whiteDefenderDefeated: ["White Defender", "Royal Waterways"],
greyPrinceDefeated: ["Grey Prince Zote", "Dirtmouth"],
greyPrinceDefeated: ["Grey Prince Zote", "Dirtmouth: Bretta's Room"],
killedHollowKnight: ["Hollow Knight", "Forgotten Crossroads: Black Egg Temple"],
salubraBlessing: ["Salubra's Blessing", "Salubra: 800 Geo + 40 Charms found"],
gotShadeCharm: ["Void Heart", "Kingsoul + Birthplace"],
killedFinalBoss: ["Radiance", "Forgotten Crossroads: Black Egg Temple"],
bossDoorStateTier5: ["Embrace the Void", "Godhome: Pantheon of Hallownest"],
@ -424,10 +451,12 @@ const HK_STATISTICS = {
fragileGreed_unbreakable: ["Unbreakable Greed", "Divine: Fragile Greed + 9000 Geo"],
fragileHealth_unbreakable: ["Unbreakable Heart", "Divine: Fragile Heart + 12000 Geo"],
fragileStrength_unbreakable: ["Unbreakable Strength", "Divine: Fragile Strength + 15000 Geo"],
killedMenderBug: ["Menderbug", "Forgotten Crossroads + destroy sign"],
killedMenderBug: ["Journal: Menderbug", "Forgotten Crossroads + destroy sign"],
killedBindingSeal: ["Journal: Seal of Binding", "Awarded for Path of Pain completion"],
whiteDefenderDefeats: ["White Defender times defeated", "Royal Waterways (5 max)", 5],
greyPrinceDefeats: ["Grey Prince Zote times defeated", "Dirtmouth (10 max)", 10],
whitePalaceSecretRoomVisited: ["Path of Pain", "White Palace: secret room"]
// whitePalaceSecretRoomVisited: ["White Palace Secret Room visited", "White Palace: one of the secret rooms"],
killsBindingSeal: ["Path of Pain", "White Palace: main secret area"],
};
/**
@ -1075,6 +1104,9 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData) {
case "bossDoorStateTier5":
(playerData[i].completed === true) ? CurrentDataTrue(): CurrentDataFalse();
break;
case "killsBindingSeal":
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();
break;
default:
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
}
@ -1095,7 +1127,7 @@ function CheckHintsTrue(divId, dataObject, playerData, worldData) {
if (playerData.killedHollowKnight === true) {
// a text to show when player already finished their first playthrough (killed Hollow Knight first time)
FillHTML(divId, "", "...a successful Knight who doesn't need hints anymore");
FillHTML(divId, "", "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets...");
return true;
}

View file

@ -14,6 +14,9 @@ var fileName = [
"reznor103ss.json", // 9
"reznor107.json", // 10
"reznor112grimm.json", // 11
"PoP/kanna.json", // 12
"PoP/Reaper4578.json", // 13
"PoP/tintingaroo.json", // 14
];
/**
@ -54,4 +57,4 @@ function JSONparse(response) {
// console.log(jsonObj);
}
jsonObj = LoadJSON("../save/" + fileName[5], JSONparse(response));
jsonObj = LoadJSON("../save/" + fileName[13], JSONparse(response));