Updated prestige layer to new conversion

This commit is contained in:
thepaperpilot 2023-04-02 22:03:58 -05:00
parent f717fe8db2
commit 572566c4c1
2 changed files with 4 additions and 5 deletions

View file

@ -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<DecimalSource>(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(() => ({

View file

@ -92,6 +92,7 @@ export interface BaseConversion {
export type Conversion<T extends ConversionOptions> = Replace<
T & BaseConversion,
{
formula: InvertibleFormula;
currentGain: GetComputableTypeWithDefault<T["currentGain"], Ref<DecimalSource>>;
actualGain: GetComputableTypeWithDefault<T["actualGain"], Ref<DecimalSource>>;
currentAt: GetComputableTypeWithDefault<T["currentAt"], Ref<DecimalSource>>;
@ -105,7 +106,6 @@ export type Conversion<T extends ConversionOptions> = Replace<
export type GenericConversion = Replace<
Conversion<ConversionOptions>,
{
formula: InvertibleFormula;
currentGain: ProcessedComputable<DecimalSource>;
actualGain: ProcessedComputable<DecimalSource>;
currentAt: ProcessedComputable<DecimalSource>;