diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 3922b8cd9f..31b4e442f1 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -727,11 +727,10 @@ namespace CalamityMod.NPCs.Leviathan public override void FindFrame(int frameHeight) { - Texture2D texture = Main.npcTexture[npc.type]; - int verticalFrameCount = 3; int horizontalFrameCount = 2; - int height = texture.Height / verticalFrameCount; - int width = texture.Width / horizontalFrameCount; + int verticalFrameCount = 3; + int width = 2022 / horizontalFrameCount; + int height = 1458 / verticalFrameCount; int timeBetweenFrames = 8; if (!initialised) diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index c0b558461f..03e0c1640c 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -735,23 +735,17 @@ namespace CalamityMod.NPCs.Leviathan public override void FindFrame(int frameHeight) { - Texture2D texture = Main.npcTexture[npc.type]; if (npc.ai[0] > 2f || forceChargeFrames) - { frameUsed = 1; - } else - { frameUsed = 0; - } - int frameY = texture.Height / Main.npcFrameCount[npc.type]; - int timeBetweenFrames = 8; + int timeBetweenFrames = 8; npc.frameCounter++; if (npc.frameCounter > timeBetweenFrames * Main.npcFrameCount[npc.type]) npc.frameCounter = 0; - npc.frame.Y = frameY * (int)(npc.frameCounter / timeBetweenFrames); + npc.frame.Y = frameHeight * (int)(npc.frameCounter / timeBetweenFrames); if (npc.frame.Y >= frameHeight * Main.npcFrameCount[npc.type]) npc.frame.Y = 0; diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 14a4b61a6a..2bbb031ad2 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1111,7 +1111,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void FindFrame(int frameHeight) { - int width = !charging ? (532 / 2) : (644 / 2); int height = !charging ? (768 / 3) : (636 / 3); npc.frameCounter += 1.0;