Lifesteal

From Calamity Mod Wiki
Jump to: navigation, search

Lifesteal is a mechanic utilized by some weapons and other items which causes the player to be healed upon damaging an enemy. This can be via direct healing when the attack hits, the spawning of a healing projectile which heals the player on touch, or the spawning of Hearts.

Lifesteal cooldown[edit | edit source]

This section primarily describes vanilla Terraria behavior.

There is a hidden lifesteal cooldown variable in Terraria which is constantly increasing every frame, up to a maximum which varies depending on the current difficulty mode. Whenever a player is healed with a lifesteal effect, the cooldown variable is decreased by a certain amount that is typically proportional to damage. Several lifesteal effects will fail to heal the player if the cooldown variable is at or below 0, preventing the player from abusing lifesteal to keep themselves alive for longer than intended.

In Normal Mode the maximum is 80, in Expert Mode the maximum is 70, in Revengeance Mode the maximum is 40, and in Death Mode the maximum is 30. The variable increases by 0.5 every frame in all difficulties except Normal Mode, in which it increases by 0.6 instead.

canGhostHeal[edit | edit source]

This section primarily describes vanilla Terraria behavior.

canGhostHeal is an internal Boolean variable that pertains to whether or not the player can steal life from enemies. The variable is defined in the files of certain NPCs, and checked for in the files of many lifestealing items and projectiles. If the item or projectile checks for canGhostHeal in the hit enemy's file and finds that it's set to true, then the player will be healed. If it's set to false, the player will not be healed. canGhostHeal is set to true by default in all enemy files, though some enemies have it directly set to false.

Note that not all lifestealing items and projectiles check for canGhostHeal. If they bypass the check, they can heal the player regardless of what the hit enemy has it set to.

Lists[edit | edit source]

Lifestealing Items[edit | edit source]

Below is a list of all items in the Calamity Mod which have the ability to steal life from enemies. Also listed is their healing amount, method of healing, as well as whether or not they bypass canGhostHeal or the lifesteal cooldown.

 
[link]Click here to reveal this content. (there may be a slight delay)[/link]
This table requires JavaScript to be enabled and site tooltips to be turned on to be displayed.
You can also view the data on another page.

canGhostHeal False NPCs[edit | edit source]

Below is a list of all NPCs in the Calamity Mod which have canGhostHeal set to false, meaning that the player cannot heal from hitting them with lifestealing attacks that check for the variable. Vanilla NPCs listed here only have canGhostHeal set to false in Revengeance Mode.

 
[link]Click here to reveal this content. (there may be a slight delay)[/link]
This table requires JavaScript to be enabled and site tooltips to be turned on to be displayed.
You can also view the data on another page.

Notes[edit | edit source]

  • Many of the healing projectiles spawned by lifestealing items can heal nearby teammates, instead of the player, if they are close enough.

Trivia[edit | edit source]