mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 00:12:17 +00:00
fix(math-helpers): diminishingReturns parameter logic
This commit is contained in:
parent
4bf20959dd
commit
7d2643063f
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ function tnl (lvl) {
|
|||
*/
|
||||
|
||||
function diminishingReturns (bonus, max, halfway) {
|
||||
if (halfway === null) {
|
||||
if (!halfway) {
|
||||
halfway = max / 2;
|
||||
}
|
||||
return max * (bonus / (bonus + halfway));
|
||||
|
|
|
|||
Loading…
Reference in a new issue