From e99dec44518722541365e7de1d72a02dbfcfd1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ricardo=20Fleury=20Oliveira?= Date: Sat, 18 May 2024 17:30:21 -0300 Subject: [PATCH] logic fix --- src/ui/starter-select-ui-handler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 09f4afaab36..5dd7e6e82ce 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -1314,8 +1314,12 @@ export default class StarterSelectUiHandler extends MessageUiHandler { // Set the candy colors this.candyUpgradeIcon[s].setTint(argbFromRgba(Utils.rgbHexToRgba(starterColors[speciesId][0]))); this.candyUpgradeOverlayIcon[s].setTint(argbFromRgba(Utils.rgbHexToRgba(starterColors[speciesId][1]))); + + if (this.scene.candyUpgradeIconsMode == 0) { // 'Off' mode + this.candyUpgradeIcon[s].setVisible(false); + this.candyUpgradeOverlayIcon[s].setVisible(false); - if (this.scene.candyUpgradeIconsMode == 1) { // 'Only Passive Unlocks' mode + } else if (this.scene.candyUpgradeIconsMode == 1) { // 'Only Passive Unlocks' mode this.candyUpgradeIcon[s].setVisible( slotVisible && ( this.scene.gameData.starterData[speciesId].candyCount >= getPassiveCandyCount(speciesStarters[speciesId]) &&