Fixed exception from talking to a rescuable NPC caused by The Gift

This commit is contained in:
CongratsIsTrash committed 2026-06-05 12:04:13 -04:00
1 parent 61afc6b5ca
commit 5bbd5f5fc6
2 files changed
+1 -7

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ namespace CalamityMod.Items.Tools
orig(self, player, npc);
// Immediately exit early if it's Remix world, or if it's an NPC that should not be affected by happiness
if (Main.remixWorld || NPCID.Sets.NoTownNPCHappiness[npc.type] || NPCID.Sets.IsTownPet[npc.type])
if (Main.remixWorld || !npc.isLikeATownNPC || NPCID.Sets.NoTownNPCHappiness[npc.type] || NPCID.Sets.IsTownPet[npc.type])
return;
var gtnpc = npc.GetGlobalNPC<CalamityGlobalTownNPC>();
@@ -286,12 +286,6 @@ SupremeCataclysm.DisplayName: Cataclysm
SupremeCatastrophe.DisplayName: Catastrophe
Yharon.DisplayName: Yharon, Dragon of Rebirth
YharonPhase2: Yharon, Resplendent Phoenix
DraconicSwarmer.DisplayName: Draconic Swarmer
Dragonfolly.DisplayName: Dragonfolly
Shoreskipper.DisplayName: Shoreskipper
BrainIllusion.DisplayName: Brain Illusion
FalseBrain.DisplayName: False Brain
BloodBomb.DisplayName: Blood Bomb
AndroombaFriendly.DisplayName: Androomba Pal
// Town NPCs, Pets, etc