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

◆ AI_GetMyGroupIndexAndFillBlackList()

void Terraria.Projectile.AI_GetMyGroupIndexAndFillBlackList ( List< int > blackListedTargets,
out int index,
out int totalIndexesInGroup )
inlineprivate

Definition at line 42195 of file Projectile.cs.

42196 {
42197 index = 0;
42199 for (int i = 0; i < 1000; i++)
42200 {
42201 Projectile projectile = Main.projectile[i];
42202 if (projectile.active && projectile.owner == owner && projectile.type == type && (projectile.type != 759 || projectile.frame == Main.projFrames[projectile.type] - 1))
42203 {
42204 if (whoAmI > i)
42205 {
42206 index++;
42207 }
42209 }
42210 }
42211 }

References Terraria.Entity.active, Terraria.Projectile.frame, System.index, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.Main.projFrames, System.type, and Terraria.Projectile.type.