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

◆ ProjectileFixDesperation()

void Terraria.Projectile.ProjectileFixDesperation ( )
inline

Definition at line 20936 of file Projectile.cs.

20937 {
20938 if (owner < 0 || owner >= 255)
20939 {
20940 return;
20941 }
20942 switch (type)
20943 {
20944 case 461:
20945 case 632:
20946 case 642:
20947 case 644:
20948 {
20949 for (int i = 0; i < 1000; i++)
20950 {
20951 if (Main.projectile[i].owner == owner && (float)Main.projectile[i].identity == ai[1] && Main.projectile[i].active)
20952 {
20953 ai[1] = i;
20954 break;
20955 }
20956 }
20957 break;
20958 }
20959 }
20960 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Projectile.ai, Terraria.Projectile.owner, Terraria.Main.projectile, and Terraria.Projectile.type.

Referenced by Terraria.MessageBuffer.GetData().

+ Here is the caller graph for this function: