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

◆ ApplyInteraction()

void Terraria.NPC.ApplyInteraction ( int player)
inline

Definition at line 72285 of file NPC.cs.

72286 {
72287 if (realLife >= 0)
72288 {
72289 Main.npc[realLife].playerInteraction[player] = true;
72290 }
72291 else
72292 {
72293 playerInteraction[player] = true;
72294 }
72295 if (player < 255)
72296 {
72297 if (realLife >= 0)
72298 {
72299 Main.npc[realLife].lastInteraction = player;
72300 }
72301 else
72302 {
72303 lastInteraction = player;
72304 }
72305 }
72306 }
bool[] playerInteraction
Definition NPC.cs:113
int lastInteraction
Definition NPC.cs:115
int realLife
Definition NPC.cs:173

References Terraria.Main.npc.