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

◆ AI_183_ZoologistStrike()

void Terraria.Projectile.AI_183_ZoologistStrike ( )
inlineprivate

Definition at line 35161 of file Projectile.cs.

35162 {
35163 velocity.X *= 0.2f;
35164 velocity.Y = 0f;
35165 spriteDirection = (direction = 1);
35166 if (velocity.X < 0f)
35167 {
35168 spriteDirection = (direction = -1);
35169 }
35170 frame++;
35171 if (frame >= Main.projFrames[type])
35172 {
35173 frame = Main.projFrames[type] - 1;
35174 }
35175 }
Vector2 velocity
Definition Entity.cs:16

References Terraria.Main.projFrames, and System.type.