29 lines
853 B
C#
29 lines
853 B
C#
using Decimation.Content.Buffs.Buffs;
|
|
using Decimation.Content.Buffs.Debuffs;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Projectiles
|
|
{
|
|
internal class ArachnusFireball : DecimationProjectile
|
|
{
|
|
public override string Texture => "Terraria/Projectile_" + ProjectileID.Fireball;
|
|
|
|
protected override void Init()
|
|
{
|
|
this.projectile.CloneDefaults(ProjectileID.Fireball);
|
|
this.projectile.light = 1f;
|
|
}
|
|
|
|
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<Singed>(), 120);
|
|
}
|
|
|
|
public override void OnHitPlayer(Player target, int damage, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<Singed>(), 120);
|
|
}
|
|
}
|
|
} |