Removed buggy behavior
This commit is contained in:
1 parent
13a31b79b1
commit
e23f214259
1 file changed
-18
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user