Use phaser object chaining methods

This commit is contained in:
Sirz Benjie 2025-06-06 11:14:07 -05:00
parent 6331fc958c
commit cb8390fc70
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -203,13 +203,14 @@ export default class EggGachaUiHandler extends MessageUiHandler {
// Expiration timer for the legendary gacha // Expiration timer for the legendary gacha
if (gachaType === GachaType.LEGENDARY) { if (gachaType === GachaType.LEGENDARY) {
this.legendaryExpiration.setText(this.getLegendaryGachaTimeLeft()); this.legendaryExpiration
this.legendaryExpiration.setFontSize("64px"); .setText(this.getLegendaryGachaTimeLeft())
this.legendaryExpiration.setPositionRelative( .setFontSize("64px")
gacha, .setPositionRelative(
gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3, gacha,
gacha.height / 2 + 12.5, gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3,
); gacha.height / 2 + 12.5,
);
gachaContainer.add(this.legendaryExpiration); gachaContainer.add(this.legendaryExpiration);
} }