Added cookies to be gained/lost to Conjure Baked Goods tooltip #130
Added cookies to be gained/lost to Conjure Baked Goods tooltip
This commit is contained in:
@@ -3195,7 +3195,8 @@ CM.Disp.UpdateTooltip = function() {
|
||||
l('CMTooltipArea').appendChild(lumpTooltip);
|
||||
}
|
||||
}
|
||||
else { // Grimoire
|
||||
else if (CM.Disp.tooltipType === 'g') {
|
||||
// Grimoire
|
||||
CM.Disp.TooltipWarn.style.display = 'none';
|
||||
l('CMDispTooltipWarnLucky').style.display = 'none';
|
||||
l('CMDispTooltipWarnLuckyFrenzy').style.display = 'none';
|
||||
@@ -3241,6 +3242,25 @@ CM.Disp.UpdateTooltip = function() {
|
||||
recover.className = CM.Disp.colorTextPre + recoverColor.color;
|
||||
}
|
||||
|
||||
// Extra information when spell is Conjure Baked Goods (Name == 0)
|
||||
if (CM.Disp.tooltipName == 0) {
|
||||
tooltip.appendChild(header('Cookies to be gained/lost'));
|
||||
var conjure = document.createElement('div');
|
||||
conjure.id = 'CMTooltipConjure';
|
||||
tooltip.appendChild(conjure);
|
||||
var reward = document.createElement('span');
|
||||
reward.style.color = "#33FF00"
|
||||
reward.textContent = Beautify(Math.min((Game.cookies + CM.Disp.GetWrinkConfigBank()) * 0.15, CM.Cache.NoGoldSwitchCookiesPS * 60 * 30), 2)
|
||||
conjure.appendChild(reward)
|
||||
var seperator = document.createElement('span');
|
||||
seperator.textContent = ' / '
|
||||
conjure.appendChild(seperator)
|
||||
var loss = document.createElement('span');
|
||||
loss.style.color = "red"
|
||||
loss.textContent = Beautify((CM.Cache.NoGoldSwitchCookiesPS * 60 * 15), 2);
|
||||
conjure.appendChild(loss)
|
||||
}
|
||||
|
||||
l('CMTooltipArea').appendChild(tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user