From e90c889220d2e017d21ea0759c6869e9c2936176 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 18:51:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Disp/InfoBars/BottomBar.js | 5 ++--- src/Disp/Tooltips/TypesOfTooltips/Warnings.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Disp/InfoBars/BottomBar.js b/src/Disp/InfoBars/BottomBar.js index fee1f7de..e63e5641 100644 --- a/src/Disp/InfoBars/BottomBar.js +++ b/src/Disp/InfoBars/BottomBar.js @@ -98,9 +98,8 @@ export function UpdateBotBar() { l('CMBotBar').firstChild.firstChild.childNodes[3].childNodes[count].className = ColourTextPre + timeColour.colour; if (timeColour.text === 'Done!' && Game.cookies < Game.Objects[i].bulkPrice) { - l('CMBotBar').firstChild.firstChild.childNodes[3].childNodes[ - count - ].textContent = `${timeColour.text} (with Wrink)`; + l('CMBotBar').firstChild.firstChild.childNodes[3].childNodes[count].textContent = + `${timeColour.text} (with Wrink)`; } else l('CMBotBar').firstChild.firstChild.childNodes[3].childNodes[count].textContent = timeColour.text; diff --git a/src/Disp/Tooltips/TypesOfTooltips/Warnings.js b/src/Disp/Tooltips/TypesOfTooltips/Warnings.js index 605c7d28..babf908c 100644 --- a/src/Disp/Tooltips/TypesOfTooltips/Warnings.js +++ b/src/Disp/Tooltips/TypesOfTooltips/Warnings.js @@ -101,9 +101,8 @@ export default function Warnings() { ) { l('CMDispTooltipWarnUser').style.display = ''; // Need to update tooltip text dynamically - l( - 'CMDispTooltipWarnUser', - ).children[0].textContent = `Purchase of this item will put you under the number of Cookies equal to ${Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.ToolWarnUser} seconds of CPS`; + l('CMDispTooltipWarnUser').children[0].textContent = + `Purchase of this item will put you under the number of Cookies equal to ${Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.ToolWarnUser} seconds of CPS`; l('CMDispTooltipWarnUserText').textContent = `${Beautify( Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.ToolWarnUser * GetCPS() -