mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 06:51:08 +00:00
Money with abbreviated form (#1222)
This commit is contained in:
parent
c1c464b07a
commit
ae03b9cb20
@ -1199,7 +1199,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateMoneyText(): void {
|
updateMoneyText(): void {
|
||||||
this.moneyText.setText(`₽${this.money.toLocaleString('en-US')}`);
|
this.moneyText.setText(`₽${Utils.formatLargeNumber(this.money, 100)}`);
|
||||||
this.moneyText.setVisible(true);
|
this.moneyText.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,6 +188,12 @@ export function formatLargeNumber(count: integer, threshold: integer): string {
|
|||||||
case 3:
|
case 3:
|
||||||
suffix = 'B';
|
suffix = 'B';
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
suffix = 'T';
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
suffix = 'q';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return '?';
|
return '?';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user