log grubs and geo rocks change
This commit is contained in:
parent
b39737c6c1
commit
c4943643b5
2 changed files with 23 additions and 6 deletions
File diff suppressed because one or more lines are too long
|
|
@ -736,16 +736,28 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
function CountGeoRocks(arrayLength, mode = "unbroken") {
|
function CountGeoRocks(arrayLength, mode = "unbroken") {
|
||||||
|
|
||||||
let countTotal = 0;
|
let countTotal = 0;
|
||||||
|
let geoRocksLog = [];
|
||||||
|
|
||||||
if (mode === "unbroken") {
|
if (mode === "unbroken") {
|
||||||
console.groupCollapsed("%cUnbroken Geo Rocks List:", "color: #16c60c;");
|
|
||||||
for (let i = 0; i < arrayLength; i++) {
|
for (let i = 0; i < arrayLength; i++) {
|
||||||
if (sceneData.geoRocks[i].hitsLeft > 0) {
|
if (sceneData.geoRocks[i].hitsLeft > 0) {
|
||||||
countTotal++;
|
countTotal++;
|
||||||
console.log(`#${countTotal} 🏔️ ${sceneData.geoRocks[i].id} 🗺️ ${TranslateMapName(sceneData.geoRocks[i].sceneName)} ⌨️ ${sceneData.geoRocks[i].sceneName}`);
|
geoRocksLog.push(`#${countTotal} 🏔️ ${sceneData.geoRocks[i].id} 🗺️ ${TranslateMapName(sceneData.geoRocks[i].sceneName)} ⌨️ ${sceneData.geoRocks[i].sceneName}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!countTotal) {
|
||||||
|
console.log("%cAll Geo Rocks Broken!", "color: #16c60c; font-weight: 700;");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.groupCollapsed("%cUnbroken Geo Rocks List:", "color: #16c60c; font-weight: 700;");
|
||||||
|
|
||||||
|
for (let i = 0, length = geoRocksLog.length; i < length; i++ ) {
|
||||||
|
console.log(geoRocksLog[i]);
|
||||||
|
}
|
||||||
|
|
||||||
console.groupEnd();
|
console.groupEnd();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < arrayLength; i++) {
|
for (let i = 0; i < arrayLength; i++) {
|
||||||
if (sceneData.geoRocks[i].hitsLeft === 0) countTotal++;
|
if (sceneData.geoRocks[i].hitsLeft === 0) countTotal++;
|
||||||
|
|
@ -778,11 +790,16 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
let missingGrubsList = HK.GRUBS_LIST.filter(x => !rescuedGrubsSceneList.includes(x));
|
let missingGrubsList = HK.GRUBS_LIST.filter(x => !rescuedGrubsSceneList.includes(x));
|
||||||
let length = missingGrubsList.length;
|
let length = missingGrubsList.length;
|
||||||
|
|
||||||
if (length) {
|
if (!length) {
|
||||||
console.groupCollapsed("%cUnrescued Grubs List:", "color: #16c60c;");
|
console.log("%cAll Grubs Rescued!", "color: #16c60c; font-weight: 700;");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.groupCollapsed("%cUnrescued Grubs List:", "color: #16c60c; font-weight: 700;");
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
console.log(`#${HK.GRUBS_LIST.indexOf(missingGrubsList[i]) + 1} 🗺️ ${TranslateMapName(missingGrubsList[i])} ⌨️ ${missingGrubsList[i]}`);
|
console.log(`#${HK.GRUBS_LIST.indexOf(missingGrubsList[i]) + 1} 🗺️ ${TranslateMapName(missingGrubsList[i])} ⌨️ ${missingGrubsList[i]}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.groupEnd();
|
console.groupEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue