Commit of decompiled and "updated" code.

This commit is contained in:
Big Duckie
2022-07-03 14:13:26 -06:00
parent 3d34e53842
commit e1441e74a5
731 changed files with 18423 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using Terraria;
using Terraria.ModLoader;
namespace FabusMod.Dusts;
public class RainbowWrathDust2 : 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;
}
}