From 1715306374e34152ab0530146da570dbe8f8b90b Mon Sep 17 00:00:00 2001 From: Daniel van Noord Date: Sun, 20 Dec 2020 12:27:43 +0100 Subject: [PATCH] Removed tooltip box from Sell tooltip --- CookieMonster.js | 8 +++++--- src/Disp.js | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CookieMonster.js b/CookieMonster.js index fe706cc..b9f99be 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -2317,9 +2317,11 @@ CM.Disp.Tooltip = function(type, name) { else if (type === 'g') l('tooltip').innerHTML = Game.Objects['Wizard tower'].minigame.spellTooltip(name)(); // Grimoire // Adds area for extra tooltip-sections - var area = document.createElement('div'); - area.id = 'CMTooltipArea'; - l('tooltip').appendChild(area); + if ((type == 'b' && Game.buyMode == 1) || type == 'u' || type == 's' || type == 'g') { + var area = document.createElement('div'); + area.id = 'CMTooltipArea'; + l('tooltip').appendChild(area); + } // Sets global variables used by CM.Disp.UpdateTooltip() CM.Disp.tooltipType = type; diff --git a/src/Disp.js b/src/Disp.js index 8141621..4993eec 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -1270,9 +1270,11 @@ CM.Disp.Tooltip = function(type, name) { else if (type === 'g') l('tooltip').innerHTML = Game.Objects['Wizard tower'].minigame.spellTooltip(name)(); // Grimoire // Adds area for extra tooltip-sections - var area = document.createElement('div'); - area.id = 'CMTooltipArea'; - l('tooltip').appendChild(area); + if ((type == 'b' && Game.buyMode == 1) || type == 'u' || type == 's' || type == 'g') { + var area = document.createElement('div'); + area.id = 'CMTooltipArea'; + l('tooltip').appendChild(area); + } // Sets global variables used by CM.Disp.UpdateTooltip() CM.Disp.tooltipType = type;