missing grubs list count
This commit is contained in:
parent
eab973158a
commit
ba9c67ee2a
3 changed files with 49 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -716,21 +716,62 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
|||
let countTotal = 0;
|
||||
|
||||
if (mode === "unbroken") {
|
||||
console.groupCollapsed("%cUnbroken Geo Rocks List:", "color: #16c60c;");
|
||||
for (let i = 0; i < arrayLength; i++) {
|
||||
if (sceneData.geoRocks[i].hitsLeft > 0) {
|
||||
countTotal++;
|
||||
console.log(`Unbroken ID: ${sceneData.geoRocks[i].id}, Map location: ${sceneData.geoRocks[i].sceneName}`);
|
||||
console.log(`#${countTotal} | ${sceneData.geoRocks[i].id} | Map location: ${sceneData.geoRocks[i].sceneName}`);
|
||||
}
|
||||
}
|
||||
console.groupEnd();
|
||||
} else {
|
||||
for (let i = 0; i < arrayLength; i++) {
|
||||
if (sceneData.geoRocks[i].hitsLeft === 0) countTotal++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return countTotal;
|
||||
}
|
||||
|
||||
function LogMissingGrubs() {
|
||||
|
||||
let unrescuedGrubsSceneList = [];
|
||||
let rescuedGrubsSceneList = [];
|
||||
|
||||
for (let i = 0, length = worldData.length; i < length; i++) {
|
||||
if (worldData[i].id.includes("Grub Bottle")) {
|
||||
if (worldData[i].activated === false) {
|
||||
unrescuedGrubsSceneList.push(worldData[i].sceneName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// console.info(grubArray);
|
||||
|
||||
let missingGrubsList = HK.GRUBS_LIST.filter(x => !rescuedGrubsSceneList.includes(x));
|
||||
let length = missingGrubsList.length;
|
||||
|
||||
if (length) {
|
||||
console.groupCollapsed("%cUnrescued Grubs List:", "color: #16c60c;");
|
||||
for (let i = 0; i < length; i++) {
|
||||
console.log(`#${HK.GRUBS_LIST.indexOf(missingGrubsList[i]) + 1} | Map location: ${missingGrubsList[i]}`);
|
||||
}
|
||||
console.groupEnd();
|
||||
}
|
||||
/* let missingGrubsList = HK.GRUBS_LIST.filter(x => !playerData.scenesGrubRescued.includes(x));
|
||||
let length = missingGrubsList.length;
|
||||
|
||||
if (length) {
|
||||
console.groupCollapsed("Unrescued Grubs List:");
|
||||
for (let i = 0; i < length; i++) {
|
||||
console.log(`#${HK.GRUBS_LIST.indexOf(missingGrubsList[i]) + 1} Map location: ${missingGrubsList[i]}`);
|
||||
}
|
||||
console.groupEnd();
|
||||
} */
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Start main loop
|
||||
for (let i in dataObject) {
|
||||
textPrefix = dataObject[i][0];
|
||||
|
|
@ -772,6 +813,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
|||
if (i === "journalEntriesCompleted" || i === "journalNotesCompleted") {
|
||||
countTotal = amount + " / " + playerData.journalEntriesTotal;
|
||||
}
|
||||
if (i === "grubsCollected") LogMissingGrubs();
|
||||
textPrefix += ": " + countTotal;
|
||||
(amount >= dataObject[i][2]) ? CurrentDataTrue(): CurrentDataBlank();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -354,6 +354,8 @@ const ESSENTIAL = {
|
|||
nightmareLanternLit: ["Nightmare Lantern Lit", "Howling Cliffs, corpse of a large bug"]
|
||||
};
|
||||
|
||||
const GRUBS_LIST = ["Crossroads_35", "Crossroads_03", "Crossroads_05", "Crossroads_48", "Crossroads_31", "Fungus1_06", "Fungus1_07", "Fungus1_21", "Fungus1_28", "Fungus2_18", "Ruins1_05", "Mines_04", "Mines_03", "Mines_31", "Mines_19", "Ruins1_32", "RestingGrounds_10", "Ruins_House_01", "Mines_35", "Mines_16", "Waterways_04", "Waterways_13", "Abyss_19", "Abyss_17", "Mines_24", "Fungus1_13", "Fungus3_47", "Fungus3_10", "Fungus3_48", "Fungus3_22", "Ruins2_07", "Ruins2_11", "Ruins2_11", "Ruins2_11", "Deepnest_East_11", "Deepnest_East_14", "Fungus2_20", "Ruins2_03", "Deepnest_36", "Deepnest_03", "Deepnest_31", "Deepnest_39", "Deepnest_Spider_Town", "Waterways_14", "Hive_03", "Hive_04"];
|
||||
|
||||
const ACHIEVEMENTS = {
|
||||
areaMaps: ["Area Maps", "Cornifer and Iselda (out of 13)", 13, [
|
||||
"mapCrossroads", "mapGreenpath", "mapFogCanyon", "mapRoyalGardens", "mapFungalWastes", "mapCity", "mapWaterways", "mapMines", "mapDeepnest", "mapCliffs", "mapOutskirts", "mapRestingGrounds", "mapAbyss"
|
||||
|
|
@ -450,6 +452,7 @@ export {
|
|||
GODMASTER,
|
||||
GODMASTER_DOORS,
|
||||
ESSENTIAL,
|
||||
GRUBS_LIST,
|
||||
ACHIEVEMENTS,
|
||||
STATISTICS
|
||||
};
|
||||
Loading…
Reference in a new issue