From 74dcaa14c0fe292e4e8096e1c1506b50b44d75e7 Mon Sep 17 00:00:00 2001 From: ReznoRMichael Date: Tue, 25 Aug 2020 02:59:54 +0200 Subject: [PATCH] add Godmaster Pantheons --- HKCheckCompletion.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/HKCheckCompletion.js b/HKCheckCompletion.js index df92761..9af191c 100644 --- a/HKCheckCompletion.js +++ b/HKCheckCompletion.js @@ -157,6 +157,7 @@ function HKCheckCompletion(jsonObject) { let HK_GODMASTER_temp = Object.assign({}, HK_GODMASTER); let HKPlayerData = jsonObject.playerData; + let bossDoor = ["Pantheon of the Master", "Pantheon of the Artist", "Pantheon of the Sage", "Pantheon of the Knight"] for (i in HKPlayerData) { completionSymbol = SYMBOL_FALSE; @@ -241,6 +242,17 @@ function HKCheckCompletion(jsonObject) { if (HK_GODMASTER_temp) checkIfDataTrue(DIV_ID.godmaster, HK_GODMASTER_temp, HKPlayerData); + if (bossDoor.length) { + for (let j=1; j<=4; j++) { + currentDataFalse(); + if (i === ("bossDoorStateTier" + j)) { + if (HKPlayerData["bossDoorStateTier" + j].completed === true) currentDataTrue(); + fillHTML(DIV_ID.godmaster, bossDoor[0]); + bossDoor.shift(); + } + } + } + } // finish and show benchmark