Files
elysium/apps/api/src/data/upgrades.ts
T
hikari d1d1f70c75 chore: fix lint, ensure full CI pipeline passes, add verify checklist
- Fix strict-boolean-expressions in 7 route files (runtime body validation)
- Fix no-unnecessary-condition in profile.ts and offlineProgress.ts (defensive null checks)
- Extend v8 ignore next-N counts in game.ts to reach 100% coverage
- Add CI requirements to CLAUDE.md (lint + build + test must pass before commit)
- Add manual verification checklist (verify.md)
- Remove progress.md
2026-03-08 13:59:38 -07:00

771 lines
21 KiB
TypeScript

/**
* @file Game data definitions.
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
/* eslint-disable max-lines -- Data file */
/* eslint-disable stylistic/max-len -- Data content */
import type { Upgrade } from "@elysium/types";
export const defaultUpgrades: Array<Upgrade> = [
// ── Click upgrades ────────────────────────────────────────────────────────
{
costCrystals: 0,
costEssence: 0,
costGold: 100,
description: "Your strikes find weak points. Doubles click power.",
id: "click_1",
multiplier: 2,
name: "Keen Eye",
purchased: false,
target: "click",
unlocked: true,
},
{
costCrystals: 0,
costEssence: 0,
costGold: 1000,
description:
"Years of combat sharpen your instincts. Doubles click power again.",
id: "click_2",
multiplier: 2,
name: "Battle Hardened",
purchased: false,
target: "click",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 10,
costGold: 50_000,
description: "A weapon of ancient power. Triples click power.",
id: "click_3",
multiplier: 3,
name: "Legendary Weapon",
purchased: false,
target: "click",
unlocked: false,
},
{
costCrystals: 100,
costEssence: 0,
costGold: 0,
description:
"Channel crystallised power into every strike. Doubles click power.",
id: "crystal_focus",
multiplier: 2,
name: "Crystal Focus",
purchased: false,
target: "click",
unlocked: true,
},
// ── Global gold upgrades ──────────────────────────────────────────────────
{
costCrystals: 0,
costEssence: 0,
costGold: 500,
description: "Formalising the guild structure increases all income by 25%.",
id: "global_1",
multiplier: 1.25,
name: "Guild Charter",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 5,
costGold: 10_000,
description: "Trade routes boost all income by 50%.",
id: "global_2",
multiplier: 1.5,
name: "Merchant Alliance",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 100,
costGold: 1_000_000,
description: "The king himself backs your guild. All income doubled.",
id: "global_3",
multiplier: 2,
name: "Royal Patronage",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 50,
costGold: 50_000,
description:
"Forge partnerships with mage guilds across the realm. All income +50%.",
id: "essence_guild",
multiplier: 1.5,
name: "Essence Guild",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 250,
costGold: 500_000,
description:
"A council of the realm's greatest minds organises your operations. All income doubled.",
id: "grand_council",
multiplier: 2,
name: "Grand Council",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 250,
costEssence: 0,
costGold: 0,
description:
"Align crystalline frequencies across your guild. All income +50%.",
id: "crystal_resonance",
multiplier: 1.5,
name: "Crystal Resonance",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 600,
costEssence: 0,
costGold: 0,
description: "Master the art of crystal amplification. All income doubled.",
id: "crystal_mastery",
multiplier: 2,
name: "Crystal Mastery",
purchased: false,
target: "global",
unlocked: false,
},
// ── Adventurer-specific upgrades ──────────────────────────────────────────
{
adventurerId: "peasant",
costCrystals: 0,
costEssence: 0,
costGold: 200,
description: "Peasants work twice as hard with proper equipment.",
id: "peasant_1",
multiplier: 2,
name: "Better Tools",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "militia",
costCrystals: 0,
costEssence: 0,
costGold: 1000,
description: "Formal training doubles militia effectiveness.",
id: "militia_1",
multiplier: 2,
name: "Militia Training",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "apprentice",
costCrystals: 0,
costEssence: 2,
costGold: 5000,
description: "Ancient books of magic double mage output.",
id: "mage_1",
multiplier: 2,
name: "Arcane Tomes",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "acolyte",
costCrystals: 0,
costEssence: 3,
costGold: 8000,
description: "Sacred ceremonies double the output of your clerics.",
id: "cleric_1",
multiplier: 2,
name: "Holy Rites",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "ranger",
costCrystals: 0,
costEssence: 5,
costGold: 15_000,
description: "Advanced scouting techniques double ranger effectiveness.",
id: "scout_1",
multiplier: 2,
name: "Stealth Training",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "knight",
costCrystals: 0,
costEssence: 10,
costGold: 50_000,
description:
"Superior forging techniques double the output of your knights.",
id: "knight_1",
multiplier: 2,
name: "Tempered Steel",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "archmage",
costCrystals: 0,
costEssence: 75,
costGold: 100_000,
description: "Tap into the world's leylines to double archmage output.",
id: "archmage_1",
multiplier: 2,
name: "Leyline Binding",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "paladin",
costCrystals: 0,
costEssence: 150,
costGold: 200_000,
description:
"Divine blessings from the gods themselves double paladin output.",
id: "paladin_1",
multiplier: 2,
name: "Holy Vanguard",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "dragon_rider",
costCrystals: 0,
costEssence: 200,
costGold: 500_000,
description:
"The unbreakable bond between rider and dragon doubles their combined output.",
id: "dragon_rider_1",
multiplier: 2,
name: "Bond of Wings",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "shadow_assassin",
costCrystals: 0,
costEssence: 50,
costGold: 0,
description: "Mastery of the shadow arts doubles assassin effectiveness.",
id: "shadow_assassin_1",
multiplier: 2,
name: "Shadow Arts",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "arcane_scholar",
costCrystals: 0,
costEssence: 150,
costGold: 0,
description: "Access to forbidden libraries doubles scholar output.",
id: "arcane_scholar_1",
multiplier: 2,
name: "Ancient Tomes",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "void_walker",
costCrystals: 0,
costEssence: 300,
costGold: 0,
description:
"Walking through the void itself doubles the output of your void walkers.",
id: "void_walker_1",
multiplier: 2,
name: "Void Step",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "celestial_guard",
costCrystals: 0,
costEssence: 750,
costGold: 0,
description:
"A blessing from the celestials themselves doubles guard output.",
id: "celestial_guard_1",
multiplier: 2,
name: "Divine Ward",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "divine_champion",
costCrystals: 0,
costEssence: 2000,
costGold: 0,
description: "An unbreakable oath to the divine doubles champion output.",
id: "divine_champion_1",
multiplier: 2,
name: "Champion's Oath",
purchased: false,
target: "adventurer",
unlocked: false,
},
// ── Click upgrades (new zones) ────────────────────────────────────────────
{
costCrystals: 0,
costEssence: 5_000_000,
costGold: 100_000_000,
description:
"Blessed by the celestials themselves. Click power quadrupled.",
id: "click_4",
multiplier: 4,
name: "Celestial Strike",
purchased: false,
target: "click",
unlocked: false,
},
{
costCrystals: 10_000_000,
costEssence: 0,
costGold: 0,
description:
"A strike that burns with infernal fire. Click power quintupled.",
id: "click_5",
multiplier: 5,
name: "Infernal Slash",
purchased: false,
target: "click",
unlocked: false,
},
// ── Global upgrades (new zones) ───────────────────────────────────────────
{
costCrystals: 0,
costEssence: 10_000_000,
costGold: 500_000_000,
description:
"A covenant with celestial forces multiplies your guild's potential. All income doubled.",
id: "divine_covenant",
multiplier: 2,
name: "Divine Covenant",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 50_000_000,
costGold: 100_000_000_000,
description:
"The empire formally sponsors your guild at the highest level. All income x2.5.",
id: "global_4",
multiplier: 2.5,
name: "Imperial Decree",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 2_000_000,
costEssence: 0,
costGold: 0,
description:
"A pact with the denizens of the deepest trench. All income doubled.",
id: "abyssal_pact",
multiplier: 2,
name: "Abyssal Pact",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 100_000_000_000,
costGold: 50_000_000_000_000,
description:
"The celestials themselves decree your guild's dominion over all realms. All income x3.",
id: "celestial_mandate",
multiplier: 3,
name: "Celestial Mandate",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 10_000_000,
costEssence: 0,
costGold: 0,
description: "Transcend mortal limits through void energy. All income x3.",
id: "void_ascendancy",
multiplier: 3,
name: "Void Ascendancy",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 0,
costEssence: 500_000_000_000,
costGold: 1_000_000_000_000_000,
description:
"Perfect harmony with celestial forces amplifies all output. All income x2.5.",
id: "divine_harmony",
multiplier: 2.5,
name: "Divine Harmony",
purchased: false,
target: "global",
unlocked: false,
},
{
costCrystals: 50_000_000,
costEssence: 0,
costGold: 0,
description: "Channel infernal rage into production. All income doubled.",
id: "infernal_fury",
multiplier: 2,
name: "Infernal Fury",
purchased: false,
target: "global",
unlocked: false,
},
// ── Purchasable essence/crystal sink upgrades ─────────────────────────────
{
costCrystals: 0,
costEssence: 5_000_000,
costGold: 0,
description: "Tap into a vast network of essence flows. All income +50%.",
id: "essence_nexus",
multiplier: 1.5,
name: "Essence Nexus",
purchased: false,
target: "global",
unlocked: true,
},
{
costCrystals: 0,
costEssence: 50_000_000,
costGold: 0,
description:
"Flood your guild's operations with raw essence power. All income doubled.",
id: "essence_overdrive",
multiplier: 2,
name: "Essence Overdrive",
purchased: false,
target: "global",
unlocked: true,
},
{
costCrystals: 0,
costEssence: 500_000_000,
costGold: 0,
description: "Harness the oldest essence in existence. All income x3.",
id: "primal_essence",
multiplier: 3,
name: "Primal Essence",
purchased: false,
target: "global",
unlocked: true,
},
{
costCrystals: 50_000_000,
costEssence: 0,
costGold: 0,
description:
"Push crystal resonance beyond its limits. All income doubled.",
id: "crystal_overdrive",
multiplier: 2,
name: "Crystal Overdrive",
purchased: false,
target: "global",
unlocked: true,
},
{
costCrystals: 200_000_000,
costEssence: 0,
costGold: 0,
description: "Forge an eternal pact that triples all income permanently.",
id: "eternal_bond",
multiplier: 3,
name: "Eternal Bond",
purchased: false,
target: "global",
unlocked: true,
},
{
costCrystals: 1_000_000_000,
costEssence: 0,
costGold: 0,
description:
"The supreme decree from the Eternal Throne itself. All income x5.",
id: "apex_mandate",
multiplier: 5,
name: "Apex Mandate",
purchased: false,
target: "global",
unlocked: true,
},
// ── New adventurer upgrades ───────────────────────────────────────────────
{
adventurerId: "seraph_knight",
costCrystals: 0,
costEssence: 10_000_000,
costGold: 0,
description:
"Seraph knights gain divine flight, doubling their effectiveness.",
id: "seraph_knight_1",
multiplier: 2,
name: "Seraphic Wings",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "abyss_diver",
costCrystals: 0,
costEssence: 25_000_000,
costGold: 0,
description:
"Full adaptation to abyssal pressure doubles diver effectiveness.",
id: "abyss_diver_1",
multiplier: 2,
name: "Pressure Adaptation",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "infernal_warden",
costCrystals: 2_000_000,
costEssence: 0,
costGold: 0,
description:
"Tempered in hellfire itself, warden effectiveness is doubled.",
id: "infernal_warden_1",
multiplier: 2,
name: "Infernal Tempering",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "crystal_sage",
costCrystals: 5_000_000,
costEssence: 0,
costGold: 0,
description:
"Complete mastery of prismatic crystallomancy doubles sage output.",
id: "crystal_sage_1",
multiplier: 2,
name: "Prismatic Mastery",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "void_sentinel",
costCrystals: 15_000_000,
costEssence: 0,
costGold: 0,
description:
"Perfect resonance with the void doubles sentinel effectiveness.",
id: "void_sentinel_1",
multiplier: 2,
name: "Void Resonance",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "eternal_champion",
costCrystals: 50_000_000,
costEssence: 0,
costGold: 0,
description: "An oath that transcends time itself doubles champion output.",
id: "eternal_champion_1",
multiplier: 2,
name: "Eternal Oath",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "aether_weaver",
costCrystals: 200_000_000,
costEssence: 0,
costGold: 0,
description:
"Complete mastery of aetheric forces doubles the weaver's output.",
id: "aether_weaver_1",
multiplier: 2,
name: "Aetheric Mastery",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "titan_warrior",
costCrystals: 700_000_000,
costEssence: 0,
costGold: 0,
description:
"The fury of a titan unleashed — warrior effectiveness doubled.",
id: "titan_warrior_1",
multiplier: 2,
name: "Titanic Fury",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "nexus_sage",
costCrystals: 2_500_000_000,
costEssence: 0,
costGold: 0,
description:
"The sage converges all ley lines through their body — output doubled.",
id: "nexus_sage_1",
multiplier: 2,
name: "Nexus Convergence",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "cosmos_knight",
costCrystals: 9_000_000_000,
costEssence: 0,
costGold: 0,
description:
"Tempered by the heat of dying stars, the knight's effectiveness is doubled.",
id: "cosmos_knight_1",
multiplier: 2,
name: "Cosmic Tempering",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "astral_sovereign",
costCrystals: 3e10,
costEssence: 0,
costGold: 0,
description:
"Ascension to true sovereignty over the astral plane doubles output.",
id: "astral_sovereign_1",
multiplier: 2,
name: "Sovereign Ascension",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "primordial_mage",
costCrystals: 1e11,
costEssence: 0,
costGold: 0,
description:
"Awakening of the mage's primordial heritage doubles their power.",
id: "primordial_mage_1",
multiplier: 2,
name: "Primordial Awakening",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "reality_warden",
costCrystals: 4e11,
costEssence: 0,
costGold: 0,
description:
"The warden binds themselves to the structure of reality — effectiveness doubled.",
id: "reality_warden_1",
multiplier: 2,
name: "Reality Binding",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "infinity_ranger",
costCrystals: 1.5e12,
costEssence: 0,
costGold: 0,
description:
"The ranger's arrows travel through infinity itself — output doubled.",
id: "infinity_ranger_1",
multiplier: 2,
name: "Infinite Aim",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "oblivion_paladin",
costCrystals: 5e12,
costEssence: 0,
costGold: 0,
description:
"Consecrated by the void between all things — paladin effectiveness doubled.",
id: "oblivion_paladin_1",
multiplier: 2,
name: "Oblivion Consecration",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "transcendent_rogue",
costCrystals: 2e13,
costEssence: 0,
costGold: 0,
description:
"The rogue becomes one with the space between states — effectiveness doubled.",
id: "transcendent_rogue_1",
multiplier: 2,
name: "Transcendent Shadow",
purchased: false,
target: "adventurer",
unlocked: false,
},
{
adventurerId: "omniversal_champion",
costCrystals: 8e13,
costEssence: 0,
costGold: 0,
description:
"Dominion over all versions of all universes — champion output doubled.",
id: "omniversal_champion_1",
multiplier: 2,
name: "Omniversal Dominion",
purchased: false,
target: "adventurer",
unlocked: false,
},
];