Pumpkin Maniac
Terrarian
public override void DamageNPC(Player p, NPC n, int hitDir, ref int damage, ref float knockback, ref bool crit, ref float critMult) //This is called when the player attacks an NPC
{
p.statLife += 5; //any effect goes here, this gives the player 5 life upon attack of any NPC
}
This doesn't work the (DamageNPC) is a error