Added stats for Conjure Baked Goods (#334)
This commit is contained in:
23
src/Disp.js
23
src/Disp.js
@@ -1524,6 +1524,29 @@ CM.Disp.AddMenuStats = function(title) {
|
||||
stats.appendChild(listing(listingQuest('\"Chain\" Reward (CUR) (Golden / Wrath)', 'GoldCookTooltipPlaceholder'), document.createTextNode(Beautify(chainCur) + ' / ' + Beautify(chainCurWrath))));
|
||||
}
|
||||
|
||||
stats.appendChild(header('Conjure Baked Goods', 'Conjure'));
|
||||
if (CM.Config.StatsPref.Conjure) {
|
||||
var conjureColor = ((Game.cookies + CM.Disp.GetWrinkConfigBank()) < CM.Cache.Conjure) ? CM.Disp.colorRed : CM.Disp.colorGreen;
|
||||
var conjureCur = Math.min((Game.cookies + CM.Disp.GetWrinkConfigBank()) * 0.15, CM.Cache.NoGoldSwitchCookiesPS * 60 * 30);
|
||||
var conjureTime = ((Game.cookies + CM.Disp.GetWrinkConfigBank()) < CM.Cache.Conjure) ? CM.Disp.FormatTime((CM.Cache.Conjure - (Game.cookies + CM.Disp.GetWrinkConfigBank())) / CM.Disp.GetCPS()) : '';
|
||||
var conjureRewardMax = CM.Cache.ConjureReward;
|
||||
|
||||
var conjureReqFrag = document.createDocumentFragment();
|
||||
var conjureReqSpan = document.createElement('span');
|
||||
conjureReqSpan.style.fontWeight = 'bold';
|
||||
conjureReqSpan.className = CM.Disp.colorTextPre + conjureColor;
|
||||
conjureReqSpan.textContent = Beautify(CM.Cache.Conjure);
|
||||
conjureReqFrag.appendChild(conjureReqSpan);
|
||||
if (conjureTime != '') {
|
||||
var conjureReqSmall = document.createElement('small');
|
||||
conjureReqSmall.textContent = ' (' + conjureTime + ')';
|
||||
conjureReqFrag.appendChild(conjureReqSmall);
|
||||
}
|
||||
stats.appendChild(listing(listingQuest('\"Conjure Baked Goods\" Cookies Required', 'GoldCookTooltipPlaceholder'), conjureReqFrag));
|
||||
stats.appendChild(listing(listingQuest('\"Conjure Baked Goods\" Reward (MAX)', 'GoldCookTooltipPlaceholder'), document.createTextNode(Beautify(conjureRewardMax))));
|
||||
stats.appendChild(listing(listingQuest('\"Conjure Baked Goods\" Reward (CUR)', 'GoldCookTooltipPlaceholder'), document.createTextNode(Beautify(conjureCur))));
|
||||
}
|
||||
|
||||
var choEgg = (Game.HasUnlocked('Chocolate egg') && !Game.Has('Chocolate egg')); // Needs to be done for the checking below
|
||||
|
||||
stats.appendChild(header('Prestige', 'Prestige'));
|
||||
|
||||
Reference in New Issue
Block a user