Files
CalamityModPublic/Projectiles/Typeless/TatteredFairyDust.cs
T
CongratsIsTrash fde8a639be Leftover wing bonus stuff
Butterfly: Removed all stats, now increases mana regen rate by 25%
Tattered Fairy: Removed all stats, now leaves behind a damaging trail of fairy dust while flying
Tarragon: No longer requires Tarragon armor to trigger its effects

Also Festive Wings' tooltip now clarifies that its ornaments home in, and fixed Steampunk Wings not actually having its stats removed
2024-10-25 13:31:19 -04:00

35 lines
1.3 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class TatteredFairyDust : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Typeless";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = Projectile.height = 25;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Generic;
Projectile.penetrate = 3;
Projectile.timeLeft = 150;
}
public override void AI()
{
Lighting.AddLight(Projectile.Center, 0.9f, 0.9f, 0.9f);
if (Projectile.timeLeft % 2 == 0)
{
Dust dustEffect = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, DustID.BatScepter, Main.rand.NextFloat(0.1f), Main.rand.NextFloat(0.1f));
dustEffect.noGravity = true;
Dust lightedDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, DustID.TintableDustLighted, Main.rand.NextFloat(0.1f), Main.rand.NextFloat(0.1f), 0, new Color(190, 3, 252));
lightedDust.noGravity = true;
}
}
}
}