Angler no longer drops Golden Fishing Rod when fed to a Trasher

Removed Amidias dialogue about feeding the Angler to the Trashers
This commit is contained in:
CongratsIsTrash committed 2025-05-28 12:37:00 -04:00
1 parent c1a76d5727
commit 8d1ce0ae2b
5 files changed
+5 -38

No files matched your search

-7
View File
@@ -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
//
/// <summary>Don't use this. It's always `true`.</summary>
public static readonly Condition TrasherTextCondition = Create("Drops.TrasherKill", () => true);
//
// Calamity Event Flag conditions
//
@@ -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?"
+1 -6
View File
@@ -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
+3 -4
View File
@@ -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<BrimstoneWitch>());
-19
View File
@@ -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<Trasher>())
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);