Godhome Statistics separate category

This commit is contained in:
ReznoRMichael 2021-02-23 20:16:21 +01:00
commit 8f0bcb1b7f
4 changed files with 100 additions and 64 deletions

View file

@ -222,6 +222,10 @@ function HKCheckCompletion(jsonObject) {
CheckAdditionalThings(HK.DIV_ID.statistics, HK.STATISTICS, HKPlayerData, HKWorldItems, HKSceneData);
// ------------------------- Godhome Statistics ----------------------------- //
CheckAdditionalThings(HK.DIV_ID.godhomeStatistics, HK.GODHOME_STATISTICS, HKPlayerData, HKWorldItems, HKSceneData);
// ------------------------- Hints ----------------------------- //
CheckHintsTrue(HK.DIV_ID.hints, HK.HINTS, HKPlayerData, HKWorldItems);
@ -1349,10 +1353,10 @@ function InitialHTMLPopulate(divIdObj) {
AppendHTML(divIdObj.hints, HK.HINTS.fireballLevel.spoiler);
// Temp arrays storing references (addresses) to objects for looping through them (duplicates important)
let hkObjArray = [HK.BOSSES, HK.CHARMS, HK.EQUIPMENT, HK.NAILARTS, HK.MASKSHARDS, HK.MASKSHARDS_WORLD, HK.VESSELFRAGMENTS, HK.VESSELFRAGMENTS_WORLD, HK.DREAMERS, HK.COLOSSEUM, HK.DREAMNAIL, HK.WARRIORDREAMS, HK.GRIMMTROUPE, HK.LIFEBLOOD, HK.GODMASTER, HK.ESSENTIAL, HK.ACHIEVEMENTS, HK.STATISTICS];
let hkObjArray = [HK.BOSSES, HK.CHARMS, HK.EQUIPMENT, HK.NAILARTS, HK.MASKSHARDS, HK.MASKSHARDS_WORLD, HK.VESSELFRAGMENTS, HK.VESSELFRAGMENTS_WORLD, HK.DREAMERS, HK.COLOSSEUM, HK.DREAMNAIL, HK.WARRIORDREAMS, HK.GRIMMTROUPE, HK.LIFEBLOOD, HK.GODMASTER, HK.ESSENTIAL, HK.ACHIEVEMENTS, HK.STATISTICS, HK.GODHOME_STATISTICS];
// duplicates and order important - must be the same as in hkObjArray[]
let divObjArray = [divIdObj.bosses, divIdObj.charms, divIdObj.equipment, divIdObj.nailArts, divIdObj.maskShards, divIdObj.maskShards, divIdObj.vesselFragments, divIdObj.vesselFragments, divIdObj.dreamers, divIdObj.colosseum, divIdObj.dreamNail, divIdObj.warriorDreams, divIdObj.grimmTroupe, divIdObj.lifeblood, divIdObj.godmaster, divIdObj.essential, divIdObj.achievements, divIdObj.statistics];
let divObjArray = [divIdObj.bosses, divIdObj.charms, divIdObj.equipment, divIdObj.nailArts, divIdObj.maskShards, divIdObj.maskShards, divIdObj.vesselFragments, divIdObj.vesselFragments, divIdObj.dreamers, divIdObj.colosseum, divIdObj.dreamNail, divIdObj.warriorDreams, divIdObj.grimmTroupe, divIdObj.lifeblood, divIdObj.godmaster, divIdObj.essential, divIdObj.achievements, divIdObj.statistics, divIdObj.godhomeStatistics];
// Looped filling to reduce redundancy
do {

View file

@ -116,6 +116,10 @@ const HK = {
statistics: {
h2: "Game Statistics",
id: "hk-statistics"
},
godhomeStatistics: {
h2: "Godhome Statistics",
id: "hk-godhome-statistics"
}
},
// hk-hints
@ -247,8 +251,8 @@ const HK = {
spoiler: "Kingdom's Edge, needs Monarch Wings",
wiki: "Hornet_Sentinel"
},
// "Battle Scene" - "Fungus3_23" ?
killedTraitorLord: {
// "Battle Scene" - "Fungus3_23" ?
killedTraitorLord: {
name: "P4 Traitor Lord",
spoiler: "Queen's Gardens, requires Shade Cloak",
wiki: "Traitor_Lord"
@ -1429,26 +1433,6 @@ const HK = {
spoiler: "White Palace: Path of Pain completion",
wiki: "Seal_of_Binding"
},
killedGodseekerMask: {
name: "Journal: Weathered Mask",
spoiler: "Godhome: Land of Storms",
wiki: "Weathered_Mask"
},
killedVoidIdol_1: {
name: "Journal: Void Idol Attuned",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
killedVoidIdol_2: {
name: "Journal: Void Idol Ascended",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
killedVoidIdol_3: {
name: "Journal: Void Idol Radiant",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
elderbugGaveFlower: {
name: "Delicate Flower: Elderbug",
spoiler: "Delivered from Traitor's Child Grave",
@ -1474,21 +1458,6 @@ const HK = {
spoiler: "Delivered from Traitor's Child Grave",
wiki: "Delicate_Flower#List_of_Possible_Recipients"
},
seenGGWastes: {
name: "Tuner Memory",
spoiler: "Requires completing 3 Pantheons, 2% chance",
wiki: "Godhome#Tuner_Memory"
},
zoteStatueWallBroken: {
name: "Zote Statue Discovered",
spoiler: "Upper right corner of Hall of Gods",
wiki: "Hall_of_Gods#Zote"
},
ordealAchieved: {
name: "The Eternal Ordeal",
spoiler: "Reach 57 Zotelings defeated",
wiki: "Eternal_Ordeal"
},
whitePalaceSecretRoomVisited: {
name: "White Palace Secret Room visited",
spoiler: "Help identify this room!",
@ -1510,7 +1479,44 @@ const HK = {
spoiler: "Dirtmouth (10 max)",
max: 10,
wiki: "Grey_Prince_Zote"
}
},
GODHOME_STATISTICS: {
seenGGWastes: {
name: "Tuner Memory",
spoiler: "Requires completing 3 Pantheons, 2% chance",
wiki: "Godhome#Tuner_Memory"
},
killedGodseekerMask: {
name: "Journal: Weathered Mask",
spoiler: "Godhome: Land of Storms",
wiki: "Weathered_Mask"
},
killedVoidIdol_1: {
name: "Journal: Void Idol Attuned",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
killedVoidIdol_2: {
name: "Journal: Void Idol Ascended",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
killedVoidIdol_3: {
name: "Journal: Void Idol Radiant",
spoiler: "Godhome: Hall of Gods, defeat all",
wiki: "Void_Idol"
},
zoteStatueWallBroken: {
name: "Zote Statue Discovered",
spoiler: "Upper right corner of Hall of Gods",
wiki: "Hall_of_Gods#Zote"
},
ordealAchieved: {
name: "The Eternal Ordeal",
spoiler: "Reach 57 Zotelings defeated",
wiki: "Eternal_Ordeal"
}
}
};