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

◆ AI_183_ZoologistStrike()

void Terraria.Projectile.AI_183_ZoologistStrike ( )
inlineprivate

Definition at line 44642 of file Projectile.cs.

44643 {
44644 velocity.X *= 0.2f;
44645 velocity.Y = 0f;
44646 spriteDirection = (direction = 1);
44647 if (velocity.X < 0f)
44648 {
44649 spriteDirection = (direction = -1);
44650 }
44651 frame++;
44652 if (frame >= Main.projFrames[type])
44653 {
44654 frame = Main.projFrames[type] - 1;
44655 }
44656 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Main.projFrames.