From be6edf0a05b0af62f313be6e5388d6663bcc4e73 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 30 May 2023 05:13:45 -0500 Subject: [PATCH] Prehardmode GFB Calamity boss drops. --- NPCs/Crabulon/Crabulon.cs | 4 ++++ NPCs/DesertScourge/DesertScourgeHead.cs | 5 +++-- NPCs/HiveMind/HiveMind.cs | 10 ++++++++++ NPCs/Perforator/PerforatorHive.cs | 4 ++++ NPCs/SlimeGod/SlimeGodCore.cs | 3 +++ 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/NPCs/Crabulon/Crabulon.cs b/NPCs/Crabulon/Crabulon.cs index a3c605239a..8af24d2fb9 100644 --- a/NPCs/Crabulon/Crabulon.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -25,6 +25,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; using Terraria.GameContent.ItemDropRules; +using CalamityMod.Items.Potions.Alcohol; namespace CalamityMod.NPCs.Crabulon { @@ -855,6 +856,9 @@ namespace CalamityMod.NPCs.Crabulon // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Odd Mushroom drop + npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType(), 1, 1, 9999); + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCrabulon, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 1bc7fc20ef..c797c9d3f4 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -665,7 +665,6 @@ namespace CalamityMod.NPCs.DesertScourge } } - #region Loot public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.SandBlock; @@ -752,10 +751,12 @@ namespace CalamityMod.NPCs.DesertScourge // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Acidic Rain Barrel drop + npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType()); + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDesertScourge, ModContent.ItemType(), desc: DropHelper.FirstKillText); } - #endregion public override void HitEffect(NPC.HitInfo hit) { diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 0c5dc57afd..8c8a203362 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1176,6 +1176,16 @@ namespace CalamityMod.NPCs.HiveMind // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB class emblem drops + var GFBOnly = npcLoot.DefineConditionalDropSet(DropHelper.GFB); + { + GFBOnly.Add(ItemID.WarriorEmblem); + GFBOnly.Add(ItemID.RangerEmblem); + GFBOnly.Add(ItemID.SorcererEmblem); + GFBOnly.Add(ItemID.SummonerEmblem); + GFBOnly.Add(ModContent.ItemType()); + } + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedHiveMind, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 4cd453733b..f51e89e52f 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -28,6 +28,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; using Terraria.GameContent.ItemDropRules; +using CalamityMod.Items.Ammo; namespace CalamityMod.NPCs.Perforator { @@ -574,6 +575,9 @@ namespace CalamityMod.NPCs.Perforator // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Vanquisher Arrow drop + npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType(), 1, 1, 9999); + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPerforator, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index b7a4f0b300..8b39dcc0d9 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -638,6 +638,9 @@ namespace CalamityMod.NPCs.SlimeGod // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Gelatin Crystal drop + npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ItemID.QueenSlimeCrystal); + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSlimeGod, ModContent.ItemType(), desc: DropHelper.FirstKillText); }