From 1b765e8b50082e0278d5747e5930e74d19c41883 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 5 Mar 2022 22:49:27 -0600 Subject: [PATCH] Corrected exponential scaling to polynomial --- src/data/layers/prestige.tsx | 4 ++-- src/features/conversion.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index d228e7d..3b8ca55 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -1,5 +1,5 @@ import { main } from "data/projEntry"; -import { createCumulativeConversion, createExponentialScaling } from "features/conversion"; +import { createCumulativeConversion, createPolynomialScaling } from "features/conversion"; import { jsx } from "features/feature"; import { createReset } from "features/reset"; import MainDisplay from "features/resources/MainDisplay.vue"; @@ -16,7 +16,7 @@ const layer = createLayer(() => { const points = createResource(0, "prestige points"); const conversion = createCumulativeConversion(() => ({ - scaling: createExponentialScaling(10, 0.5), + scaling: createPolynomialScaling(10, 0.5), baseResource: main.points, gainResource: points, roundUpCost: true diff --git a/src/features/conversion.ts b/src/features/conversion.ts index 3b2ed83..cfa7ee5 100644 --- a/src/features/conversion.ts +++ b/src/features/conversion.ts @@ -132,7 +132,7 @@ export function createLinearScaling( // Gain formula is (baseResource / base) ^ exponent // e.g. if exponent is 0.5 and base is 10, then having 10 points makes gain 1, and 40 points is 2 -export function createExponentialScaling( +export function createPolynomialScaling( base: DecimalSource | Ref, exponent: DecimalSource | Ref ): ScalingFunction {