forked from profectus/Profectus
Fix addSoftcap not affecting currentAt or nextAt
This commit is contained in:
parent
b8e498250b
commit
97faa20056
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,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