GetRootSpecies rather than colors of current Species

pull/463/head
Akuma-Reiki 2024-05-04 17:27:29 -05:00
parent 31007c95d9
commit ad3a226feb
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ export default class SummaryUiHandler extends UiHandler {
this.shinyOverlay.setVisible(this.pokemon.isShiny()); this.shinyOverlay.setVisible(this.pokemon.isShiny());
const colorScheme = starterColors[this.pokemon.species.speciesId]; const colorScheme = starterColors[this.pokemon.species.getRootSpeciesId()];
this.candyIcon.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[0]))); this.candyIcon.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[0])));
this.candyOverlay.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[1]))); this.candyOverlay.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[1])));
@ -278,7 +278,7 @@ export default class SummaryUiHandler extends UiHandler {
if (!currentFriendship || currentFriendship === undefined) if (!currentFriendship || currentFriendship === undefined)
currentFriendship = 0; currentFriendship = 0;
const friendshipCap = getStarterValueFriendshipCap(speciesStarters[this.pokemon.species.speciesId]); const friendshipCap = getStarterValueFriendshipCap(speciesStarters[this.pokemon.species.getRootSpeciesId()]);
const candyCropY = 16 - (16 * (currentFriendship / friendshipCap)); const candyCropY = 16 - (16 * (currentFriendship / friendshipCap));
if (this.candyShadow.visible) { if (this.candyShadow.visible) {