Health regeneration

From Terraria Wiki
Jump to: navigation, search
Time heals all wounds.

— A loading screen tip

This page discusses how the player health regeneration mechanism works, and how equipment and buffs affect the regeneration rate.[1]

阿德瑞娜利玛穿上了红色,亚历山大安布罗休惊艳四座,你能想到她刚生完孩子么?
因此,D型人格的人并不是缺乏社交兴趣,而是可能对别人感兴趣,但又害怕接近别人,因为他们害怕被拒绝。

  1. Best chance: Oldman has been the favorite for best actor since the film's Telluride premiere.
  2. Two-thirds of this year’s deals are trading above their issue price. On average, 2017’s class of US IPOs have risen in value by about double the S&P 500, at 20 per cent, according to Renaissance Capital, which runs IPO-focused exchange traded funds.
  3. 加拿大人:到了英国,你们恐怕会一次又一次地被人误认为是美国人,还会因为那些和你们毫无关联的事情而备受指责。除非你能想出一种简便快速的办法,让人一眼就能看出你是加拿大人(在衣领上夹一朵花?穿马鞍鞋?戴枫叶图案的眼罩?)要不然你也就只能慢慢习惯,不再抱怨了。
    Third, McDermott provides some protection against the possibility of Andre Roberson departing as a free agent in the summer.
  4. 时间:2011-03-08 编辑:beck
    The number of people living in poverty in rural areas was reduced by 12.4 million.
    Form without content. Which is why devolving to such familiar forms seems like a safe bet, and why it really isn’t. It’s empty and disposable — which is in turn why the 1960s keep being identified as a “trend,” with the associated implication that at some point they will also be identified as “over.” Even though that “over” has yet to come.
  5. The potential for conflict will force China and the US to redefine their roles in a shifting environment that neither is comfortable with. Tensions will be aggravated by anti-China sentiment during the American elections. Asian countries are in a position to delineate the boundaries of influence for these two powers but, given their varied interests, alliances will shift depending on individual concerns.
    人事工作类
    德马库斯-考辛斯、塞尔吉-伊巴卡和路易斯-威廉姆斯的交易早在截止时间——美国东部时间周四下午3点之前就已经完成了,在余下完成压哨交易的角色球员里,只有像泰-吉布森和PJ-塔克算是相对大牌的球员了。

The time the player has to wait until regeneration starts is highly variable from roughly 1/10th of a second to 17 seconds (32 seconds on Expert Mode) and is again dependent on maximum life, movement, and buffs/debuffs.

Details[edit | edit source]

Instead it ticked upward slightly to 8.3 per cent.

alt= \mathit{regeneration_{health}} = \frac{1}{2} \times \left( \left( \underbrace{ \left( \frac{\mathit{health_{max}}}{400}\times0.85+0.15 \right) \times \mathit{time} }_{\mathtt{regen}} + \underbrace{ \mathit{buff} }_{\mathtt{buffs}} \right) \times \underbrace{ \mathit{move} \times \mathit{rest} \times \mathit{expert} }_{\mathtt{special}} \right)

多机构预测: 5月CPI 同比微升到2.6%至2.7%

The diplomatic row began when Ankara’s foreign minister was denied entry to the Netherlands on Saturday for a campaign rally in favour of Mr Erdogan’s constitutional reforms. Armed Dutch police also intercepted another Turkish minister, Fatma Betul Sayan Kaya, on her way to the rally in Rotterdam and escorted her back to the German border.

  1. The regen part consists of:
    • healthmax: maximum Health of the player.
    • time: factor for the time that passed until the last hit. A detailed definition can be found in the detailed explanation.
      • The time value starts at 0, and rises by 1 every 5 seconds for the first 30 seconds. After that, it rises by 1 every 10 seconds, to a maximum of 9. (0<=time<=9) That means this part is 0 for at the first 5 seconds, but reaches 6 after 30 seconds, and 9 after 60 seconds. This does not consider the Shiny Stone buff, which can raise the time value to a maximum of 38, and alters the algorithm in other ways (see below).
  2. The buffs part:
    • buff: modifiers from the buffs and debuffs. All "R+n" values from the Buff and Debuff section can be added here (the n-part). (There are some buffs which affect other parts of the algorithm; again, see below.) This is the easiest part as the buffs are just added to the regeneration.
  3. The special part consists of:
    • move: either 0.5 if the player is moving or 1.25 if the player is standing still.
    • rest: 1, except if the player is sitting on a chair or lying on a bed, in which case it is 1.5.
    • expert: 1, except if the player is in expert mode and doesn't have the well fed buff, in which case it is 0.5.

作为过去二十五年来的常胜将军、福特的F系列皮卡一直成功地抵挡住了雪佛兰重新设计的西尔维拉多(Silverado)的挑战,盘踞着美国最畅销皮卡的宝座。而全是日本品牌角逐的最畅销汽车决赛,丰田(Toyota)凯美瑞(Camry)再次成功击败本田(Honda)雅阁(Accord),摘得冠军头衔。

The player will regenerate HR per second, not considering the 2 buffs Shiny Stone and Rapid Healing. This means if the player has HR=0.5 they will regain 1 health per 2 seconds and if the player has HR=5 they will regain 5 health per second. (Technically, rather than 5 health per second, they will get 1 health every 12 ticks[2] of game time.)

Notes[edit | edit source]

  • In 2007, Apple released the first iPhone: a full touchscreen phone, complete with its own virtual keypad. To many, Apple had done something new, something never seen before. They had made the first touchscreen phone. But this was incorrect: Apple did not make the first touchscreen phone, nor was the touchscreen a new invention.
  • A starting player will start regenerating health after 12 seconds (17 seconds on expert mode) if standing still or 17 seconds (32 expert mode) while moving. After consuming their first Heart Crystal, this drops to 7 seconds while standing still.

Technical explanation[edit | edit source]

国内首个生态家装地方标准在湖南实施

  • Regeneration Time (RT): How long the character has been regenerating for. This normally increases +1 per tick, capped at 3600, and resets to zero when the character takes damage (stopping regeneration).
  • Regeneration Rate (R): Hit Points (HP) regenerated per tick (1 point of R is equal to 0.5 HP/s). This increases the longer the RT (the longer the player has been avoiding damage).
  • Regeneration Counter (RC): Increases by R per tick, becomes 120 or over, or -120 or less, it will be reduced or increased by 120, and player will gain or lose 1 health.

The Regeneration Rate (R) determines how fast the RC changes. R is normally 0 or positive, but could be negative if the player is inflicted with any life-draining debuffs, like Poisoned.

Calculation[edit | edit source]

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).

  • If RT <= 1800, each 300 RT boosts eRT +1.
  • If RT > 1800, each 600 RT above 1800 boosts eRT +1.

Here is an illustration of the relationship between RT and eRT:

RT 0~299 300~599 600~899 900~1199 1200~1499 1500~1799 1800~2399 2400~2999 3000~3599 3600
eRT 0 1 2 3 4 5 6 7 8 9

Then, the base Regeneration Rate R = (mHP / 400 * 0.85 + 0.15) * eRT

  • If the player is standing still, R will be multiplied by 1.25.
  • 人社部副部长谈中国为什么造不好马桶盖

Finally, it will be rounded to the nearest whole number.

根据一项针对技术发展的国家规划,到2020年时,研发经费的目标是要达到GDP的2.5%。
信任感依然会是商业领域中唯一且最关键的问题。
Thirty Seconds of Mars, who are fronted by American actor Jared Leto, took home the Best Alternative award, which also saw Lana Del Rey, Lorde, The XX and Imagine.
The appointment was announced by Steven Ciobo, the Australian minister for trade, tourism and investment, on Feb 21. The Chairman of the China National Tourism Administration, Li Jinzao, was present.

After all of the above, if the player is in Expert Mode and does not have a Well Fed buff, R will be multiplied by 0.5.

Item and buff effects[edit | edit source]

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.

Buffs[edit | edit source]

Item/Buff Effect
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 enemies affected)
RT +5 per tick (and 1 per 2 additional enemies affected)
Rapid Healing RC +4 per tick
Resting or Sitting Base R x1.5

RT +10 per tick

单词compromise 联想记忆:

Item/Buff Effect
Werewolf R +1
Band of Regeneration
Charm of Myths

Moon/Sun/Celestial Stone
Celestial Shell Solar Flare armor (each piece)

R +2
Regeneration

Squire's Great Helm

R +4
Dryad's Blessing R +6
Valhalla Knight's Breastplate R +8
Life Nebula Sets R = 0 if it's less than 0
R +6 for each buff level (30 at the third level)

Regen debuffs[edit | edit source]

  • Feral Bite debuff: Base R is multiplied x0.5.
  • Bleeding debuff: Keeps RT reset to 0, so base R remains at 0.

Life-draining debuffs[edit | edit source]

These cancel the R boosts in the second table above, reset RT to 0, and reduce R by these values:

Note: If you are under the debuff of Burning or Suffocation, instead of losing 1 health when RC reaches -120, you'll always lose 5 health when RC reaches -600.

Honey[edit | edit source]

If Then
R ≤ -4 R boosted +6
-4 < R ≤ 0 R set to 2
R > 0 R boosted +2
  • Against: Strong in many categories, but without quite managing to be a front runner in any. Perhaps Timothee Chalamet's performance is its best chance of awards success.
  • Honey additionally boosts RT +2 per tick (RT increase is 3× as fast).

Shiny Stone[edit | edit source]

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 ×1.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:

  1. If the player has any life-draining debuffs so that R is less than 0, R is reduced by half (if you also have Honey buff, then it increases R by 4 first(but no more than 0), then, R is reduced by half, finally, the Honey buff additionally increase R by 2.).
  2. R +4.
  3. RT +4 per tick.
  4. If 90 < RT < 1800, RT is reset to 1800.
  5. When RT > 3000, it will remove the RT cap, and every 300 RT above 3000 will boost eRT +1 (this part is capped at 30, so it will give an eRT maxed at 38 instead of the previous 9).
  6. Finally, if R > 0, RC is boosted +1 per tick.

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
  • RC is additionally boosted +1 per tick
  • “绿色环保”成家居行业热词 节能产品市场走俏

A more complex example[edit | edit source]

Kristen Stewart definitely did some 'butt' kicking at the Nickelodeon Kids' Choice Awards 2013 on Saturday. The star strutted down the purple carpet in a dazzlingly deep blue and black top and tiny shorts that had a miniscule checkerboard pattern. Kristen was nominated for two awards at the live show - Favorite Movie Actress for The Twilight Saga: Breaking Dawn - Part 2 and Favorite Female Buttkicker for Snow White and the Huntsman.

Assume the player has the Venom, On Fire! debuffs, the Regeneration and Honey buffs, has the Shiny Stone and Charm of Myths equipped, is standing next to a Heart Lantern, and is standing still.

获奖者:侯任总统唐纳德?特朗普和希拉里·克林顿(共同获奖)

  1. The Regeneration buff and Charm of Myths increase R by 4 and 1 respectively, so, R = 5.
  2. The life-draining debuffs cancel out the effect above and set R to 0.
  3. The Venom and On Fire! debuffs reduce R by 12 and 8 respectively, so, R = -20.
  4. Because R < 0, the Honey buff increases R by 4, so, R = -16.
  5. As R is still less than 0, the Shiny Stone cuts it in half, so, R = -8.
  6. Then the Honey buff, Shiny Stone, and Heart Lantern increase R by 2, 4, and 2 respectively, so, R = 0.
  7. Because the player has life-draining debuffs, RT will remain at 0, so player will not have natural health regeneration.
  8. As R is not greater than 0, the Shiny Stone will not provide the RC +1 per tick bonus.

Thus, the player has R = 0, and will neither gain nor lose any health.

But, if the player places a Campfire nearby, it will give R +1 boost and give the player a 0.5 HP/s regeneration rate. In addition, because R > 0, the Shiny Stone will now provide a RC +1 per tick bonus, granting an additional 0.5 HP/s regeneration rate. Thus, the player will now have a 1 HP/s regeneration rate.

However, if the player has the Rapid Healing buff (which gives the RC +6 per tick effect and does not affect R) instead of placing a Campfire, the Shiny Stone will not provide the RC +1 per tick bonus. So instead, the player will have a 3 HP/s regeneration rate.

References[edit | edit source]

  1. Information taken from the Desktop version Desktop 1.3.5.3 source code, function UpdateLifeRegen() in Terraria.Player.cs There may be inaccuracies, as the current Desktop version Desktop version is 1.4.1.2.
  2. A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.