From c518aede7e761eda74cc36ff3b7ce6f9576c861b Mon Sep 17 00:00:00 2001 From: ReznoRMichael Date: Thu, 20 Jan 2022 12:43:04 +0100 Subject: [PATCH] checkGeoRocks() method --- src/js/HKCheckCompletion.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/js/HKCheckCompletion.js b/src/js/HKCheckCompletion.js index 58e3a02..3ad01c0 100644 --- a/src/js/HKCheckCompletion.js +++ b/src/js/HKCheckCompletion.js @@ -2496,6 +2496,28 @@ class DataChecker { } } + /** + * Verifies the status of all Geo Rocks from the database. + * @param {object} section Provide a Geo Rocks section object to check. + */ + checkGeoRocks(section) { + this.section = section; + this.entries = section.entries; + + for (let i in this.entries) { + + switch(i) { + + default: + if (this._FindGeoRock(this.entries[i].id, this.entries[i].sceneName)) { + SetIconGreen(this.section, i); + } else { + SetIconRed(this.section, i); + } + } + } + } + } /* ----------------------- Event Listeners -------------------------- */