Skull Smasher
Terrarian
I'm currently making a mod which adds some new items to the game but I'm having trouble putting an item like the fire gauntlet in. I attempted to do this:
but it didn't work for some fairly obvious reasons in hindsight. Anyone know how I can accomplish this, though? I haven't been able to find any tutorials.
Code:
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(BuffID.CursedInferno, 300);
}