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

◆ ApplyInteraction()

void Terraria.NPC.ApplyInteraction ( int player)
inline

Definition at line 85702 of file NPC.cs.

85703 {
85704 if (realLife >= 0)
85705 {
85706 Main.npc[realLife].playerInteraction[player] = true;
85707 }
85708 else
85709 {
85710 playerInteraction[player] = true;
85711 }
85712 if (player < 255)
85713 {
85714 if (realLife >= 0)
85715 {
85716 Main.npc[realLife].lastInteraction = player;
85717 }
85718 else
85719 {
85720 lastInteraction = player;
85721 }
85722 }
85723 }
bool[] playerInteraction
Tracks which T:Terraria.Players have damaged this NPC. Damaging boss minions or other parts of a boss...
Definition NPC.cs:529
int lastInteraction
The F:Terraria.Entity.whoAmI of the T:Terraria.Player that last damaged this NPC. Used to award Banne...
Definition NPC.cs:536
int realLife
Stores the index (the F:Terraria.Entity.whoAmI) of a single NPC. This NPC will then share a health po...
Definition NPC.cs:604

References Terraria.Main.npc.