30 lines
677 B
C#
30 lines
677 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace FabusMod.Dusts;
|
|
|
|
public class FoxMendingDustBlue : ModDust
|
|
{
|
|
public override void OnSpawn(Dust dust)
|
|
{
|
|
dust.velocity *= 0.4f;
|
|
dust.noGravity = true;
|
|
dust.noLight = true;
|
|
dust.scale *= 1.5f;
|
|
}
|
|
|
|
public override bool Update(Dust dust)
|
|
{
|
|
dust.position += dust.velocity;
|
|
dust.rotation += dust.velocity.X * 0.15f;
|
|
dust.scale *= 0.99f;
|
|
float light = 0.35f * dust.scale;
|
|
Lighting.AddLight(dust.position, light, light, light);
|
|
if (dust.scale < 0.5f)
|
|
{
|
|
dust.active = false;
|
|
}
|
|
return false;
|
|
}
|
|
}
|