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

30 lines
687 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts
{
public class CosmiliteBarDust : ModDust
{
public override void OnSpawn(Dust dust)
{
dust.noLight = true;
dust.noGravity = false;
dust.scale = 1.2f;
dust.alpha = 100;
}
public override bool Update(Dust dust)
{
dust.velocity.Y += 0.05f;
dust.position += dust.velocity;
dust.rotation += dust.velocity.X;
dust.scale -= 0.03f;
if (dust.scale < 0.5f)
{
dust.active = false;
}
return false;
}
}
}