Terraria Community Forums

Yoraiz0r
Yoraiz0r
if you mean effects such as being on fire or poison, they're actually a byproduct of negative health regen.

a simple pair of lines such as...
if(player.lifeRegen > 0) player.lifeRegen = 0;
player.lifeRegen -= 4;

should do the trick for a fire.
Chazm
Chazm
Yes- does this apply to enemies to full effect if say I put the effect to -150?
Yoraiz0r
Yoraiz0r
yeah but that would look pretty bad.
you can always make your own debuff counters, in fact I believe some of my old mods...say tConfig -> Races The Redux had numerous debuffs that did it (Irken Leech), every accumulated 120 is 1 HP if I remember correctly.
Chazm
Chazm
Would I redirect it by using the same code except replacing it with NPC?
Or let me guess, C# is different and doesn't it like that
Back
Top Bottom