Add necessary explicit types for TextStyle let vars

This commit is contained in:
Sirz Benjie 2025-06-06 14:45:56 -05:00
parent 6030dd6462
commit b8367fdb8c
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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) {