fix(math-helpers): diminishingReturns parameter logic

This commit is contained in:
Sabe Jones
2015-11-17 16:00:18 -05:00
parent 4bf20959dd
commit 7d2643063f

View File

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