TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ NotifyNPCKilled()

static void Terraria.GameContent.Achievements.AchievementsHelper.NotifyNPCKilled ( NPC npc)
inlinestatic

Definition at line 191 of file AchievementsHelper.cs.

192 {
193 if (Main.netMode == 0)
194 {
195 if (npc.playerInteraction[Main.myPlayer])
196 {
197 NotifyNPCKilledDirect(Main.player[Main.myPlayer], npc.netID);
198 }
199 return;
200 }
201 for (int i = 0; i < 255; i++)
202 {
203 if (npc.playerInteraction[i])
204 {
205 NetMessage.SendData(97, i, -1, null, npc.netID);
206 }
207 }
208 }
static void NotifyNPCKilledDirect(Player player, int npcNetID)

References Terraria.Main.myPlayer, Terraria.NPC.netID, Terraria.Main.netMode, Terraria.GameContent.Achievements.AchievementsHelper.NotifyNPCKilledDirect(), Terraria.Main.player, Terraria.NPC.playerInteraction, and Terraria.NetMessage.SendData().

Referenced by Terraria.NPC.CountKillForAchievements().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: