From 6c8abd4fe3d9f4de09bcbeb2a24b6ad25595d1ae Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:02:37 -0400 Subject: [PATCH] fixed fishron wings? and deerclops weapons not getting blocked properly in classic --- NPCs/CalamityGlobalNPCLoot.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index b7a6fc97b2..0cd01d5351 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -916,7 +916,7 @@ namespace CalamityMod.NPCs if (notExpert is LeadingConditionRule LCR_NotExpert) { LCR_NotExpert.ChainedRules.RemoveAll((chainAttempt) => - chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.LucyTheAxe); + chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.PewMaticHorn); // Define a replacement rule which drops the weapons Calamity style. var deerWeapons = new int[] @@ -1353,11 +1353,11 @@ namespace CalamityMod.NPCs ItemID.FishronWings, }; LCR_NotExpert.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, dukeItems)); - } - // Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set. - dukeRootRules.RemoveAll((rule) => - rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings); + // Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set. + dukeRootRules.RemoveAll((rule) => + rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings); + } } catch (ArgumentNullException) { }