This commit is contained in:
Daniël van Noord
2021-04-04 20:13:44 +02:00
parent 9b04663cd8
commit 37bff7df1e
5 changed files with 11 additions and 6 deletions

View File

@@ -22,8 +22,8 @@ export let LastWrinklerCount;
/** Stores the date at Game.CalculateGains for God Cyclius
*/
export let CycliusDateAtBeginLoop;
export let CycliusDateAtBeginLoop = Date.now(); // eslint-disable-line prefer-const
/** Stores the date at Game.CalculateGains for the Century egg
*/
export let CenturyDateAtBeginLoop;
export let CenturyDateAtBeginLoop = Date.now(); // eslint-disable-line prefer-const

View File

@@ -13,11 +13,16 @@ import {
* This functions calculates the cps and cost of changing a Dragon Aura
* It is called by CM.Disp.AddAuraInfo()
* @param {number} god The number of the slot to be swapped in
* * @param {number slot The slot the god will go to
* @param {number slot The slot the god will go to
* @returns {number} CM.Sim.cookiesPs - Game.cookiesPs The bonus cps and the price of the change
*/
export default function CalculateChangeGod(god, slot) {
CopyData();
const { minigame } = Game.Objects.Temple;
const CurrentSlot = minigame.godsById[god].slot;
if (CurrentSlot === '0') SimGod1 = minigame.slot[slot];
else if (CurrentSlot === '1') SimGod2 = minigame.slot[slot];
else if (CurrentSlot === '2') SimGod3 = minigame.slot[slot];
/* eslint-disable no-unused-vars */
if (slot === 0) SimGod1 = god;
else if (slot === 1) SimGod2 = god;