Export caches via CookieMonsterData.
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import {
|
||||
CacheAverageClicks, // eslint-disable-line no-unused-vars
|
||||
CacheAverageClicks,
|
||||
CacheAverageCPS,
|
||||
CacheAverageGainBank,
|
||||
CacheAverageGainChoEgg,
|
||||
CacheAverageGainWrink,
|
||||
CacheAverageGainWrinkFattest,
|
||||
CacheAvgCPSWithChoEgg, // eslint-disable-line no-unused-vars
|
||||
CacheAvgCPSWithChoEgg,
|
||||
CacheLastChoEgg,
|
||||
CacheLastClicks,
|
||||
CacheLastCookies,
|
||||
CacheLastCPSCheck,
|
||||
CacheLastWrinkCookies,
|
||||
CacheLastWrinkFattestCookies,
|
||||
CacheRealCookiesEarned, // eslint-disable-line no-unused-vars
|
||||
CacheRealCookiesEarned,
|
||||
CacheSellForChoEgg,
|
||||
CacheWrinklersFattest,
|
||||
CacheWrinklersTotal,
|
||||
@@ -93,4 +94,21 @@ export default function CacheAvgCPS() {
|
||||
ClickTimes[Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.AvgClicksHist],
|
||||
);
|
||||
}
|
||||
|
||||
FillCMDCache({
|
||||
CacheRealCookiesEarned,
|
||||
CacheLastCPSCheck,
|
||||
CacheLastCookies,
|
||||
CacheLastWrinkCookies,
|
||||
CacheLastWrinkFattestCookies,
|
||||
CacheLastChoEgg,
|
||||
CacheLastClicks,
|
||||
CacheAverageGainBank,
|
||||
CacheAverageGainWrink,
|
||||
CacheAverageGainWrinkFattest,
|
||||
CacheAverageGainChoEgg,
|
||||
CacheAverageCPS,
|
||||
CacheAvgCPSWithChoEgg,
|
||||
CacheAverageClicks,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { SimObjects } from '../../Sim/VariablesAndData';
|
||||
import { CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult } from '../VariablesAndData';
|
||||
|
||||
/**
|
||||
* This functions caches the current Wrinkler CPS multiplier
|
||||
@@ -26,4 +27,6 @@ export default function CacheCurrWrinklerCPS() {
|
||||
(Game.Has('Sacrilegious corruption') * 0.05 + 1) *
|
||||
(Game.Has('Wrinklerspawn') * 0.05 + 1) *
|
||||
godMult;
|
||||
|
||||
FillCMDCache({ CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult });
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import CalcNoGoldSwitchCPS from '../../Sim/Calculations/NoGoldenSwitchCalc';
|
||||
import { CacheNoGoldSwitchCookiesPS } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheNoGoldSwitchCookiesPS } from '../VariablesAndData';
|
||||
|
||||
/**
|
||||
* This function calculates CPS without the Golden Switch as it might be needed in other functions
|
||||
@@ -10,4 +11,6 @@ export default function CacheNoGoldSwitchCPS() {
|
||||
if (Game.Has('Golden switch [off]')) {
|
||||
CacheNoGoldSwitchCookiesPS = CalcNoGoldSwitchCPS();
|
||||
} else CacheNoGoldSwitchCookiesPS = Game.cookiesPs;
|
||||
|
||||
FillCMDCache({ CacheNoGoldSwitchCookiesPS });
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import SellBuildingsForChoEgg from '../../Sim/SimulationEvents/SellBuildingForChoEgg';
|
||||
import { CacheSellForChoEgg } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheSellForChoEgg } from '../VariablesAndData';
|
||||
|
||||
/**
|
||||
* This functions caches the reward for selling the Chocolate egg
|
||||
@@ -21,4 +22,6 @@ export default function CacheSellAllForChoEgg() {
|
||||
// Compute cookies earned by selling all buildings with optimal auras (ES + RB)
|
||||
sellTotal += SellBuildingsForChoEgg();
|
||||
CacheSellForChoEgg = sellTotal;
|
||||
|
||||
FillCMDCache({ CacheSellForChoEgg });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user