mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Fixup rounding for millions
This commit is contained in:
@@ -88,7 +88,7 @@ public class Bot {
|
||||
if (price > 1e9) {
|
||||
return (Math.floor(price / 1e8) / 10) + "B";
|
||||
} else if (price > 1e6) {
|
||||
return (Math.floor(price / 1e8) / 10) + "M";
|
||||
return (Math.floor(price / 1e5) / 10) + "M";
|
||||
} else if (price > 1e3) {
|
||||
return (Math.floor(price / 100) / 10) + "K";
|
||||
} else {
|
||||
|
||||
@@ -74,6 +74,7 @@ public class ShopHandler {
|
||||
ShopItemsDelay[i][j] = 0;
|
||||
DidUpdate = true;
|
||||
}
|
||||
refreshShop(i);
|
||||
}
|
||||
ShopItemsDelay[i][j]++;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user