MassiveCraft/Factions — pull request #61 by sp1ky (2011-11-28 23:39:26+00:00)
Title: Power regeneration rate increase as power decreases

We have a problem on our server wherein people who have been stomped to max negative power end up AFKing for extended periods of time (only to die again) or just leave the server. While increasing the powerPerMinute conf would solve this problem, it would also mean deaths above 0 power would go unpunished.

This solution allows us the best of both worlds and scales well with custom power values. e.g.
powerPerMin = 0.25
scaleNegativeDivisor = 40.0

Power
powerPerMinute

-10
1.0405

-5
0.5295

0
0.25