Fixed #726
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -564,6 +564,21 @@ export function GardenSection() {
|
|||||||
duketaterFrag,
|
duketaterFrag,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
const missingPlantDrops = [];
|
||||||
|
Object.keys(GameData.PlantDrops).forEach((i) => {
|
||||||
|
if (!Game.HasUnlocked(GameData.PlantDrops[i])) {
|
||||||
|
missingPlantDrops.push(GameData.PlantDrops[i]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (missingPlantDrops.length !== 0) {
|
||||||
|
section.appendChild(
|
||||||
|
StatsListing(
|
||||||
|
'basic',
|
||||||
|
'Rare plant drops left to unlock',
|
||||||
|
StatsMissDisp(missingPlantDrops),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
return section;
|
return section;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -791,13 +806,6 @@ export function SeasonSection() {
|
|||||||
specDisp = true;
|
specDisp = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const missingPlantDrops = [];
|
|
||||||
Object.keys(GameData.PlantDrops).forEach((i) => {
|
|
||||||
if (!Game.HasUnlocked(GameData.PlantDrops[i])) {
|
|
||||||
missingPlantDrops.push(GameData.PlantDrops[i]);
|
|
||||||
specDisp = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const choEgg =
|
const choEgg =
|
||||||
Game.HasUnlocked('Chocolate egg') && !Game.Has('Chocolate egg');
|
Game.HasUnlocked('Chocolate egg') && !Game.Has('Chocolate egg');
|
||||||
const centEgg = Game.Has('Century egg');
|
const centEgg = Game.Has('Century egg');
|
||||||
@@ -823,13 +831,16 @@ export function SeasonSection() {
|
|||||||
else if (godLvl === 2) failRateHalloween *= 0.95;
|
else if (godLvl === 2) failRateHalloween *= 0.95;
|
||||||
else if (godLvl === 3) failRateHalloween *= 0.97;
|
else if (godLvl === 3) failRateHalloween *= 0.97;
|
||||||
}
|
}
|
||||||
|
const obtainedCookiesChance = missingHalloweenCookies.length / 7;
|
||||||
section.appendChild(
|
section.appendChild(
|
||||||
StatsListing(
|
StatsListing(
|
||||||
'basic',
|
'basic',
|
||||||
'Chance of receiving a cookie from wrinkler/shiny wrinkler',
|
'Chance of receiving a cookie from wrinkler/shiny wrinkler',
|
||||||
document.createTextNode(
|
document.createTextNode(
|
||||||
`${Beautify((1 - failRateHalloween) * 100)}% / ${Beautify(
|
`${Beautify(
|
||||||
(1 - failRateHalloween * 0.9) * 100,
|
(1 - failRateHalloween) * obtainedCookiesChance * 100,
|
||||||
|
)}% / ${Beautify(
|
||||||
|
(1 - failRateHalloween * 0.9) * obtainedCookiesChance * 100,
|
||||||
)}%`,
|
)}%`,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -853,12 +864,15 @@ export function SeasonSection() {
|
|||||||
else if (godLvl === 2) failRateChristmas *= 0.95;
|
else if (godLvl === 2) failRateChristmas *= 0.95;
|
||||||
else if (godLvl === 3) failRateChristmas *= 0.97;
|
else if (godLvl === 3) failRateChristmas *= 0.97;
|
||||||
}
|
}
|
||||||
|
const obtainedCookiesChance = missingChristmasCookies.length / 7;
|
||||||
section.appendChild(
|
section.appendChild(
|
||||||
StatsListing(
|
StatsListing(
|
||||||
'basic',
|
'basic',
|
||||||
'Chance of receiving a cookie from reindeer',
|
'Chance of receiving a cookie from reindeer',
|
||||||
document.createTextNode(
|
document.createTextNode(
|
||||||
`${Beautify((1 - failRateChristmas) * 100)}%`,
|
`${Beautify(
|
||||||
|
(1 - failRateChristmas) * obtainedCookiesChance * 100,
|
||||||
|
)}%`,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -945,15 +959,6 @@ export function SeasonSection() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (missingPlantDrops.length !== 0) {
|
|
||||||
section.appendChild(
|
|
||||||
StatsListing(
|
|
||||||
'basic',
|
|
||||||
'Rare plant drops left to unlock',
|
|
||||||
StatsMissDisp(missingPlantDrops),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Game.season === 'christmas')
|
if (Game.season === 'christmas')
|
||||||
section.appendChild(
|
section.appendChild(
|
||||||
|
|||||||
Reference in New Issue
Block a user