Area Maps icon partial

This commit is contained in:
ReznoRMichael 2022-02-20 16:21:11 +01:00
parent a2c9acef01
commit 644e6e99d6
3 changed files with 3 additions and 17 deletions

View file

@ -1045,16 +1045,9 @@ function CheckAdditionalThings(section, saveFile) {
} }
} }
} }
/* if (i === "grubsCollected") {
LogMissingGrubs();
} */
/* textPrefix += `: ${countTotal}`; */
if (i === "grubRewards") { if (i === "grubRewards") {
entries[i].amountTotal = playerData.grubsCollected; entries[i].amountTotal = playerData.grubsCollected;
/* textPrefix += ` / ${playerData.grubsCollected}`; */
} }
if (i === "greyPrinceDefeats") { if (i === "greyPrinceDefeats") {
@ -1558,7 +1551,7 @@ function CheckAdditionalThings(section, saveFile) {
if (entries[i].amount >= entries[i].max) { if (entries[i].amount >= entries[i].max) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, i);
} else if (entries[i].amount > 0) { } else if (entries[i].amount > 0) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIcon)(section, i, "revealed"); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconPartial)(section, i);
} else { } else {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, i); (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, i);
} }

File diff suppressed because one or more lines are too long

View file

@ -1226,15 +1226,8 @@ function CheckAdditionalThings(section, saveFile) {
} }
} }
/* if (i === "grubsCollected") {
LogMissingGrubs();
} */
/* textPrefix += `: ${countTotal}`; */
if (i === "grubRewards") { if (i === "grubRewards") {
entries[i].amountTotal = playerData.grubsCollected; entries[i].amountTotal = playerData.grubsCollected;
/* textPrefix += ` / ${playerData.grubsCollected}`; */
} }
if (i === "greyPrinceDefeats") { if (i === "greyPrinceDefeats") {
@ -1762,7 +1755,7 @@ function CheckAdditionalThings(section, saveFile) {
if (entries[i].amount >= entries[i].max) { if (entries[i].amount >= entries[i].max) {
SetIconGreen(section, i); SetIconGreen(section, i);
} else if (entries[i].amount > 0) { } else if (entries[i].amount > 0) {
SetIcon(section, i, "revealed"); SetIconPartial(section, i);
} else { } else {
SetIconRed(section, i); SetIconRed(section, i);
} }