Commit of decompiled and "updated" code.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Dusts;
|
||||
|
||||
public class RainbowCurseDust : ModDust
|
||||
{
|
||||
public override void OnSpawn(Dust dust)
|
||||
{
|
||||
dust.velocity *= 0.1f;
|
||||
dust.noGravity = true;
|
||||
dust.noLight = true;
|
||||
dust.scale *= 0.8f;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user