diff --git a/NPCs/Leviathan/Parasea.cs b/NPCs/Leviathan/Parasea.cs index 8d8be97359..3613b82eb0 100644 --- a/NPCs/Leviathan/Parasea.cs +++ b/NPCs/Leviathan/Parasea.cs @@ -22,8 +22,7 @@ namespace CalamityMod.NPCs.Leviathan npc.noTileCollide = true; npc.canGhostHeal = false; npc.damage = 50; - npc.width = 90; - npc.height = 20; + npc.width = npc.height = 30; npc.defense = 8; npc.lifeMax = 650; if (CalamityWorld.bossRushActive) @@ -63,6 +62,18 @@ namespace CalamityMod.NPCs.Leviathan npc.frame.Y = frame * frameHeight; } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Texture2D texture = Main.npcTexture[npc.type]; + int height = texture.Height / Main.npcFrameCount[npc.type]; + int width = texture.Width; + SpriteEffects spriteEffects = SpriteEffects.FlipHorizontally; + if (npc.spriteDirection == -1) + spriteEffects = SpriteEffects.None; + Main.spriteBatch.Draw(texture, npc.Center - Main.screenPosition + new Vector2(0f, npc.gfxOffY), npc.frame, npc.GetAlpha(drawColor), npc.rotation, new Vector2((float)width / 2f, (float)height / 2f), npc.scale, spriteEffects, 0f); + return false; + } + public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Wet, 60, true);