mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
[bug] ssui refactor show correct tint (#6518)
* fix tint for too expensive pokemons * fix tint reset on filter
This commit is contained in:
parent
908e7545af
commit
33c8edf0c6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user