fixed news

This commit is contained in:
2025-08-04 00:10:03 +05:30
parent 511bbb87b4
commit b6041e82bb
7 changed files with 233 additions and 25 deletions

View File

@@ -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