add Pantheon of the Master to database
This commit is contained in:
parent
8a1e3adb49
commit
532d3da9db
4 changed files with 143 additions and 2 deletions
69
build/app.js
69
build/app.js
|
|
@ -202,7 +202,10 @@ function HKCheckCompletion(jsonObject) {
|
|||
|
||||
CheckAdditionalThings(_hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.statistics, _hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.statistics.entries, HKPlayerData, HKWorldItems, HKSceneData); // ------------------------- Godhome Statistics ----------------------------- //
|
||||
|
||||
CheckAdditionalThings(_hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.godhomeStatistics, _hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.godhomeStatistics.entries, HKPlayerData, HKWorldItems, HKSceneData); // ------------------------- Hints ----------------------------- //
|
||||
CheckAdditionalThings(_hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.godhomeStatistics, _hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.godhomeStatistics.entries, HKPlayerData, HKWorldItems, HKSceneData);
|
||||
/* ------------------------- Pantheon Statistics ----------------------------- */
|
||||
|
||||
CheckPantheon(_hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default, "pantheonOfTheMaster", HKPlayerData); // ------------------------- Hints ----------------------------- //
|
||||
|
||||
CheckHintsTrue(_hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.hints, _hk_database_js__WEBPACK_IMPORTED_MODULE_0__.default.sections.hints.entries, HKPlayerData, HKWorldItems); // ------------------------- Extended game completion check ----------------------------- //
|
||||
|
||||
|
|
@ -1893,6 +1896,20 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function CheckPantheon(db, sectionName, playerData) {
|
||||
var section = db.sections[sectionName];
|
||||
var property = db.sections[sectionName].property;
|
||||
var entries = db.sections[sectionName].entries;
|
||||
|
||||
for (var entry in entries) {
|
||||
if (playerData[property][entry] === true) {
|
||||
SetIconGreen(section, entry);
|
||||
} else {
|
||||
SetIconRed(section, entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Checks, validates and shows hints to the player depending on their save progression, in chronological order. Shows only hint for the last uncompleted event. If Hollow Knight is defeated, shows a dummy text.
|
||||
* @param {object} section object containing div hints ID and h2 title
|
||||
|
|
@ -6256,6 +6273,56 @@ var HK = {
|
|||
wiki: "Eternal_Ordeal"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* ################################################### Pantheon of the Master #################################################### */
|
||||
pantheonOfTheMaster: {
|
||||
h2: "Pantheon of the Master (P1)",
|
||||
id: "hk-pantheon-master",
|
||||
property: "bossDoorStateTier1",
|
||||
description: "Seek the Gods of Nail and Shell",
|
||||
entries: {
|
||||
unlocked: {
|
||||
name: "P1 Unlocked",
|
||||
spoiler: "Defeat P1 bosses in the game world to unlock",
|
||||
wiki: "Pantheon_of_the_Master"
|
||||
},
|
||||
completed: {
|
||||
name: "P1 Completed",
|
||||
spoiler: "Defeat all bosses in a row to complete",
|
||||
wiki: "Pantheon_of_the_Master"
|
||||
},
|
||||
boundNail: {
|
||||
name: "P1 Binding: Nail",
|
||||
spoiler: "Complete with the Nail binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundShell: {
|
||||
name: "P1 Binding: Shell",
|
||||
spoiler: "Complete with the Shell binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundCharms: {
|
||||
name: "P1 Binding: Charms",
|
||||
spoiler: "Complete with the Charm binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundSoul: {
|
||||
name: "P1 Binding: Soul",
|
||||
spoiler: "Complete with the Soul binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
allBindings: {
|
||||
name: "P1 All Bindings",
|
||||
spoiler: "Complete with all bindings active at once",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
noHits: {
|
||||
name: "P1 No Damage",
|
||||
spoiler: "Complete without taking a single hit",
|
||||
wiki: "Pantheons"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -260,6 +260,10 @@ function HKCheckCompletion(jsonObject, benchStart = performance.now()) {
|
|||
|
||||
CheckAdditionalThings(HK.sections.godhomeStatistics, HK.sections.godhomeStatistics.entries, HKPlayerData, HKWorldItems, HKSceneData);
|
||||
|
||||
/* ------------------------- Pantheon Statistics ----------------------------- */
|
||||
|
||||
CheckPantheon(HK, "pantheonOfTheMaster", HKPlayerData);
|
||||
|
||||
// ------------------------- Hints ----------------------------- //
|
||||
|
||||
CheckHintsTrue(HK.sections.hints, HK.sections.hints.entries, HKPlayerData, HKWorldItems);
|
||||
|
|
@ -2047,6 +2051,25 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function CheckPantheon(db, sectionName, playerData) {
|
||||
|
||||
let section = db.sections[sectionName];
|
||||
let property = db.sections[sectionName].property;
|
||||
let entries = db.sections[sectionName].entries;
|
||||
|
||||
for (let entry in entries) {
|
||||
|
||||
if (playerData[property][entry] === true) {
|
||||
SetIconGreen(section, entry);
|
||||
} else {
|
||||
SetIconRed(section, entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Checks, validates and shows hints to the player depending on their save progression, in chronological order. Shows only hint for the last uncompleted event. If Hollow Knight is defeated, shows a dummy text.
|
||||
* @param {object} section object containing div hints ID and h2 title
|
||||
|
|
|
|||
|
|
@ -3106,6 +3106,57 @@ const HK = {
|
|||
wiki: "Eternal_Ordeal"
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
/* ################################################### Pantheon of the Master #################################################### */
|
||||
|
||||
pantheonOfTheMaster: {
|
||||
h2: "Pantheon of the Master (P1)",
|
||||
id: "hk-pantheon-master",
|
||||
property: "bossDoorStateTier1",
|
||||
description: "Seek the Gods of Nail and Shell",
|
||||
entries: {
|
||||
unlocked: {
|
||||
name: "P1 Unlocked",
|
||||
spoiler: "Defeat P1 bosses in the game world to unlock",
|
||||
wiki: "Pantheon_of_the_Master"
|
||||
},
|
||||
completed: {
|
||||
name: "P1 Completed",
|
||||
spoiler: "Defeat all bosses in a row to complete",
|
||||
wiki: "Pantheon_of_the_Master"
|
||||
},
|
||||
boundNail: {
|
||||
name: "P1 Binding: Nail",
|
||||
spoiler: "Complete with the Nail binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundShell: {
|
||||
name: "P1 Binding: Shell",
|
||||
spoiler: "Complete with the Shell binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundCharms: {
|
||||
name: "P1 Binding: Charms",
|
||||
spoiler: "Complete with the Charm binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
boundSoul: {
|
||||
name: "P1 Binding: Soul",
|
||||
spoiler: "Complete with the Soul binding active",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
allBindings: {
|
||||
name: "P1 All Bindings",
|
||||
spoiler: "Complete with all bindings active at once",
|
||||
wiki: "Pantheons#Bindings"
|
||||
},
|
||||
noHits: {
|
||||
name: "P1 No Damage",
|
||||
spoiler: "Complete without taking a single hit",
|
||||
wiki: "Pantheons"
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue