From 6481b733fbf35b4c354289a65bb0be97b5b04707 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 9 Nov 2024 10:14:04 +0000 Subject: [PATCH] chore: restructure files --- Content/{BossOverrides.cs => PlanteraOverrides.cs} | 5 ++++- Content/{Recipes.cs => PlanteraRecipes.cs} | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename Content/{BossOverrides.cs => PlanteraOverrides.cs} (83%) rename Content/{Recipes.cs => PlanteraRecipes.cs} (100%) diff --git a/Content/BossOverrides.cs b/Content/PlanteraOverrides.cs similarity index 83% rename from Content/BossOverrides.cs rename to Content/PlanteraOverrides.cs index d6272e9..18d651b 100644 --- a/Content/BossOverrides.cs +++ b/Content/PlanteraOverrides.cs @@ -14,7 +14,9 @@ namespace Continuity.Content { if (npc.type == NPCID.Plantera) { - npcLoot.Add(ItemDropRule.Common(ModContent.ItemType(), 1, 25, 35)); + LeadingConditionRule notExpertRule = new LeadingConditionRule(new Conditions.NotExpert()); + notExpertRule.OnSuccess(ItemDropRule.Common(ModContent.ItemType(), 1, 10, 35)); + npcLoot.Add(notExpertRule); } } } @@ -25,6 +27,7 @@ namespace Continuity.Content { if (item.type == ItemID.PlanteraBossBag) { + itemLoot.Add(ItemDropRule.Common(ModContent.ItemType(), 1, 25, 35)); short[] toRemove = { ItemID.TheAxe, ItemID.PygmyStaff, diff --git a/Content/Recipes.cs b/Content/PlanteraRecipes.cs similarity index 100% rename from Content/Recipes.cs rename to Content/PlanteraRecipes.cs