Fixed #707
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user