时间(time)在函数中，从0开始，每过5秒增加1，30秒后，每过10秒增加1，最大提至9（0≤time≤9）(excluding the Shiny Stone buff where it can raise till 38). That means the this part is 0 for at least 5 seconds
玩家每秒会恢复HR点生命值（Shiny Stone，Rapid Healing两个特殊buff不算在内）。这意味着当HR=0.5时，玩家每2秒会恢复1点生命值。HR=5时每1秒恢复5点生命值。
The player has these health regeneration stats:
The base Regeneration Rate (R) is mainly determined by the Regeneration Time (RT), player's max Health (mHP), and whether player is standing or moving.
First, The RT is converted to an Effective Regeneration Time (eRT).
Here is an illustration of the relationship between RT and eRT:
Then, the base Regeneration Rate
R = (mHP / 400 * 0.85 + 0.15) * eRT
Finally, it will be rounded to the nearest whole number.
So, for a brief conclusion: the longer player not getting hurt, the higher maxim health player has, the higher for the natural health regeneration rate. Also, standing still(using an item or not) give a 2.5X healing bonus comparing to keep moving.
R is also affected by other items and buffs.
Note: Despite drowning being similar to life-draining debuffs, it only resets the RT and does not affect the RC and R. It directly reduces Hit Points instead.
|Heart Lantern||R +2|
|Campfire||R +1 and base R x1.1|
|Crimson armor||Base R x1.5 |
RT +1 per tick
|Life Drain||R +3 (and 1 per 2 additional mobs affected)|
RT +5 per tick (and 1 per 2 additional mobs affected)
|Rapid Healing||RC +6 per tick|
These apply if the player doesn't have any life-draining debuffs:
|Band of Regeneration
Charm of Myths
|Dryad's Blessing||R +6|
|Life Nebula||Sets R = 0 if it's less than 0 |
R +10 for each buff level (30 at the third level)
These cancel the R boosts above, reset RT to 0, and reduce R by these values:
|R <= -4||R boosted +6|
|-4 < R <= 0||R set to 2|
|R > 0||R boosted +2|
If the player is using items or not standing still, it will reset the multipliers of the Feral Bite debuff and Expert Mode to 0.75 from 0.5. Both of them only reduce the regeneration speed by 25% instead of the previous 50%. It will also multiply base R x1.1.
If the player is not using any items and almost standing still (it allows small amounts of movement), the following effects are applied in addition to those above:
So, if the player is at 600 max HP, with the Shiny Stone and standing still, in Expert mode, without Well Fed:
R = (600 / 400 * 0.85 + 0.15) * 38 * 1.25 * 0.75 * 1.1 + 4 = 63
To illustrate how the items, buffs and debuffs interact with each other, here is a more complex example:
It would work in the step shown below:
So, player has R=0, and will neither gain or lose health.
Then, if player place a Campfire nearby, it will give R +1 boost and give player a 0.5 HP/s regeneration rate; in addition, as R>0, the Shiny Stone will now provide the RC +1 per tick bonus, which means an additional 0.5 HP/s regeneration rate. So, player will have a 1 HP/s regeneration rate.
However, if player is have Rapid Healing buff (which gives the RC +6 per tick effect and does not affect R) instead of the Campfire, the Shiny Stone won't provide the RC +1 per tick bonus. So player will finally get a 3 HP/s regeneration rate.