From e23f214259ba545e849a59e73d8d0c034e5b98ab Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Thu, 16 Sep 2021 12:44:22 -0500 Subject: [PATCH] Removed buggy behavior --- NPCs/Other/ExhumedHeart.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/NPCs/Other/ExhumedHeart.cs b/NPCs/Other/ExhumedHeart.cs index f371b6de20..9a29e255f7 100644 --- a/NPCs/Other/ExhumedHeart.cs +++ b/NPCs/Other/ExhumedHeart.cs @@ -11,7 +11,6 @@ namespace CalamityMod.NPCs.Other { public class ExhumedHeart : ModNPC { - public PrimitiveTrail ChainDrawer = null; public ref float Time => ref npc.ai[0]; public Player Owner { @@ -80,23 +79,6 @@ namespace CalamityMod.NPCs.Other return Color.Lerp(Color.DarkRed * 0.7f, Color.Red, colorInterpolant) * 0.425f; } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) - { - if (ChainDrawer is null) - ChainDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction); - - if (npc.Center == Owner.Center) - return true; - - List points = new List() - { - npc.Center, - Owner.Center - }; - ChainDrawer.Draw(points, -Main.screenPosition, 40); - return true; - } - public override void FindFrame(int frameHeight) { npc.frameCounter++;