logic fix

This commit is contained in:
José Ricardo Fleury Oliveira 2024-05-18 17:30:21 -03:00
parent d748230c2e
commit e99dec4451

View File

@ -1315,7 +1315,11 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
this.candyUpgradeIcon[s].setTint(argbFromRgba(Utils.rgbHexToRgba(starterColors[speciesId][0])));
this.candyUpgradeOverlayIcon[s].setTint(argbFromRgba(Utils.rgbHexToRgba(starterColors[speciesId][1])));
if (this.scene.candyUpgradeIconsMode == 1) { // 'Only Passive Unlocks' mode
if (this.scene.candyUpgradeIconsMode == 0) { // 'Off' mode
this.candyUpgradeIcon[s].setVisible(false);
this.candyUpgradeOverlayIcon[s].setVisible(false);
} else if (this.scene.candyUpgradeIconsMode == 1) { // 'Only Passive Unlocks' mode
this.candyUpgradeIcon[s].setVisible(
slotVisible && (
this.scene.gameData.starterData[speciesId].candyCount >= getPassiveCandyCount(speciesStarters[speciesId]) &&