Overview
ThePrestigeService handles the prestige mechanic, which allows players to reset their progress in exchange for prestige cores. These cores are spent on permanent upgrades that persist across prestige cycles.
Dependencies
The service injects:Methods
prestige
- Calculate prestige cores earned using
calculatePrestigeCores() - Reset character stats (preserves prestige progress)
- Add earned prestige cores to character
- Increment prestige level by 1
The following values are preserved during prestige:
- Existing prestige cores (new cores are added)
- Prestige level (incremented)
- Prestige multipliers
- Gold (preserved, not reset)
calculatePrestigeCores
Stage requirements:
- Minimum stage 20 to earn any prestige cores
- Formula uses logarithmic scaling:
4 * log10(stage)
Prestige Core Earning Table
Here’s how many cores you earn at various stages (without multiplier upgrades):| Stage | Cores Earned | Formula |
|---|---|---|
| 19 | 0 | Below minimum |
| 20 | 5 | 4 * log10(20) |
| 25 | 5 | 4 * log10(25) |
| 30 | 5 | 4 * log10(30) |
| 50 | 6 | 4 * log10(50) |
| 75 | 7 | 4 * log10(75) |
| 100 | 8 | 4 * log10(100) |
| 150 | 8 | 4 * log10(150) |
| 200 | 9 | 4 * log10(200) |
| 500 | 10 | 4 * log10(500) |
| 1000 | 12 | 4 * log10(1000) |
The “Kaizen Mastery” prestige upgrade increases core gain by 10% per level, multiplying the base value.Example: At stage 100 with Kaizen Mastery level 3:
- Base cores: 8
- Multiplier: 1 + (0.1 × 3) = 1.3
- Total cores:
8 × 1.3 = 10.4→ 10 cores
Prestige Strategy
Optimal prestige timing:The logarithmic formula means diminishing returns as you progress. It’s generally more efficient to prestige more frequently rather than pushing to higher stages.Example:
- Stage 20 → 30: Gain 0 additional cores (still 5)
- Stage 100 → 200: Gain only 1 additional core (8 → 9)
Related Services
- CharacterService - Manages character state and reset logic
- PrestigeUpgradeService - Handles spending prestige cores on permanent upgrades
- GameStateService - Coordinates prestige with database persistence