diff --git a/Items/Placeables/Banners/AndroombaBanner.cs b/Items/Placeables/Banners/AndroombaBanner.cs new file mode 100644 index 0000000000..0c81f3c303 --- /dev/null +++ b/Items/Placeables/Banners/AndroombaBanner.cs @@ -0,0 +1,33 @@ +using CalamityMod.Tiles; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AndroombaBanner : ModItem + { + public override void SetStaticDefaults() + { + SacrificeTotal = 1; + Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Androomba"); + } + + 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 = ItemUseStyleID.Swing; + Item.consumable = true; + Item.rare = ItemRarityID.Blue; + Item.value = Item.buyPrice(0, 0, 10, 0); + Item.createTile = ModContent.TileType(); + Item.placeStyle = 6; + } + } +} diff --git a/Items/Placeables/Banners/AndroombaBanner.png b/Items/Placeables/Banners/AndroombaBanner.png new file mode 100644 index 0000000000..6177e8a826 Binary files /dev/null and b/Items/Placeables/Banners/AndroombaBanner.png differ diff --git a/Items/Placeables/Banners/RepairUnitBanner.cs b/Items/Placeables/Banners/RepairUnitBanner.cs new file mode 100644 index 0000000000..f0c1aa11ec --- /dev/null +++ b/Items/Placeables/Banners/RepairUnitBanner.cs @@ -0,0 +1,33 @@ +using CalamityMod.Tiles; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class RepairUnitBanner : ModItem + { + public override void SetStaticDefaults() + { + SacrificeTotal = 1; + Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Repair Unit"); + } + + 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 = ItemUseStyleID.Swing; + Item.consumable = true; + Item.rare = ItemRarityID.Blue; + Item.value = Item.buyPrice(0, 0, 10, 0); + Item.createTile = ModContent.TileType(); + Item.placeStyle = 0; + } + } +} diff --git a/Items/Placeables/Banners/RepairUnitBanner.png b/Items/Placeables/Banners/RepairUnitBanner.png new file mode 100644 index 0000000000..59731704ec Binary files /dev/null and b/Items/Placeables/Banners/RepairUnitBanner.png differ diff --git a/NPCs/DraedonLabThings/Androomba.cs b/NPCs/DraedonLabThings/Androomba.cs index 2c11d21c6c..d55030734f 100644 --- a/NPCs/DraedonLabThings/Androomba.cs +++ b/NPCs/DraedonLabThings/Androomba.cs @@ -1,5 +1,6 @@ using CalamityMod.BiomeManagers; using CalamityMod.Items.Critters; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -37,6 +38,8 @@ namespace CalamityMod.NPCs.DraedonLabThings NPC.chaseable = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath44; + Banner = NPC.type; + BannerItem = ModContent.ItemType(); NPC.rarity = 2; NPC.catchItem = (short)ModContent.ItemType(); SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; diff --git a/NPCs/DraedonLabThings/RepairUnitCritter.cs b/NPCs/DraedonLabThings/RepairUnitCritter.cs index a22735ebf7..7450dca1d3 100644 --- a/NPCs/DraedonLabThings/RepairUnitCritter.cs +++ b/NPCs/DraedonLabThings/RepairUnitCritter.cs @@ -1,6 +1,7 @@ using CalamityMod.BiomeManagers; using CalamityMod.Items.Critters; using CalamityMod.Items.DraedonMisc; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -72,6 +73,8 @@ namespace CalamityMod.NPCs.DraedonLabThings NPC.chaseable = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath44; + Banner = NPC.type; + BannerItem = ModContent.ItemType(); NPC.catchItem = (short)ModContent.ItemType(); SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; } diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png index d0c4c374a9..c5b368c0d6 100644 Binary files a/Tiles/MonsterBanner.png and b/Tiles/MonsterBanner.png differ diff --git a/Utilities/MiscUtils.cs b/Utilities/MiscUtils.cs index 500fff2930..61a7d491fe 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -8,6 +8,7 @@ using CalamityMod.NPCs.AcidRain; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.Crags; +using CalamityMod.NPCs.DraedonLabThings; using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.PlagueEnemies; @@ -379,6 +380,9 @@ namespace CalamityMod int item = -1; switch (style) { + case 0: + item = ModContent.ItemType(); + break; case 1: item = ModContent.ItemType(); break; @@ -391,6 +395,9 @@ namespace CalamityMod case 4: item = ModContent.ItemType(); break; + case 6: + item = ModContent.ItemType(); + break; case 7: item = ModContent.ItemType(); break; @@ -735,6 +742,9 @@ namespace CalamityMod int npc = -1; switch (style) { + case 0: + npc = ModContent.NPCType(); + break; case 1: npc = ModContent.NPCType(); break; @@ -747,6 +757,9 @@ namespace CalamityMod case 4: npc = ModContent.NPCType(); break; + case 6: + npc = ModContent.NPCType(); + break; case 7: npc = ModContent.NPCType(); break;