mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Fix addSoftcap not affecting currentAt or nextAt
This commit is contained in:
parent
880b977263
commit
c7705f467d
1 changed files with 2 additions and 0 deletions
|
@ -511,6 +511,8 @@ export function addSoftcap(
|
|||
): ScalingFunction {
|
||||
return {
|
||||
...scaling,
|
||||
currentAt: conversion => softcap(scaling.currentAt(conversion), unref(cap), Decimal.recip(unref(power))),
|
||||
nextAt: conversion => softcap(scaling.nextAt(conversion), unref(cap), Decimal.recip(unref(power))),
|
||||
currentGain: conversion =>
|
||||
softcap(scaling.currentGain(conversion), unref(cap), unref(power))
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue