@@ -1,9 +1,7 @@
|
||||
import { CacheNoGoldSwitchCookiesPS } from '../../../Cache/VariablesAndData';
|
||||
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour';
|
||||
import CalculateGrimoireRefillTime from '../../HelperFunctions/CalculateGrimoireRefillTime';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import { ColourTextPre, TooltipName } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
|
||||
@@ -58,9 +56,12 @@ export default function Grimoire() {
|
||||
const reward = document.createElement('span');
|
||||
reward.style.color = '#33FF00';
|
||||
reward.textContent = Beautify(
|
||||
Math.min(
|
||||
(Game.cookies + GetWrinkConfigBank()) * 0.15,
|
||||
CacheNoGoldSwitchCookiesPS * 60 * 30,
|
||||
Math.max(
|
||||
Math.min(
|
||||
Game.cookies * 0.15,
|
||||
Game.cookiesPs * 60 * 30
|
||||
),
|
||||
7
|
||||
),
|
||||
2,
|
||||
);
|
||||
@@ -70,7 +71,16 @@ export default function Grimoire() {
|
||||
conjure.appendChild(seperator);
|
||||
const loss = document.createElement('span');
|
||||
loss.style.color = 'red';
|
||||
loss.textContent = Beautify(CacheNoGoldSwitchCookiesPS * 60 * 15, 2);
|
||||
loss.textContent = Beautify(
|
||||
Math.min(
|
||||
Game.cookies,
|
||||
Math.min(
|
||||
Game.cookies * 0.15,
|
||||
Game.cookiesPs * 60 * 15
|
||||
) + 13
|
||||
),
|
||||
2
|
||||
);
|
||||
conjure.appendChild(loss);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user