fixed parasea hitbox
This commit is contained in:
1 parent
967e4b8d57
commit
ffe445a4de
1 file changed
+13
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user