Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
30 lines
648 B
C#
30 lines
648 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Dusts
|
|
{
|
|
public class AstralChunkDust : ModDust
|
|
{
|
|
public override void OnSpawn(Dust dust)
|
|
{
|
|
dust.scale = Main.rand.NextFloat(0.9f, 1.2f);
|
|
}
|
|
|
|
public override bool Update(Dust dust)
|
|
{
|
|
//update position / rotation
|
|
dust.velocity.Y += 0.1f;
|
|
dust.position += dust.velocity;
|
|
dust.rotation += dust.velocity.X;
|
|
|
|
dust.alpha += 6;
|
|
if (dust.alpha > 240)
|
|
{
|
|
dust.active = false;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|