feat: prestige threshold scales quadratically with prestige count
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
threshold = 1M × (1 + 0.1 × prestigeCount)² × (1 - treeReduction) P0=1M, P5=2.25M, P10=4M, P20=9M, P50=36M Tree reduction still applies on top. Forces strategic prestige timing and gives the idle loop longevity.
This commit is contained in:
@@ -683,7 +683,8 @@ export function buyGenerator(state: GameState, genId: string): GameState | null
|
|||||||
|
|
||||||
export function getPrestigeThreshold(state: GameState): number {
|
export function getPrestigeThreshold(state: GameState): number {
|
||||||
const reduction = getPrestigeThresholdReduction(state.evolutionTree);
|
const reduction = getPrestigeThresholdReduction(state.evolutionTree);
|
||||||
return Math.floor(BASE_PRESTIGE_THRESHOLD * (1 - reduction));
|
const scaling = Math.pow(1 + 0.1 * state.prestigeCount, 2);
|
||||||
|
return Math.floor(BASE_PRESTIGE_THRESHOLD * scaling * (1 - reduction));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function canPrestige(state: GameState): boolean {
|
export function canPrestige(state: GameState): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user