diff --git a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs index 48f84ac459..26e053445f 100644 --- a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs +++ b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.LunicCorps if (modPlayer.masterChefShieldDurability <= 0) continue; - float scale = 0.15f + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f)); + float scale = 0.1f + 0.02f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f)); if (playerFound == false) { diff --git a/Items/Weapons/Magic/VeeringWind.png b/Items/Weapons/Magic/VeeringWind.png new file mode 100644 index 0000000000..ef78a6a628 Binary files /dev/null and b/Items/Weapons/Magic/VeeringWind.png differ diff --git a/Projectiles/Boss/PlagueStingerGoliath.cs b/Projectiles/Boss/PlagueStingerGoliath.cs index d11571eedc..11684e89bf 100644 --- a/Projectiles/Boss/PlagueStingerGoliath.cs +++ b/Projectiles/Boss/PlagueStingerGoliath.cs @@ -55,11 +55,11 @@ namespace CalamityMod.Projectiles.Boss public override void PostDraw(Color lightColor) { Vector2 center = new Vector2(Projectile.Center.X, Projectile.Center.Y); - Vector2 vector11 = new Vector2(ModContent.Request(Texture).Value.Width / 2, ModContent.Request(Texture).Value.Height / Main.projFrames[Projectile.type] / 2); + Vector2 vector11 = new Vector2(ModContent.Request(Texture).Value.Width / 2, ModContent.Request(Texture).Value.Height / 2); Vector2 vector = center - Main.screenPosition; - vector -= new Vector2(ModContent.Request("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Width, ModContent.Request("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Height / Main.projFrames[Projectile.type]) * 1f / 2f; - vector += vector11 * 1f + new Vector2(0f, 0f + 4f + Projectile.gfxOffY); - Color color = new Color(127 - Projectile.alpha, 127 - Projectile.alpha, 127 - Projectile.alpha, 0).MultiplyRGBA(Color.Red); + vector -= new Vector2(ModContent.Request("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Width, ModContent.Request("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Height) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 4f + Projectile.gfxOffY); + Color color = Color.White; Main.spriteBatch.Draw(ModContent.Request("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value, vector, null, color, Projectile.rotation, vector11, Projectile.scale, SpriteEffects.None, 0); } diff --git a/Projectiles/Ranged/PlagueTaintedDrone.cs b/Projectiles/Ranged/PlagueTaintedDrone.cs index bea425dcb8..53ef63d162 100644 --- a/Projectiles/Ranged/PlagueTaintedDrone.cs +++ b/Projectiles/Ranged/PlagueTaintedDrone.cs @@ -6,6 +6,7 @@ using Terraria.ModLoader; using Terraria.Audio; using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework.Graphics; namespace CalamityMod.Projectiles.Ranged { @@ -87,6 +88,29 @@ namespace CalamityMod.Projectiles.Ranged Projectile.velocity = Projectile.SuperhomeTowardsTarget(target, 12f, 15f); } + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + int height = texture.Height / Main.projFrames[Projectile.type]; + int drawStart = height * Projectile.frame; + Vector2 origin = Projectile.Size / 2; + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + return false; + } + + public override void PostDraw(Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + int height = texture.Height / Main.projFrames[Projectile.type]; + int drawStart = height * Projectile.frame; + Vector2 origin = Projectile.Size / 2; + SpriteEffects spriteEffects = SpriteEffects.None; + if (Projectile.spriteDirection == -1) + spriteEffects = SpriteEffects.FlipHorizontally; + + Main.EntitySpriteDraw(ModContent.Request("CalamityMod/Projectiles/Ranged/PlagueTaintedDroneGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0); + } + public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height); diff --git a/Projectiles/Ranged/PlagueTaintedDroneGlow.png b/Projectiles/Ranged/PlagueTaintedDroneGlow.png new file mode 100644 index 0000000000..42e15fbd89 Binary files /dev/null and b/Projectiles/Ranged/PlagueTaintedDroneGlow.png differ diff --git a/Projectiles/Ranged/PlagueTaintedProjectile.cs b/Projectiles/Ranged/PlagueTaintedProjectile.cs index 3991b37ab4..9bedda6a4c 100644 --- a/Projectiles/Ranged/PlagueTaintedProjectile.cs +++ b/Projectiles/Ranged/PlagueTaintedProjectile.cs @@ -84,6 +84,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(ref Color lightColor) { + lightColor = Color.White; CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor); return false; }