Small visual changes to stats page

This commit is contained in:
Daniël van Noord committed 2021-02-20 20:20:53 +01:00
1 parent 894f4359cd
commit db19976e3e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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++;
+1 -1
View File
@@ -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);