Resprited PBG missiles and mines

This commit is contained in:
Dominic authored and Cameron Ewell committed 2021-03-20 18:33:24 -04:00
1 parent 8167f1115d
commit 4fe82a8df7
3 files changed
+12 -1

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+12 -1
View File
@@ -15,6 +15,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Plague Mine");
Main.npcFrameCount[npc.type] = 4;
}
public override void SetDefaults()
@@ -122,7 +123,17 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
}
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
public override void FindFrame(int frameHeight)
{
npc.frameCounter++;
if (npc.frameCounter % 6 == 5)
npc.frame.Y += frameHeight;
if (npc.frame.Y / frameHeight >= Main.npcFrameCount[npc.type])
npc.frame.Y = 0;
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
SpriteEffects spriteEffects = SpriteEffects.None;
if (npc.spriteDirection == 1)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB