Small visual changes to stats page
This commit is contained in:
@@ -201,7 +201,7 @@ CM.Cache.MaxChainCookieReward = function(digit, maxPayout, mult) {
|
||||
let chain = 1 + Math.max(0, Math.ceil(Math.log(Game.cookies) / Math.LN10) - 10);
|
||||
while (nextMoni < maxPayout) {
|
||||
moni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain) * digit * mult), maxPayout));
|
||||
// TODO: Calculate Cookies or cps needed for next level of chain. Related to issue #580
|
||||
// TODO: Calculate Cookies or cps needed for next level of chain. See issue #29
|
||||
nextMoni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain + 1) * digit * mult), maxPayout));
|
||||
totalFromChain += moni;
|
||||
chain++;
|
||||
|
||||
@@ -2408,6 +2408,7 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
|
||||
div.appendChild(listingName);
|
||||
if (type === "withTooltip") {
|
||||
div.className = 'listing';
|
||||
div.appendChild(document.createTextNode(' '));
|
||||
|
||||
let tooltip = document.createElement('span');
|
||||
tooltip.onmouseout = function() { Game.tooltip.hide(); };
|
||||
@@ -2424,7 +2425,6 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
|
||||
tooltip.style.verticalAlign = 'bottom';
|
||||
tooltip.textContent = '?';
|
||||
div.appendChild(tooltip);
|
||||
div.appendChild(document.createTextNode(' '));
|
||||
}
|
||||
div.appendChild(document.createTextNode(': '));
|
||||
div.appendChild(text);
|
||||
|
||||
Reference in New Issue
Block a user