From 572566c4c15197c291b6d3d3f2ae10deb9a41bbf Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 2 Apr 2023 22:03:58 -0500 Subject: [PATCH] Updated prestige layer to new conversion --- src/data/layers/prestige.tsx | 7 +++---- src/features/conversion.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index 4490ded..30fe99f 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -3,7 +3,7 @@ * @hidden */ import { main } from "data/projEntry"; -import { createCumulativeConversion, createPolynomialScaling } from "features/conversion"; +import { createCumulativeConversion } from "features/conversion"; import { jsx } from "features/feature"; import { createHotkey } from "features/hotkey"; import { createReset } from "features/reset"; @@ -23,10 +23,9 @@ const layer = createLayer(id, function (this: BaseLayer) { const points = createResource(0, "prestige points"); const conversion = createCumulativeConversion(() => ({ - scaling: createPolynomialScaling(10, 0.5), + formula: x => x.div(10).sqrt(), baseResource: main.points, - gainResource: points, - roundUpCost: true + gainResource: points })); const reset = createReset(() => ({ diff --git a/src/features/conversion.ts b/src/features/conversion.ts index 9eeb792..1ccf26b 100644 --- a/src/features/conversion.ts +++ b/src/features/conversion.ts @@ -92,6 +92,7 @@ export interface BaseConversion { export type Conversion = Replace< T & BaseConversion, { + formula: InvertibleFormula; currentGain: GetComputableTypeWithDefault>; actualGain: GetComputableTypeWithDefault>; currentAt: GetComputableTypeWithDefault>; @@ -105,7 +106,6 @@ export type Conversion = Replace< export type GenericConversion = Replace< Conversion, { - formula: InvertibleFormula; currentGain: ProcessedComputable; actualGain: ProcessedComputable; currentAt: ProcessedComputable;