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
@@ -46,7 +46,7 @@ export default function CacheDragonCost() {
|
|||||||
cost += price;
|
cost += price;
|
||||||
SimObjects[target].amount -= 1;
|
SimObjects[target].amount -= 1;
|
||||||
}
|
}
|
||||||
CacheCostDragonUpgrade = `Cost to rebuy: ${cost}`;
|
CacheCostDragonUpgrade = `Cost to rebuy: ${Beautify(cost)}`;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let cost = 0;
|
let cost = 0;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function ColourOfPP(me, price) {
|
|||||||
else if (me.pp === CacheMinPP) color = ColourGreen;
|
else if (me.pp === CacheMinPP) color = ColourGreen;
|
||||||
else if (me.pp < CachePPArray[10][0]) color = ColourYellow;
|
else if (me.pp < CachePPArray[10][0]) color = ColourYellow;
|
||||||
else if (me.pp < CachePPArray[20][0]) color = ColourOrange;
|
else if (me.pp < CachePPArray[20][0]) color = ColourOrange;
|
||||||
else if (me.pp > CachePPArray[30][0]) color = ColourRed;
|
else if (me.pp < CachePPArray[30][0]) color = ColourRed;
|
||||||
else color = ColourPurple;
|
else color = ColourPurple;
|
||||||
|
|
||||||
// Colour based on price in terms of CPS
|
// Colour based on price in terms of CPS
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ const Config = {
|
|||||||
"Game's setting scale",
|
"Game's setting scale",
|
||||||
'Metric',
|
'Metric',
|
||||||
'Short scale',
|
'Short scale',
|
||||||
'Short scale (Aabreviated)',
|
'Short scale (Abbreviated)',
|
||||||
'Scientific notation',
|
'Scientific notation',
|
||||||
'Engineering notation',
|
'Engineering notation',
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ export function Beautify(num, floats, forced) {
|
|||||||
return BackupFunctions.Beautify(num, floats);
|
return BackupFunctions.Beautify(num, floats);
|
||||||
}
|
}
|
||||||
if (Number.isFinite(num)) {
|
if (Number.isFinite(num)) {
|
||||||
|
if (num < 0) {
|
||||||
|
return `-${Beautify(Math.abs(num))}`;
|
||||||
|
}
|
||||||
let answer = '';
|
let answer = '';
|
||||||
if (num === 0) {
|
if (num === 0) {
|
||||||
return num.toString();
|
return num.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user