Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NPCKillAttempt.cs
Go to the documentation of this file.
2
3public struct NPCKillAttempt
4{
5 public readonly NPC npc;
6
7 public readonly int netId;
8
9 public readonly bool active;
10
11 public NPCKillAttempt(NPC target)
12 {
13 npc = target;
14 netId = target.netID;
15 active = target.active;
16 }
17
18 public bool DidNPCDie()
19 {
20 return !npc.active;
21 }
22
24 {
25 if (!DidNPCDie())
26 {
27 return npc.netID != netId;
28 }
29 return true;
30 }
31}
int netID
Definition NPC.cs:531