From 8d1ce0ae2b6693078086a2e95f24d64f40e8ca4a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 28 May 2025 12:37:00 -0400 Subject: [PATCH] Angler no longer drops Golden Fishing Rod when fed to a Trasher Removed Amidias dialogue about feeding the Angler to the Trashers --- CalamityConditions.cs | 7 ------- .../en-US/Mods.CalamityMod.NPCs.hjson | 3 +-- NPCs/CalamityGlobalNPCLoot.cs | 7 +------ NPCs/TownNPCs/SeaKing.cs | 7 +++---- Utilities/DropHelper.cs | 19 ------------------- 5 files changed, 5 insertions(+), 38 deletions(-) diff --git a/CalamityConditions.cs b/CalamityConditions.cs index 13b295e844..b402f2a872 100644 --- a/CalamityConditions.cs +++ b/CalamityConditions.cs @@ -23,13 +23,6 @@ namespace CalamityMod public static readonly Condition PlayerHasWings = Create("HasWings", () => Main.LocalPlayer.wingTimeMax > 0); public static readonly Condition PlayerAlcoholPoisoned = Create("AlcoholPoison", () => Main.LocalPlayer.Calamity().alcoholPoisoning); - // - // NPC conditions - // - - /// Don't use this. It's always `true`. - public static readonly Condition TrasherTextCondition = Create("Drops.TrasherKill", () => true); - // // Calamity Event Flag conditions // diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index c2c5201c85..5fe6108884 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -613,8 +613,7 @@ SeaKing: { Night1: There lurk horrifying creatures beyond the light of our homes. You should take care. Night2: My eyes are not well suited to bright lights after so many years of darkness. The peace of the night is welcome. Night3: Oh, me? I do not sleep, it is part of my nature. - Angler1: Meet me at {0}'s house at night. We will throw him to the Trashers. - Angler2: Not sure how {0} has not been roasted and digested by now, hanging around the sulphuric seas for so long. Perhaps it got to his head. + Angler: Not sure how {0} has not been roasted and digested by now, hanging around the sulphuric seas for so long. Perhaps it got to his head. BrimstoneWitch: I must admit, the Witch's presence is unsettling to me. But so many years have passed, and she too has suffered much. DrunkPrincess: Rumor has it {0} drinks to forget her troubled past. PartyGirl: "{0} asked if my nose could be used as a vuvuzela. What is a vuvuzela?" diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 159d4cd730..d8e92c192e 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1115,14 +1115,9 @@ namespace CalamityMod.NPCs break; // Angler - // Golden Fishing Rod @ 100% IF fed to a Trasher - // OTHERWISE, // Golden Fishing Rod @ 8.33% IF Hardmode case NPCID.Angler: - LeadingConditionRule trasherLCR = new LeadingConditionRule(DropHelper.AnglerFedToTrasherCondition); - trasherLCR.Add(ItemDropRule.ByCondition(DropHelper.TrasherText, ItemID.GoldenFishingRod)); - trasherLCR.OnFailedConditions(ItemDropRule.ByCondition(DropHelper.Hardmode(), ItemID.GoldenFishingRod, 12)); - npcLoot.Add(trasherLCR); + hardmode.Add(ItemID.GoldenFishingRod, 12, 1, 1); break; #endregion diff --git a/NPCs/TownNPCs/SeaKing.cs b/NPCs/TownNPCs/SeaKing.cs index 9e2c6cd3e8..604abc2f68 100644 --- a/NPCs/TownNPCs/SeaKing.cs +++ b/NPCs/TownNPCs/SeaKing.cs @@ -103,11 +103,10 @@ namespace CalamityMod.NPCs.TownNPCs dialogue.Add(this.GetLocalizedValue("Chat.Night3")); } - int lilBitch = NPC.FindFirstNPC(NPCID.Angler); - if (lilBitch != -1) + int angler = NPC.FindFirstNPC(NPCID.Angler); + if (angler != -1) { - dialogue.Add(this.GetLocalization("Chat.Angler1").Format(Main.npc[lilBitch].GivenName)); - dialogue.Add(this.GetLocalization("Chat.Angler2").Format(Main.npc[lilBitch].GivenName)); + dialogue.Add(this.GetLocalization("Chat.Angler").Format(Main.npc[angler].GivenName)); } int witch = NPC.FindFirstNPC(ModContent.NPCType()); diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index 6b19c38c64..57b5b078bb 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -832,25 +832,6 @@ namespace CalamityMod return p.Calamity().tarraSet; }); - internal const float TrasherEatDistance = 96f; - public static IItemDropRuleCondition AnglerFedToTrasherCondition = If((info) => - { - bool trasherNearby = false; - foreach (NPC nearby in Main.ActiveNPCs) - { - if (nearby.type != ModContent.NPCType()) - continue; - if (info.npc.Distance(nearby.Center) < TrasherEatDistance) - { - trasherNearby = true; - break; - } - } - return trasherNearby; - }); - // The text is a separate rule so it doesn't show up on the non-Trasher Fishing Rod drop which only occurs if the Angler is not fed to a Trasher - public static IItemDropRuleCondition TrasherText => CalamityConditions.TrasherTextCondition.ToDropCondition(ShowItemDropInUI.Always); - // Remix seed drop rules public static IItemDropRuleCondition Remix => Condition.RemixWorld.ToDropCondition(ShowItemDropInUI.WhenConditionSatisfied); public static IItemDropRuleCondition NotRemix => Condition.NotRemixWorld.ToDropCondition(ShowItemDropInUI.WhenConditionSatisfied);