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

◆ AutomaticallyChangesDirection()

bool Terraria.Projectile.AutomaticallyChangesDirection ( )
inlineprivate

Definition at line 16416 of file Projectile.cs.

16417 {
16418 if ((aiStyle != 3 || ai[0] != 1f) && (aiStyle != 7 || ai[0] != 1f) && (aiStyle != 13 || ai[0] != 1f) && aiStyle != 65 && aiStyle != 69 && aiStyle != 114 && aiStyle != 123 && aiStyle != 112 && !manualDirectionChange && aiStyle != 67 && aiStyle != 26 && aiStyle != 15)
16419 {
16420 return aiStyle != 150;
16421 }
16422 return false;
16423 }
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....

References Terraria.Projectile.ai, Terraria.Projectile.aiStyle, and Terraria.Projectile.manualDirectionChange.

Referenced by Terraria.Projectile.Update().

+ Here is the caller graph for this function: