From cb1a6a5cb4f1bc9700a9dbf46a3ca21d0e3d3e13 Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Wed, 22 Jun 2022 01:33:45 -0700 Subject: [PATCH] Fixed extra deus and exo mech drops --- NPCs/AstrumDeus/AstrumDeusHead.cs | 10 +++++----- NPCs/ExoMechs/Ares/AresBody.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 90d18afcc3..e5eee41c4f 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -320,17 +320,17 @@ namespace CalamityMod.NPCs.AstrumDeus } npcLoot.Add(DropHelper.PerPlayer(ItemID.GreaterHealingPotion, 1, 8, 14)); - npcLoot.Add(ModContent.ItemType(), 10); + lastWorm.Add(ModContent.ItemType(), 10); // Relic bool shouldDropRelic(DropAttemptInfo info) => (CalamityWorld.revenge || Main.masterMode) && !ShouldNotDropThings(info.npc); npcLoot.AddIf(shouldDropRelic, ModContent.ItemType()); // Fragments - npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentSolar, 1, 16, 24, 20, 32)); - npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentVortex, 1, 16, 24, 20, 32)); - npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentNebula, 1, 16, 24, 20, 32)); - npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentStardust, 1, 16, 24, 20, 32)); + lastWorm.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentSolar, 1, 16, 24, 20, 32)); + lastWorm.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentVortex, 1, 16, 24, 20, 32)); + lastWorm.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentNebula, 1, 16, 24, 20, 32)); + lastWorm.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentStardust, 1, 16, 24, 20, 32)); // Lore bool firstDeusKill(DropAttemptInfo info) => !DownedBossSystem.downedAstrumDeus && !ShouldNotDropThings(info.npc); diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index e66508cdcc..96a5f26948 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1346,7 +1346,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(info => info.npc.type == ModContent.NPCType()), ModContent.ItemType())); // Relic - npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType()); + mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => Main.masterMode || CalamityWorld.revenge), ModContent.ItemType())); // Lore item mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs), ModContent.ItemType()));