Removed buggy behavior

This commit is contained in:
DominicKarma committed 2021-09-16 12:44:22 -05:00
1 parent 13a31b79b1
commit e23f214259
1 file changed
-18
-18
View File
@@ -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<Vector2> points = new List<Vector2>()
{
npc.Center,
Owner.Center
};
ChainDrawer.Draw(points, -Main.screenPosition, 40);
return true;
}
public override void FindFrame(int frameHeight)
{
npc.frameCounter++;