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 {
|
||||
this.moneyText.setText(`₽${this.money.toLocaleString('en-US')}`);
|
||||
this.moneyText.setText(`₽${Utils.formatLargeNumber(this.money, 100)}`);
|
||||
this.moneyText.setVisible(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -188,6 +188,12 @@ export function formatLargeNumber(count: integer, threshold: integer): string {
|
|||
case 3:
|
||||
suffix = 'B';
|
||||
break;
|
||||
case 4:
|
||||
suffix = 'T';
|
||||
break;
|
||||
case 5:
|
||||
suffix = 'q';
|
||||
break;
|
||||
default:
|
||||
return '?';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue