diff --git a/Gores/Rotdog/Rotdog1.png b/Gores/Rotdog/Rotdog1.png new file mode 100644 index 0000000000..a7b1a625c3 Binary files /dev/null and b/Gores/Rotdog/Rotdog1.png differ diff --git a/Gores/Rotdog/Rotdog2.png b/Gores/Rotdog/Rotdog2.png new file mode 100644 index 0000000000..ff18b4f9fa Binary files /dev/null and b/Gores/Rotdog/Rotdog2.png differ diff --git a/Gores/Rotdog/Rotdog3.png b/Gores/Rotdog/Rotdog3.png new file mode 100644 index 0000000000..79a07bbb78 Binary files /dev/null and b/Gores/Rotdog/Rotdog3.png differ diff --git a/Gores/Rotdog/Rotdog4.png b/Gores/Rotdog/Rotdog4.png new file mode 100644 index 0000000000..d1730ad346 Binary files /dev/null and b/Gores/Rotdog/Rotdog4.png differ diff --git a/Items/Placeables/Banners/RotdogBanner.png b/Items/Placeables/Banners/RotdogBanner.png index 9e55ae8946..ea89ac5f16 100644 Binary files a/Items/Placeables/Banners/RotdogBanner.png and b/Items/Placeables/Banners/RotdogBanner.png differ diff --git a/NPCs/NormalNPCs/Rotdog.cs b/NPCs/NormalNPCs/Rotdog.cs index 464b705b78..9290d173ea 100644 --- a/NPCs/NormalNPCs/Rotdog.cs +++ b/NPCs/NormalNPCs/Rotdog.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; +using System; using Terraria; using Terraria.GameContent.Bestiary; using Terraria.ID; @@ -23,7 +24,6 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.defense = 4; NPC.lifeMax = 60; NPC.knockBackResist = 0.3f; - AnimationType = NPCID.Hellhound; AIType = NPCID.Wolf; NPC.value = Item.buyPrice(0, 0, 2, 0); NPC.HitSound = SoundID.NPCHit1; @@ -49,17 +49,48 @@ namespace CalamityMod.NPCs.NormalNPCs { if (NPC.IsABestiaryIconDummy) { - NPC.frameCounter += 1.0; - if (NPC.frameCounter > 6.0) + NPC.frameCounter++; + if (NPC.frameCounter > 5) { - NPC.frameCounter = 0.0; + NPC.frameCounter = 0; NPC.frame.Y += frameHeight; } - if (NPC.frame.Y > frameHeight * 10) + if (NPC.frame.Y > frameHeight * 7) { NPC.frame.Y = frameHeight; } } + else + { + NPC.spriteDirection = NPC.direction; + if (NPC.velocity.Y < 0f) // jump + { + NPC.frame.Y = frameHeight * 8; + NPC.frameCounter = 0.0; + } + else if (NPC.velocity.Y > 0f) // fall + { + NPC.frame.Y = frameHeight * 9; + NPC.frameCounter = 0.0; + } + else + { + NPC.frameCounter += Math.Abs(NPC.velocity.X) * 0.4f; + if (NPC.frameCounter > 4) + { + NPC.frameCounter = 0; + NPC.frame.Y += frameHeight; + if (NPC.frame.Y < frameHeight) + { + NPC.frame.Y = frameHeight; + } + if (NPC.frame.Y > frameHeight * 7) + { + NPC.frame.Y = frameHeight; + } + } + } + } } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -89,6 +120,13 @@ namespace CalamityMod.NPCs.NormalNPCs { Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hit.HitDirection, -1f, 0, default, 1f); } + if (Main.netMode != NetmodeID.Server) + { + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Rotdog1").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Rotdog2").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Rotdog3").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Rotdog4").Type, 1f); + } } } diff --git a/NPCs/NormalNPCs/Rotdog.png b/NPCs/NormalNPCs/Rotdog.png index f8f42b55d3..601a6df0da 100644 Binary files a/NPCs/NormalNPCs/Rotdog.png and b/NPCs/NormalNPCs/Rotdog.png differ diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png index be12dd0acd..6b111c5c26 100644 Binary files a/Tiles/MonsterBanner.png and b/Tiles/MonsterBanner.png differ