Corrected exponential scaling to polynomial

This commit is contained in:
thepaperpilot 2022-03-05 22:49:27 -06:00
parent 6f4afd41ce
commit 1b765e8b50
2 changed files with 3 additions and 3 deletions

View file

@ -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<DecimalSource>(0, "prestige points");
const conversion = createCumulativeConversion(() => ({
scaling: createExponentialScaling(10, 0.5),
scaling: createPolynomialScaling(10, 0.5),
baseResource: main.points,
gainResource: points,
roundUpCost: true

View file

@ -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<DecimalSource>,
exponent: DecimalSource | Ref<DecimalSource>
): ScalingFunction {