Initial fix for #707

This commit is contained in:
Daniël van Noord committed 2021-04-04 13:52:34 +02:00
1 parent 5017f1c217
commit 444462ae53
6 files changed
+21 -8

No files matched your search

+3 -1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
import InitCache from '../Cache/CacheInit';
import LoopCache from '../Cache/CacheLoop';
import CacheNoGoldSwitchCPS from '../Cache/CPS/NoGoldSwitchCPS';
@@ -29,13 +30,14 @@ import CheckMagicMeter from './CheckStates/Grimoire';
import CheckSeasonPopup from './CheckStates/Season';
import CheckTickerFortune from './CheckStates/Ticker';
import CheckWrinklerCount from './CheckStates/Wrinkler';
import { LastModCount } from './VariablesAndData';
import { DateAtBeginLoop, LastModCount } from './VariablesAndData';
/**
* Main loop of Cookie Monster
* CM.init registers it to the "logic" hook provided by the modding api
*/
export default function CMLoopHook() {
DateAtBeginLoop = Date.now();
if (LastAscendState !== Game.OnAscend) {
LastAscendState = Game.OnAscend;
UpdateAscendState();
+5
View File
@@ -21,3 +21,8 @@ export let LastSpawnedGoldenCookieState;
export let LastMagicBarFull;
export let CurrSpawnedGoldenCookieState;
export let LastWrinklerCount;
/** Stores the date at the beginning of a Main loop
* Calculations depending on time (God Cyclius) will all use same time
*/
export let DateAtBeginLoop;