blood particles go rainbow with blood off
This commit is contained in:
1 parent
a6e081bf63
commit
794cb96847
2 files changed
+12
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Particles
|
||||
@@ -31,6 +32,11 @@ namespace CalamityMod.Particles
|
||||
Velocity.Y = MathHelper.Clamp(Velocity.Y + 0.9f, -22f, 22f);
|
||||
Color = Color.Lerp(InitialColor, Color.Transparent, (float)Math.Pow(LifetimeCompletion, 3D));
|
||||
Rotation = Velocity.ToRotation() + MathHelper.PiOver2;
|
||||
// Cycle through disco colors if blood and gore is off
|
||||
if (!ChildSafety.Disabled)
|
||||
{
|
||||
Color = Main.DiscoColor;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CustomDraw(SpriteBatch spriteBatch)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Particles
|
||||
@@ -29,6 +30,11 @@ namespace CalamityMod.Particles
|
||||
Velocity *= 0.98f;
|
||||
Color = Color.Lerp(InitialColor, Color.Transparent, (float)Math.Pow(LifetimeCompletion, 4D));
|
||||
Rotation = Velocity.ToRotation();
|
||||
// Cycle through disco colors if blood and gore is off
|
||||
if (!ChildSafety.Disabled)
|
||||
{
|
||||
Color = Main.DiscoColor;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CustomDraw(SpriteBatch spriteBatch)
|
||||
|
||||
Reference in new issue
Block a user