using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Modname.folder.stuff //Just the general namespace
{
public class ExampleProjectile : ModProjectile
{
public override void SetDefaults()
{
//The projectile defaults and stuff
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(39, 60, true);
//39 is the buff ID for Cursed Inferno
//The 60 is how long the buff will be applied in ticks. There's 60 ticks per second.
}
}
}