From 3db0da48d170cfb8e43a002e14d0002ac0ddc2f4 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 30 Jan 2020 22:52:58 -0500 Subject: [PATCH] gastropod drops 5-10 pink gel --- NPCs/CalamityGlobalNPCLoot.cs | 4 ++++ NPCs/NormalNPCs/WulfrumSlime.cs | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 546859b6c2..b0bac04d7b 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1683,6 +1683,10 @@ namespace CalamityMod.NPCs DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5, 1, 4); break; + case NPCID.Gastropod: + DropHelper.DropItem(npc, ItemID.PinkGel, 5, 10); + break; + default: break; } diff --git a/NPCs/NormalNPCs/WulfrumSlime.cs b/NPCs/NormalNPCs/WulfrumSlime.cs index 4d66033d02..01227d0823 100644 --- a/NPCs/NormalNPCs/WulfrumSlime.cs +++ b/NPCs/NormalNPCs/WulfrumSlime.cs @@ -60,11 +60,8 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); - if (Main.expertMode && Main.rand.NextBool(2)) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); - } + DropHelper.DropItem(npc, ModContent.ItemType(), 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, 0.5f, 1, 1); } } }