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

◆ IsDamageDodgeable()

bool Terraria.NPC.IsDamageDodgeable ( )
inline

Definition at line 84423 of file NPC.cs.

84424 {
84425 switch (type)
84426 {
84427 case 21:
84428 case 68:
84429 return ai[1] != 2f;
84430 case 636:
84431 return !Main.dayTime;
84432 default:
84433 return true;
84434 }
84435 }
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
Definition NPC.cs:997
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

References Terraria.NPC.ai, Terraria.Main.dayTime, and Terraria.NPC.type.