From cb8390fc70186820c682b124cf4d85912c97f927 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Fri, 6 Jun 2025 11:14:07 -0500 Subject: [PATCH] Use phaser object chaining methods --- src/ui/egg-gacha-ui-handler.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 286956884b7..285ef96e20a 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -203,13 +203,14 @@ export default class EggGachaUiHandler extends MessageUiHandler { // Expiration timer for the legendary gacha if (gachaType === GachaType.LEGENDARY) { - this.legendaryExpiration.setText(this.getLegendaryGachaTimeLeft()); - this.legendaryExpiration.setFontSize("64px"); - this.legendaryExpiration.setPositionRelative( - gacha, - gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3, - gacha.height / 2 + 12.5, - ); + this.legendaryExpiration + .setText(this.getLegendaryGachaTimeLeft()) + .setFontSize("64px") + .setPositionRelative( + gacha, + gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3, + gacha.height / 2 + 12.5, + ); gachaContainer.add(this.legendaryExpiration); }