From 6e5d259ee03b4a31b64ccb560f67188b7c72061a Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 26 May 2023 03:53:47 +0700 Subject: [PATCH] the frame --- Items/CalamityGlobalItem.cs | 2 +- Items/Materials/AshesofAnnihilation.cs | 2 +- Items/Materials/MiracleMatter.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 888d464dfd..09c6457620 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1635,7 +1635,7 @@ namespace CalamityMod.Items if (calamitasNPCIndex != -1) currentPower = Utils.GetLerpValue(11750f, 1000f, Main.LocalPlayer.Distance(Main.npc[calamitasNPCIndex].Center), true); - Vector2 particleDrawCenter = position + new Vector2(12f, 16f) * Main.inventoryScale; + Vector2 particleDrawCenter = position + new Vector2(12f, 16f) * Main.inventoryScale - itemFrame.Size() * 0.25f; EnchantmentEnergyParticles.InterpolationSpeed = MathHelper.Lerp(0.035f, 0.1f, currentPower); EnchantmentEnergyParticles.DrawSet(particleDrawCenter + Main.screenPosition); diff --git a/Items/Materials/AshesofAnnihilation.cs b/Items/Materials/AshesofAnnihilation.cs index e0e2549f3d..60d3a641d1 100644 --- a/Items/Materials/AshesofAnnihilation.cs +++ b/Items/Materials/AshesofAnnihilation.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Materials public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) { - DrawPulsingAfterimage(spriteBatch, position + frame.Size() * 0.25f, frame, scale); + DrawPulsingAfterimage(spriteBatch, position, frame, scale); return true; } diff --git a/Items/Materials/MiracleMatter.cs b/Items/Materials/MiracleMatter.cs index 39d090216d..6f8a7eafe9 100644 --- a/Items/Materials/MiracleMatter.cs +++ b/Items/Materials/MiracleMatter.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Materials public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) { Item.velocity.X = 0f; - DrawBackAfterimage(spriteBatch, position, frame, scale); + DrawBackAfterimage(spriteBatch, position - frame.Size() * 0.25f, frame, scale); return true; }