code refactor

This commit is contained in:
ReznoRMichael 2022-01-20 15:26:17 +01:00
parent 5f5eca221e
commit 69ceac5e20
3 changed files with 13 additions and 13 deletions

View file

@ -1688,7 +1688,7 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
if (!countTotal) { if (!countTotal) {
console.log("%cAll Interactables Activated!", "color: #16c60c; font-weight: 700;"); console.log("%cAll Interactables Activated!", "color: #16c60c; font-weight: 700;");
} else { } else {
console.groupCollapsed("%cNot Activated Interactables (".concat(countTotal, "):"), "color: #16c60c; font-weight: 700;"); console.groupCollapsed("%cInteractables Not Activated (".concat(countTotal, "):"), "color: #16c60c; font-weight: 700;");
for (var _i4 = 0, length = itemsLog.length; _i4 < length; _i4++) { for (var _i4 = 0, length = itemsLog.length; _i4 < length; _i4++) {
console.log(itemsLog[_i4]); console.log(itemsLog[_i4]);
@ -2255,13 +2255,13 @@ var DataChecker = /*#__PURE__*/function () {
this.section = section; this.section = section;
this.entries = section.entries; this.entries = section.entries;
for (var i in this.entries) { for (var entry in this.entries) {
switch (i) { switch (entry) {
default: default:
if (this._FindItem(this.entries[i])) { if (this._FindItem(this.entries[entry])) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(this.section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(this.section, entry);
} else { } else {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(this.section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(this.section, entry);
} }
} }
@ -2279,13 +2279,13 @@ var DataChecker = /*#__PURE__*/function () {
this.section = section; this.section = section;
this.entries = section.entries; this.entries = section.entries;
for (var i in this.entries) { for (var entry in this.entries) {
switch (i) { switch (entry) {
default: default:
if (this._FindGeoRock(this.entries[i])) { if (this._FindGeoRock(this.entries[entry])) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(this.section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(this.section, entry);
} else { } else {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(this.section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(this.section, entry);
} }
} }

File diff suppressed because one or more lines are too long

View file

@ -1882,7 +1882,7 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
if (!countTotal) { if (!countTotal) {
console.log("%cAll Interactables Activated!", "color: #16c60c; font-weight: 700;"); console.log("%cAll Interactables Activated!", "color: #16c60c; font-weight: 700;");
} else { } else {
console.groupCollapsed(`%cNot Activated Interactables (${countTotal}):`, "color: #16c60c; font-weight: 700;"); console.groupCollapsed(`%cInteractables Not Activated (${countTotal}):`, "color: #16c60c; font-weight: 700;");
for (let i = 0, length = itemsLog.length; i < length; i++) { for (let i = 0, length = itemsLog.length; i < length; i++) {
console.log(itemsLog[i]); console.log(itemsLog[i]);