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

◆ CountEnemiesWhoAreImmuneToMeRightNow()

int Terraria.Projectile.CountEnemiesWhoAreImmuneToMeRightNow ( int cap)
inlineprivate

Definition at line 13901 of file Projectile.cs.

13902 {
13903 int num = 0;
13904 for (int i = 0; i < localNPCImmunity.Length; i++)
13905 {
13906 if (localNPCImmunity[i] > 0)
13907 {
13908 num++;
13909 if (num >= cap)
13910 {
13911 break;
13912 }
13913 }
13914 }
13915 return num;
13916 }

References Terraria.Projectile.localNPCImmunity.

Referenced by Terraria.Projectile.Damage().

+ Here is the caller graph for this function: