Skip to content

Commit 9973531

Browse files
authored
use destructuring on score
1 parent cf190e0 commit 9973531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/battle-scene.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,8 +2009,9 @@ export class BattleScene extends SceneBase {
20092009
}
20102010

20112011
updateScoreText(): void {
2012+
const { score } = this;
20122013
this.scoreText // formatting
2013-
.setText(i18next.t("battleScene:score", { score: this.score }))
2014+
.setText(i18next.t("battleScene:score", { score }))
20142015
.setVisible(this.gameMode.isDaily);
20152016
}
20162017

0 commit comments

Comments
 (0)