diff --git a/Items/Placeables/Banners/IrradiatedSlimeBanner.png b/Items/Placeables/Banners/IrradiatedSlimeBanner.png index a7176895d4..8a88b06c39 100644 Binary files a/Items/Placeables/Banners/IrradiatedSlimeBanner.png and b/Items/Placeables/Banners/IrradiatedSlimeBanner.png differ diff --git a/Items/Placeables/Banners/PiggyBanner.cs b/Items/Placeables/Banners/PiggyBanner.cs new file mode 100644 index 0000000000..fc2f90a0e0 --- /dev/null +++ b/Items/Placeables/Banners/PiggyBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PiggyBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 108; + } + } +} diff --git a/Items/Placeables/Banners/PiggyBanner.png b/Items/Placeables/Banners/PiggyBanner.png new file mode 100644 index 0000000000..e6cd993b29 Binary files /dev/null and b/Items/Placeables/Banners/PiggyBanner.png differ diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index 393ea55710..d768181a1f 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -29,8 +29,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 10, 0, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - /*banner = npc.type; - bannerItem = mod.ItemType("PitbullBanner");*/ + banner = npc.type; + bannerItem = mod.ItemType("PiggyBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/Tiles/MonsterBanner.cs b/Tiles/MonsterBanner.cs index a0fa2d758e..fba4a9648d 100644 --- a/Tiles/MonsterBanner.cs +++ b/Tiles/MonsterBanner.cs @@ -356,6 +356,9 @@ namespace CalamityMod.Tiles case 107: item = "GiantClamBanner"; break; + case 108: + item = "PiggyBanner"; + break; default: return; } @@ -695,6 +698,9 @@ namespace CalamityMod.Tiles case 107: type = "GiantClam"; break; + case 108: + type = "Piggy"; + break; default: return; } diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png index 1d540e9ada..e6d30bdd8b 100644 Binary files a/Tiles/MonsterBanner.png and b/Tiles/MonsterBanner.png differ