From e91b86432225bd9fee8ef1ccf404db1ec3181dd6 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 28 Nov 2019 16:25:53 -0500 Subject: [PATCH] added metal detector recipe and made pitbull drop bandage nymphs are ass iirc --- NPCs/CalamityGlobalNPCLoot.cs | 2 +- NPCs/NormalNPCs/Pitbull.cs | 7 +++++++ Utilities/CalamityRecipes.cs | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 0e4f8b0cc9..d1952787fb 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1142,7 +1142,7 @@ namespace CalamityMod.NPCs } } - if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandSharkHallow || npc.type == NPCID.SandSharkCorrupt || npc.type == NPCID.SandSharkCrimson || npc.type == ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) + if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson || npc.type == ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) diff --git a/NPCs/NormalNPCs/Pitbull.cs b/NPCs/NormalNPCs/Pitbull.cs index 90ee4def13..1bd101d748 100644 --- a/NPCs/NormalNPCs/Pitbull.cs +++ b/NPCs/NormalNPCs/Pitbull.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.Banners; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -58,5 +59,11 @@ namespace CalamityMod.NPCs.NormalNPCs } } } + + public override void NPCLoot() + { + int bandageDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateInt : Main.expertMode ? 50 : 100; + DropHelper.DropItemCondition(npc, ItemID.AdhesiveBandage, Main.hardMode, bandageDropRate, 1, 1); + } } } diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 64aefeb672..7f956c9761 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -555,6 +555,15 @@ namespace CalamityMod r.AddTile(TileID.Anvils); r.SetResult(ItemID.Radar); r.AddRecipe(); + + // Metal Detector + r = GetNewRecipe(); + r.AddIngredient(ItemID.Wire, 10); + r.AddIngredient(ItemID.HallowedBar, 5); + r.AddIngredient(ItemID.SpelunkerGlowstick, 5); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.MetalDetector); + r.AddRecipe(); } #endregion