Fix Grimoire bar on Steam

This commit is contained in:
Daniël van Noord
2021-09-05 17:31:23 +02:00
parent b74ae3eee0
commit b191d9a434
5 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,8 @@ function ReplaceNativeGrimoireDraw() {
BackupGrimoireDraw();
if (
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.GrimoireBar === 1 &&
minigame.magic < minigame.magicM
minigame.magic < minigame.magicM &&
(typeof Steam === 'undefined' || Game.drawT % 5 === 0)
) {
minigame.magicBarTextL.innerHTML += ` (${FormatTime(
CalculateGrimoireRefillTime(minigame.magic, minigame.magicM, minigame.magicM),