Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
14
src/Sim/Calculations/NoGoldenSwitchCalc.js
Normal file
14
src/Sim/Calculations/NoGoldenSwitchCalc.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import CopyData from '../SimulationData/CopyData';
|
||||
import { SimCookiesPs, SimUpgrades } from '../VariablesAndData';
|
||||
import CalculateGains from './CalculateGains';
|
||||
|
||||
/**
|
||||
* This function calculates CPS without the Golden Switch
|
||||
* It is called by CM.Cache.NoGoldSwitchCPS()
|
||||
*/
|
||||
export default function CalcNoGoldSwitchCPS() {
|
||||
CopyData();
|
||||
SimUpgrades['Golden switch [off]'].bought = 0;
|
||||
CalculateGains();
|
||||
return SimCookiesPs;
|
||||
}
|
||||
Reference in New Issue
Block a user