Fixed elder pledge tooltip #613
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
@@ -1,10 +1,16 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
/** Section: Functions related to caching income */
|
/** Section: Functions related to caching income */
|
||||||
|
|
||||||
|
import { CMOptions } from '../../Config/VariablesAndData';
|
||||||
|
import GetCPS from '../../Disp/HelperFunctions/GetCPS';
|
||||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
||||||
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome';
|
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome';
|
||||||
import BuyUpgradesBonusIncome from '../../Sim/SimulationEvents/BuyUpgrades';
|
import BuyUpgradesBonusIncome from '../../Sim/SimulationEvents/BuyUpgrades';
|
||||||
import {
|
import {
|
||||||
|
CacheAverageCPS,
|
||||||
|
CacheAverageGainBank,
|
||||||
|
CacheAverageGainWrink,
|
||||||
|
CacheAverageGainWrinkFattest,
|
||||||
CacheDoRemakeBuildPrices,
|
CacheDoRemakeBuildPrices,
|
||||||
CacheObjects1,
|
CacheObjects1,
|
||||||
CacheObjects10,
|
CacheObjects10,
|
||||||
@@ -38,9 +44,18 @@ function CacheUpgradeIncome() {
|
|||||||
CacheUpgrades = [];
|
CacheUpgrades = [];
|
||||||
Object.keys(Game.Upgrades).forEach((i) => {
|
Object.keys(Game.Upgrades).forEach((i) => {
|
||||||
const bonusIncome = BuyUpgradesBonusIncome(i);
|
const bonusIncome = BuyUpgradesBonusIncome(i);
|
||||||
CacheUpgrades[i] = {};
|
if (i === 'Elder Pledge') {
|
||||||
if (bonusIncome[0]) CacheUpgrades[i].bonus = bonusIncome[0];
|
CacheUpgrades[i] = { bonus: Game.cookiesPs - CacheAverageGainBank };
|
||||||
if (bonusIncome[1]) CacheUpgrades[i].bonusMouse = bonusIncome[1];
|
if (CMOptions.CalcWrink === 1)
|
||||||
|
CacheUpgrades[i].bonus -= CacheAverageGainWrink;
|
||||||
|
else if (CMOptions.CalcWrink === 2)
|
||||||
|
CacheUpgrades[i].bonus -= CacheAverageGainWrinkFattest;
|
||||||
|
if (!Number.isFinite(CacheUpgrades[i].bonus)) CacheUpgrades[i].bonus = 0;
|
||||||
|
} else {
|
||||||
|
CacheUpgrades[i] = {};
|
||||||
|
if (bonusIncome[0]) CacheUpgrades[i].bonus = bonusIncome[0];
|
||||||
|
if (bonusIncome[1]) CacheUpgrades[i].bonusMouse = bonusIncome[1];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-unused-vars */
|
||||||
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions';
|
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions';
|
||||||
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles';
|
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles';
|
||||||
import ToggleBotBar from '../Config/Toggles/ToggleBotBar';
|
import ToggleBotBar from '../Config/Toggles/ToggleBotBar';
|
||||||
@@ -13,6 +14,7 @@ import UpdateUpgrades from '../Disp/BuildingsUpgrades/Upgrades';
|
|||||||
import RefreshScale from '../Disp/HelperFunctions/RefreshScale';
|
import RefreshScale from '../Disp/HelperFunctions/RefreshScale';
|
||||||
import UpdateColors from '../Disp/HelperFunctions/UpdateColors';
|
import UpdateColors from '../Disp/HelperFunctions/UpdateColors';
|
||||||
import { UpdateFavicon } from '../Disp/TabTitle/FavIcon';
|
import { UpdateFavicon } from '../Disp/TabTitle/FavIcon';
|
||||||
|
import { SimDoSims } from '../Sim/VariablesAndData';
|
||||||
import {
|
import {
|
||||||
SettingStandard,
|
SettingStandard,
|
||||||
SettingColours,
|
SettingColours,
|
||||||
@@ -159,6 +161,9 @@ const Config = {
|
|||||||
],
|
],
|
||||||
'Calculate times and average Cookies Per Second with (only the single non-shiny fattest) Wrinklers',
|
'Calculate times and average Cookies Per Second with (only the single non-shiny fattest) Wrinklers',
|
||||||
true,
|
true,
|
||||||
|
function () {
|
||||||
|
SimDoSims = true;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
CPSMode: new SettingStandard(
|
CPSMode: new SettingStandard(
|
||||||
'bool',
|
'bool',
|
||||||
|
|||||||
Reference in New Issue
Block a user