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?
}
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?
}