Fix #647
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -62,6 +62,10 @@ export function Building() {
|
|||||||
);
|
);
|
||||||
if (Number.isFinite(increase) && increase !== 0) {
|
if (Number.isFinite(increase) && increase !== 0) {
|
||||||
l('CMTooltipIncome').textContent += ` (${increase / 100}% of income)`;
|
l('CMTooltipIncome').textContent += ` (${increase / 100}% of income)`;
|
||||||
|
} else {
|
||||||
|
l('CMTooltipIncome').textContent += ` (<0${
|
||||||
|
CMOptions.ScaleSeparator ? ',' : '.'
|
||||||
|
}01% of income)`;
|
||||||
}
|
}
|
||||||
l('CMTooltipBorder').className = ColorTextPre + target[TooltipName].color;
|
l('CMTooltipBorder').className = ColorTextPre + target[TooltipName].color;
|
||||||
l('CMTooltipPP').textContent = Beautify(target[TooltipName].pp, 2);
|
l('CMTooltipPP').textContent = Beautify(target[TooltipName].pp, 2);
|
||||||
@@ -134,6 +138,10 @@ export function Upgrade() {
|
|||||||
} else {
|
} else {
|
||||||
if (Number.isFinite(increase) && increase !== 0) {
|
if (Number.isFinite(increase) && increase !== 0) {
|
||||||
l('CMTooltipIncome').textContent += ` (${increase / 100}% of income)`;
|
l('CMTooltipIncome').textContent += ` (${increase / 100}% of income)`;
|
||||||
|
} else {
|
||||||
|
l('CMTooltipIncome').textContent += ` (<0${
|
||||||
|
CMOptions.ScaleSeparator ? ',' : '.'
|
||||||
|
}01% of income)`;
|
||||||
}
|
}
|
||||||
l('CMTooltipBorder').className =
|
l('CMTooltipBorder').className =
|
||||||
ColorTextPre +
|
ColorTextPre +
|
||||||
|
|||||||
Reference in New Issue
Block a user