tModLoader How do you add bonus health when creating a mod?

Tritonic

Terrarian
I'm really new to making tModloader mods, just a day old and I'm trying to figure out how to add a bonus health stat for an armor set bonus and for just the armor piece. This is what I have so far.

public override void UpdateArmorSet(Player player)
{
player.AddBuff(BuffID.Archery, 300);
}

public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.OnFire] = true;
player.statManaMax2 += 40;
item.Health += 500; <<<----- This is the one I need to fix. What would i write?
}
 
Not entirely sure on this, but I think it is:
Code:
player.statLifeMax2 += 500;
The 2 is important.
 
Back
Top Bottom