From b8367fdb8cd98067fc595add71ed75b6d7726d0f Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:45:56 -0500 Subject: [PATCH] Add necessary explicit types for TextStyle let vars --- src/ui/egg-gacha-ui-handler.ts | 2 +- src/ui/fight-ui-handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 504357f28af..e97fde94af1 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -106,7 +106,7 @@ export default class EggGachaUiHandler extends MessageUiHandler { const gachaInfoContainer = globalScene.add.container(160, 46); const currentLanguage = i18next.resolvedLanguage ?? "en"; - let gachaTextStyle = TextStyle.WINDOW_ALT; + let gachaTextStyle: TextStyle = TextStyle.WINDOW_ALT; let gachaX = 4; let gachaY = 0; let pokemonIconX = -20; diff --git a/src/ui/fight-ui-handler.ts b/src/ui/fight-ui-handler.ts index 07d88540f2d..5d04fc330d2 100644 --- a/src/ui/fight-ui-handler.ts +++ b/src/ui/fight-ui-handler.ts @@ -279,7 +279,7 @@ export default class FightUiHandler extends UiHandler implements InfoToggle { const ppPercentLeft = pp / maxPP; //** Determines TextStyle according to percentage of PP remaining */ - let ppColorStyle = TextStyle.MOVE_PP_FULL; + let ppColorStyle: TextStyle = TextStyle.MOVE_PP_FULL; if (ppPercentLeft > 0.25 && ppPercentLeft <= 0.5) { ppColorStyle = TextStyle.MOVE_PP_HALF_FULL; } else if (ppPercentLeft > 0 && ppPercentLeft <= 0.25) {