Fixed secondary issues in #648

This commit is contained in:
Daniël van Noord
2021-03-14 16:37:25 +01:00
parent 99ae657c45
commit 817c5b0e3c
5 changed files with 5 additions and 6 deletions

View File

@@ -33,7 +33,6 @@ export let CacheWrinklersTotal = 0;
export let CacheWrinklersNormal = 0;
export let CacheWrinklersFattest = [0, null];
export let CacheAvgCps = 0;
export let CacheCurrWrinklerCPSMult = 0;
export let CacheCurrWrinklerCount = 0;

View File

@@ -1,5 +1,5 @@
import {
CacheAvgCps, CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult, CacheWrinklersFattest,
CacheAverageCPS, CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult, CacheWrinklersFattest,
} from '../../Cache/VariablesAndData';
import { CMOptions } from '../../Config/VariablesAndData';
@@ -9,7 +9,7 @@ import { CMOptions } from '../../Config/VariablesAndData';
*/
export default function GetCPS() {
if (CMOptions.CPSMode) {
return CacheAvgCps;
return CacheAverageCPS;
} if (CMOptions.CalcWrink === 0) {
return (Game.cookiesPs * (1 - Game.cpsSucked));
} if (CMOptions.CalcWrink === 1) {