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

◆ ItemCheck_CheckFishingBobbers()

bool Terraria.Player.ItemCheck_CheckFishingBobbers ( bool canUse)
inlineprivate

Definition at line 49021 of file Player.cs.

49022 {
49023 for (int i = 0; i < 1000; i++)
49024 {
49025 Projectile projectile = Main.projectile[i];
49026 if (!projectile.active || projectile.owner != whoAmI || !projectile.bobber)
49027 {
49028 continue;
49029 }
49030 canUse = false;
49031 if (whoAmI != Main.myPlayer || projectile.ai[0] != 0f)
49032 {
49033 continue;
49034 }
49035 projectile.ai[0] = 1f;
49036 float num = -10f;
49037 if (projectile.wet && projectile.velocity.Y > num)
49038 {
49039 projectile.velocity.Y = num;
49040 }
49041 projectile.netUpdate2 = true;
49042 if (projectile.ai[1] < 0f && projectile.localAI[1] != 0f)
49043 {
49045 if (pullTheBobber)
49046 {
49048 }
49049 }
49050 }
49051 return canUse;
49052 }
void ItemCheck_CheckFishingBobber_PullBobber(Projectile bobber, int baitTypeUsed)
Definition Player.cs:49054
void ItemCheck_CheckFishingBobber_PickAndConsumeBait(Projectile bobber, out bool pullTheBobber, out int baitTypeUsed)
Definition Player.cs:49102

References Terraria.Entity.active, Terraria.Projectile.ai, Terraria.Projectile.bobber, Terraria.Projectile.localAI, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.Entity.velocity, Terraria.Entity.wet, and Microsoft.Xna.Framework.Vector2.Y.