TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UpdateLifeRegen()

virtual void Terraria.ModLoader.GlobalNPC.UpdateLifeRegen ( NPC npc,
ref int damage )
inlinevirtualinherited

Allows you to make the NPC either regenerate health or take damage over time by setting npc.lifeRegen. Regeneration or damage will occur at a rate of half of npc.lifeRegen per second. The damage parameter is the number that appears above the NPC's head if it takes damage over time.

Parameters
npc
damage

Definition at line 187 of file GlobalNPC.cs.

188 {
189 }