[bug] ssui refactor show correct tint (#6518)

* fix tint for too expensive pokemons

* fix tint reset on filter
This commit is contained in:
Fabi 2025-09-08 18:01:38 +02:00 committed by GitHub
parent 908e7545af
commit 33c8edf0c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2816,6 +2816,7 @@ export class StarterSelectUiHandler extends MessageUiHandler {
});
this.updateScroll();
this.tryUpdateValue();
};
updateScroll = () => {
@ -3389,7 +3390,9 @@ export class StarterSelectUiHandler extends MessageUiHandler {
const remainValue = valueLimit - newValue;
for (let s = 0; s < this.starterContainers.length; s++) {
/** Cost of pokemon species */
const speciesStarterValue = globalScene.gameData.getSpeciesStarterValue(this.allStarterSpecies[s].speciesId);
const speciesStarterValue = globalScene.gameData.getSpeciesStarterValue(
this.starterContainers[s].species.speciesId,
);
/** {@linkcode Phaser.GameObjects.Sprite} object of Pokémon for setting the alpha value */
const speciesSprite = this.starterContainers[s].icon;