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

◆ SubAI_HandleTemporaryCatchableNPCPlayerInvulnerability()

void Terraria.NPC.SubAI_HandleTemporaryCatchableNPCPlayerInvulnerability ( )
inlineprivate

Definition at line 107385 of file NPC.cs.

107386 {
107387 if (type >= 0 && catchableNPCTempImmunityCounter > 0)
107388 {
107389 if (releaseOwner != 255 || SpawnedFromStatue)
107390 {
107392 }
107393 bool num = friendly;
107396 {
107397 friendly = true;
107398 }
107399 else
107400 {
107402 }
107403 if (num != friendly)
107404 {
107405 netUpdate = true;
107406 }
107407 }
107408 }
bool SpawnedFromStatue
Definition NPC.cs:484
bool friendly
Indicates that an NPC is friendly to players. If true, a player won't damage the NPC and the NPC won'...
Definition NPC.cs:1197
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990
int catchableNPCTempImmunityCounter
Definition NPC.cs:1162
bool catchableNPCOriginallyFriendly
Definition NPC.cs:1284
short releaseOwner
Identifies the player who released this NPC into the world. Used mainly for released critters....
Definition NPC.cs:514
bool netUpdate
Definition NPC.cs:1130