From 4495fd9cc384ee737cc24e9b330ba8cfa37fe31d Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Wed, 7 Dec 2022 22:03:35 +0100 Subject: [PATCH] planera drops chlorophyte ore --- Changes/NPCLoot.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Changes/NPCLoot.cs b/Changes/NPCLoot.cs index 422d790..bdaeb9c 100644 --- a/Changes/NPCLoot.cs +++ b/Changes/NPCLoot.cs @@ -12,8 +12,13 @@ public class NpcLoot : GlobalNPC { public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) { int id = npc.type; + if (NPCID.Sets.CountsAsCritter[id]) { npcLoot.Add(ItemDropRule.Common(ModContent.ItemType(), 400, 1, 1)); } + + if (NPCID.Plantera == id) { + npcLoot.Add(ItemDropRule.Common(ItemID.ChlorophyteOre, 1, 60, 80)); + } } }