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);
|
let chain = 1 + Math.max(0, Math.ceil(Math.log(Game.cookies) / Math.LN10) - 10);
|
||||||
while (nextMoni < maxPayout) {
|
while (nextMoni < maxPayout) {
|
||||||
moni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain) * digit * mult), 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));
|
nextMoni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain + 1) * digit * mult), maxPayout));
|
||||||
totalFromChain += moni;
|
totalFromChain += moni;
|
||||||
chain++;
|
chain++;
|
||||||
|
|||||||
@@ -2408,6 +2408,7 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
|
|||||||
div.appendChild(listingName);
|
div.appendChild(listingName);
|
||||||
if (type === "withTooltip") {
|
if (type === "withTooltip") {
|
||||||
div.className = 'listing';
|
div.className = 'listing';
|
||||||
|
div.appendChild(document.createTextNode(' '));
|
||||||
|
|
||||||
let tooltip = document.createElement('span');
|
let tooltip = document.createElement('span');
|
||||||
tooltip.onmouseout = function() { Game.tooltip.hide(); };
|
tooltip.onmouseout = function() { Game.tooltip.hide(); };
|
||||||
@@ -2424,7 +2425,6 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
|
|||||||
tooltip.style.verticalAlign = 'bottom';
|
tooltip.style.verticalAlign = 'bottom';
|
||||||
tooltip.textContent = '?';
|
tooltip.textContent = '?';
|
||||||
div.appendChild(tooltip);
|
div.appendChild(tooltip);
|
||||||
div.appendChild(document.createTextNode(' '));
|
|
||||||
}
|
}
|
||||||
div.appendChild(document.createTextNode(': '));
|
div.appendChild(document.createTextNode(': '));
|
||||||
div.appendChild(text);
|
div.appendChild(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user