Test changes to change variant label color based on Tint
This commit is contained in:
parent
5bdc6537e0
commit
0ad0f62930
|
@ -1446,6 +1446,16 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
}
|
||||
} while (newVariant !== props.variant);
|
||||
this.setSpeciesDetails(this.lastSpecies, undefined, undefined, undefined, newVariant, undefined, undefined);
|
||||
|
||||
// Get the luck value
|
||||
const luck = this.scene.gameData.getDexAttrLuck(this.speciesStarterDexEntry.caughtAttr);
|
||||
|
||||
// Get the tint based on the luck value
|
||||
const tint = getVariantTint(Math.min(luck - 1, 2) as Variant);
|
||||
|
||||
// Set the color of variantLabel to the luck tint
|
||||
this.variantLabel.setTint(tint);
|
||||
|
||||
success = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue