The CalcDiminishingReturns function doesn't actually use the math it does:
function CalcDiminishingReturns(current, basedelta)
local dampen = 3 * basedelta / (current + 3 * basedelta)
local dcharge = dampen * basedelta * .5 * (1 + math.random() * dampen)
return current + basedelta
end
I'm pretty sure "basedelta" at the end there should be "dcharge".
Steps to Reproduce
The easiest way to check it is to just use CalcDiminishingReturns from the console.
The easiest way to check it is to just use CalcDiminishingReturns from the console.
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now