Fix addSoftcap not affecting currentAt or nextAt

This commit is contained in:
Anthony Lawn 2022-12-12 14:18:08 -06:00
parent 880b977263
commit c7705f467d

View file

@ -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))
};