Lifesteal

From Calamity Mod Wiki
Jump to navigation Jump to search

Lifesteal is a mechanic utilized by some weapons and other items which causes the player to be healed upon damaging an enemy. This is done 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

This section primarily describes vanilla Terraria behavior.
Life Steal Cooldown.png

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.

The maximum amount is 60 / 50 Expert Mode / 40 Revengeance Mode / 30 Death Mode / 40 Master Mode / 30 Revengeance Mode Master Mode / 20 Death Mode Master Mode instead of 80 / 70 Expert Mode in vanilla. The variable increases by 0.2 / 0.15 Expert Mode / 0.125 Revengeance Mode / 0.1 Death Mode / 0.1 Master Mode / 0.075 Revengeance Mode Master Mode / 0.05 Death Mode Master Mode instead of 0.6 / 0.5 Expert Mode in vanilla.

The player's current lifesteal cooldown can be seen on Calamity's Cooldown Rack, where it appears with a red knife as its icon.

canGhostHeal

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

Lifestealing Items

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/tap 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

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.

Notes

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

Trivia