- Recreated full game foundation from previous session
- Added Statistics tab with detailed game metrics:
* Total Stardust Earned
* Current Production Rate (✨/sec)
* Total Clicks
* Click Power
* Time Played (auto-formatted)
* Buildings Owned
* Upgrades Purchased
* Achievements Unlocked
* Game Progress bar
- Fixed global production bonus calculation in game.js
- Added responsive CSS for stats panel
Files added: js/stats.js, dev-journal.md, README.md, JOURNAL.md
174 lines
4.4 KiB
JavaScript
174 lines
4.4 KiB
JavaScript
/**
|
|
* Cosmic Garden - Upgrade Definitions
|
|
* One-time purchases that boost production
|
|
*/
|
|
|
|
const UPGRADES = {
|
|
// Click upgrades
|
|
ironFingers: {
|
|
id: 'ironFingers',
|
|
name: 'Iron Fingers',
|
|
description: 'Click power x2',
|
|
icon: '👆',
|
|
cost: 100,
|
|
clickPowerBonus: 2,
|
|
requirements: {}
|
|
},
|
|
|
|
cosmicTouch: {
|
|
id: 'cosmicTouch',
|
|
name: 'Cosmic Touch',
|
|
description: 'Click power x3',
|
|
icon: '✨',
|
|
cost: 1000,
|
|
clickPowerBonus: 3,
|
|
requirements: { starSprout: 10 }
|
|
},
|
|
|
|
stellarHands: {
|
|
id: 'stellarHands',
|
|
name: 'Stellar Hands',
|
|
description: 'Click power x5',
|
|
icon: '🌟',
|
|
cost: 10000,
|
|
clickPowerBonus: 5,
|
|
requirements: { moonBloom: 10 }
|
|
},
|
|
|
|
// Building upgrades - Star Sprout
|
|
sproutBoost1: {
|
|
id: 'sproutBoost1',
|
|
name: 'Sprout Nutrition',
|
|
description: 'Star Sprouts produce x2',
|
|
icon: '🌱',
|
|
cost: 500,
|
|
buildingBonus: { starSprout: 2 },
|
|
requirements: { starSprout: 1 }
|
|
},
|
|
|
|
sproutBoost2: {
|
|
id: 'sproutBoost2',
|
|
name: 'Star Fertilizer',
|
|
description: 'Star Sprouts produce x3',
|
|
icon: '⭐',
|
|
cost: 5000,
|
|
buildingBonus: { starSprout: 3 },
|
|
requirements: { starSprout: 25 }
|
|
},
|
|
|
|
// Building upgrades - Moon Bloom
|
|
bloomBoost1: {
|
|
id: 'bloomBoost1',
|
|
name: 'Lunar Energy',
|
|
description: 'Moon Blooms produce x2',
|
|
icon: '🌙',
|
|
cost: 2000,
|
|
buildingBonus: { moonBloom: 2 },
|
|
requirements: { moonBloom: 1 }
|
|
},
|
|
|
|
bloomBoost2: {
|
|
id: 'bloomBoost2',
|
|
name: 'Full Moon Ritual',
|
|
description: 'Moon Blooms produce x3',
|
|
icon: '🌕',
|
|
cost: 20000,
|
|
buildingBonus: { moonBloom: 3 },
|
|
requirements: { moonBloom: 25 }
|
|
},
|
|
|
|
// Building upgrades - Solar Leaf
|
|
leafBoost1: {
|
|
id: 'leafBoost1',
|
|
name: 'Photosynthesis Plus',
|
|
description: 'Solar Leaves produce x2',
|
|
icon: '☀️',
|
|
cost: 10000,
|
|
buildingBonus: { solarLeaf: 2 },
|
|
requirements: { solarLeaf: 1 }
|
|
},
|
|
|
|
leafBoost2: {
|
|
id: 'leafBoost2',
|
|
name: 'Solar Flare',
|
|
description: 'Solar Leaves produce x3',
|
|
icon: '💥',
|
|
cost: 100000,
|
|
buildingBonus: { solarLeaf: 3 },
|
|
requirements: { solarLeaf: 25 }
|
|
},
|
|
|
|
// Building upgrades - Nebula Vine
|
|
vineBoost1: {
|
|
id: 'vineBoost1',
|
|
name: 'Cosmic Compost',
|
|
description: 'Nebula Vines produce x2',
|
|
icon: '🌿',
|
|
cost: 50000,
|
|
buildingBonus: { nebulaVine: 2 },
|
|
requirements: { nebulaVine: 1 }
|
|
},
|
|
|
|
vineBoost2: {
|
|
id: 'vineBoost2',
|
|
name: 'Dust Storm',
|
|
description: 'Nebula Vines produce x3',
|
|
icon: '🌪️',
|
|
cost: 500000,
|
|
buildingBonus: { nebulaVine: 3 },
|
|
requirements: { nebulaVine: 25 }
|
|
},
|
|
|
|
// Building upgrades - Comet Rose
|
|
roseBoost1: {
|
|
id: 'roseBoost1',
|
|
name: 'Comet Trail',
|
|
description: 'Comet Roses produce x2',
|
|
icon: '🌹',
|
|
cost: 250000,
|
|
buildingBonus: { cometRose: 2 },
|
|
requirements: { cometRose: 1 }
|
|
},
|
|
|
|
roseBoost2: {
|
|
id: 'roseBoost2',
|
|
name: 'Perihelion Bloom',
|
|
description: 'Comet Roses produce x3',
|
|
icon: '☄️',
|
|
cost: 2500000,
|
|
buildingBonus: { cometRose: 3 },
|
|
requirements: { cometRose: 25 }
|
|
},
|
|
|
|
// Global upgrades
|
|
cosmicGarden1: {
|
|
id: 'cosmicGarden1',
|
|
name: 'Cosmic Garden',
|
|
description: 'All production x1.5',
|
|
icon: '🌌',
|
|
cost: 1000000,
|
|
globalBonus: 1.5,
|
|
requirements: { starSprout: 50, moonBloom: 25, solarLeaf: 10 }
|
|
},
|
|
|
|
stellarNursery: {
|
|
id: 'stellarNursery',
|
|
name: 'Stellar Nursery',
|
|
description: 'All production x2',
|
|
icon: '🌟',
|
|
cost: 10000000,
|
|
globalBonus: 2,
|
|
requirements: { nebulaVine: 25, cometRose: 10 }
|
|
},
|
|
|
|
galacticBotanist: {
|
|
id: 'galacticBotanist',
|
|
name: 'Galactic Botanist',
|
|
description: 'All production x3',
|
|
icon: '👨🌾',
|
|
cost: 100000000,
|
|
globalBonus: 3,
|
|
requirements: { pulsarPalm: 10, blackholeOrchid: 5 }
|
|
}
|
|
};
|