- All auras last 30 seconds instead of 45 seconds - Changed Absorber's dust so it doesn't look like shit by creating a dust specifically for it (apparently white torch dust doesn't glow???) - Baroclaw damage buff 8% ->10% - Baroclaw spikes damage buff 1.1x -> 2.5x - Fixed some tooltip errors left over when Shade changed the given regen - fixed hammer charge sounds not having decreased volume like the slams do
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Dusts
|
|
{
|
|
public class AbsorberDust : ModDust
|
|
{
|
|
public override void OnSpawn(Dust dust)
|
|
{
|
|
dust.velocity.Y = Main.rand.Next(-10, 6) * 0.1f;
|
|
dust.velocity.X *= 0.3f;
|
|
dust.scale *= 0.7f;
|
|
}
|
|
|
|
public override bool MidUpdate(Dust dust)
|
|
{
|
|
if (!dust.noGravity)
|
|
{
|
|
dust.velocity.Y += 0.05f;
|
|
}
|
|
if (!dust.noLight)
|
|
{
|
|
float strength = dust.scale * 1.4f;
|
|
if (strength > 1f)
|
|
{
|
|
strength = 1f;
|
|
}
|
|
Lighting.AddLight(dust.position, 1.43f * strength, 1.88f * strength, 1.43f * strength);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public override Color? GetAlpha(Dust dust, Color lightColor)
|
|
{
|
|
return new Color(lightColor.R, lightColor.G, lightColor.B, 25);
|
|
}
|
|
}
|
|
}
|