Fixed Amidias' Trident whirlpool particles not showing up when facing left
This commit is contained in:
1 parent
74bcffb393
commit
33f1d1249f
2 files changed
+5
-4
No files matched your search
@@ -24,8 +24,9 @@ namespace CalamityMod.Particles
|
||||
private Vector2 Squish;
|
||||
private Color BaseColor;
|
||||
private float MakeLight;
|
||||
SpriteEffects Effects = SpriteEffects.None;
|
||||
|
||||
public CustomPulse(Vector2 position, Vector2 velocity, Color color, string texture, Vector2 squish, float rotation, float originalScale, float finalScale, int lifeTime, bool UseAdditiveBlend = true, float baseOpacity = 1f, bool fade = true, float makeLight = 1)
|
||||
public CustomPulse(Vector2 position, Vector2 velocity, Color color, string texture, Vector2 squish, float rotation, float originalScale, float finalScale, int lifeTime, bool UseAdditiveBlend = true, float baseOpacity = 1f, bool fade = true, float makeLight = 1, SpriteEffects effects = SpriteEffects.None)
|
||||
{
|
||||
Position = position;
|
||||
Velocity = velocity;
|
||||
@@ -38,6 +39,7 @@ namespace CalamityMod.Particles
|
||||
BaseOpacity = baseOpacity;
|
||||
FadeOut = fade;
|
||||
Squish = squish;
|
||||
Effects = effects;
|
||||
Rotation = rotation;
|
||||
UseAltVisual = UseAdditiveBlend;
|
||||
MakeLight = makeLight;
|
||||
@@ -71,8 +73,7 @@ namespace CalamityMod.Particles
|
||||
UseAltVisual = true;
|
||||
}
|
||||
}
|
||||
spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color * opacity, Rotation, tex.Size() / 2f, Scale * Squish * scaleMult, SpriteEffects.None, 0);
|
||||
spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color * opacity, Rotation, tex.Size() / 2f, Scale * Squish * scaleMult, Effects, 0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Melee.Spears
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
GeneralParticleHandler.SpawnParticle(new CustomPulse(Owner.Center, Vector2.Zero, SeaKingsAssurance.BaseColor,
|
||||
"CalamityMod/Particles/CircularSmearFire3", new Vector2(Owner.direction, 1), Projectile.rotation, 0.8f, 1.2f, 6));
|
||||
"CalamityMod/Particles/CircularSmearFire3", Vector2.One, Projectile.rotation, 0.8f, 1.2f, 6, effects: Owner.direction > 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally));
|
||||
}
|
||||
|
||||
glow = MathHelper.Lerp(glow, Projectile.ai[0] * 0.05f / 3f, 0.2f);
|
||||
|
||||
Reference in new issue
Block a user