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

◆ UpdateLifeRegen()

virtual void Terraria.ModLoader.ModNPC.UpdateLifeRegen ( ref int damage)
inlinevirtual

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
damage

Definition at line 297 of file ModNPC.cs.

298 {
299 }