Files
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

32 lines
802 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts
{
public class OMGWTHSparkle : ModDust
{
public override void OnSpawn(Dust dust)
{
dust.velocity *= 0.1f;
dust.alpha = 155;
dust.noGravity = true;
dust.noLight = true;
dust.scale *= 0.25f;
}
public override bool Update(Dust dust)
{
dust.position += dust.velocity;
dust.rotation += dust.velocity.X * 0.05f;
dust.scale *= 0.99f;
float light = 0.35f * dust.scale;
Lighting.AddLight(dust.position, 0.35f, 0.1f, 0.1f);
if (dust.scale < 0.15f)
{
dust.active = false;
}
return false;
}
}
}