47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
/* eslint-disable no-unused-vars */
|
|
import { ClickTimes } from '../Disp/VariablesAndData';
|
|
import { CMAvgQueue, InitCookiesDiff } from './CPS/AverageQueue';
|
|
import CacheAvgCPS from './CPS/CPS';
|
|
import CacheDragonAuras from './Dragon/CacheDragonAuras';
|
|
import CachePP from './PP/PP';
|
|
import {
|
|
CacheBuildingsPrices,
|
|
CacheIncome,
|
|
} from './PriceAndIncome/PriceAndIncome';
|
|
import { CacheChain } from './Stats/ChainCookies';
|
|
import CacheHeavenlyChipsPS from './Stats/HeavenlyChips';
|
|
import CacheAllMissingUpgrades from './Stats/MissingUpgrades';
|
|
import CacheSeasonSpec from './Stats/Reindeer';
|
|
import {
|
|
CacheGoldenAndWrathCookiesMults,
|
|
CacheStatsCookies,
|
|
} from './Stats/Stats';
|
|
import {
|
|
CacheAverageCookiesFromClicks,
|
|
HeavenlyChipsDiff,
|
|
} from './VariablesAndData';
|
|
import CacheWrinklers from './Wrinklers/Wrinklers';
|
|
|
|
/**
|
|
* This functions runs all cache-functions to generate all "full" cache
|
|
*/
|
|
export default function InitCache() {
|
|
CacheDragonAuras();
|
|
CacheWrinklers();
|
|
CacheStatsCookies();
|
|
CacheGoldenAndWrathCookiesMults();
|
|
CacheChain();
|
|
CacheAllMissingUpgrades();
|
|
CacheSeasonSpec();
|
|
InitCookiesDiff();
|
|
HeavenlyChipsDiff = new CMAvgQueue(5); // Used by CM.Cache.CacheHeavenlyChipsPS()
|
|
CacheAverageCookiesFromClicks = new CMAvgQueue(
|
|
ClickTimes[ClickTimes.length - 1] * 20,
|
|
);
|
|
CacheHeavenlyChipsPS();
|
|
CacheAvgCPS();
|
|
CacheIncome();
|
|
CacheBuildingsPrices();
|
|
CachePP();
|
|
}
|