How to make an upgrade show when the other upgrade is buyed?

@RTLF2024 can you preformat this? plz…

It is very easy as if you’re basically making an upgrade show in other layer when buying other upgrade is purchased in the layer you’re in. You just have to use unlocked() {return hasUpgrade("<other layer id>",11} function to any of the upgrade.

Sorry if it is delayed.

<the layer>
upgrades: {
        11: {
            title: "A",
            description: "A",
            cost: new Decimal(1),
    
           
        },
  
        }
  
    }
<other layer>
upgrades: {
     
        11: {
            title: "B",
            description: "B",
            cost: new Decimal(1),
            unlocked() {return hasUpgrade("<other layer id>",11}
           
        },
  
    }