fixed news
This commit is contained in:
@@ -35,6 +35,11 @@ export function UpgradeShop({ gameState, totalClicks, onPurchase }: UpgradeShopP
|
||||
const cost = gameState.upgrades[upgrade.id]?.cost || upgrade.baseCost;
|
||||
const canAfford = totalClicks >= cost; // Changed from userClicks
|
||||
|
||||
// If it's a one-time upgrade and already owned, don't display it
|
||||
if (upgrade.oneTime && owned > 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let description = upgrade.description;
|
||||
|
||||
// Custom description for Friend Boost upgrade
|
||||
|
||||
Reference in New Issue
Block a user