Definition at line 53081 of file Player.cs.
53082 {
53083 for (int i = 0; i < 1000; i++)
53084 {
53085 Projectile projectile = Main.projectile[i];
53086 if (!projectile.active || projectile.owner !=
whoAmI || !projectile.bobber)
53087 {
53088 continue;
53089 }
53091 if (
whoAmI != Main.myPlayer || projectile.ai[0] != 0
f)
53092 {
53093 continue;
53094 }
53095 projectile.ai[0] = 1
f;
53097 if (projectile.wet && projectile.velocity.Y >
num)
53098 {
53099 projectile.velocity.Y =
num;
53100 }
53101 projectile.netUpdate2 = true;
53102 if (projectile.ai[1] < 0
f && projectile.localAI[1] != 0
f)
53103 {
53106 {
53108 }
53109 }
53110 }
53112 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
void ItemCheck_CheckFishingBobber_PullBobber(Projectile bobber, int baitTypeUsed)
void ItemCheck_CheckFishingBobber_PickAndConsumeBait(Projectile bobber, out bool pullTheBobber, out int baitTypeUsed)
References Terraria.Entity.active, Terraria.Projectile.ai, Terraria.Projectile.bobber, Terraria.Player.ItemCheck_CheckFishingBobber_PickAndConsumeBait(), Terraria.Player.ItemCheck_CheckFishingBobber_PullBobber(), Terraria.Projectile.localAI, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.Entity.velocity, Terraria.Entity.wet, and Terraria.Entity.whoAmI.
Referenced by Terraria.Player.ItemCheck_CheckCanUse().