From 9c8294b2abc77d0e8ea8f90b169a40054e41a7a5 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 19 Oct 2024 23:30:40 +0700 Subject: [PATCH] aote downshift --- Items/Weapons/Melee/ArkoftheElements.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index df934e2e7c..348db4f9e6 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -188,6 +188,9 @@ namespace CalamityMod.Items.Weapons.Melee float tweakedScale = scale * (1 + extraScale); //Make the scale bigger to avoid crunching of the item Vector2 offset = (frontTexture.Size() * extraScale / 2f) * scale; + // The base offset is not perfect, so we need to move it down a little + offset -= Vector2.UnitY * 16f * scale; + float backLayerOpacity = (Charge > 0) ? 1f : (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.9f) * 0.2f + 0.3f; spriteBatch.Draw(backTexture, position - offset, null, drawColor * backLayerOpacity, 0f, origin, tweakedScale, SpriteEffects.None, 0f); //Make the back scissor slightly transparent if the ark isnt charged