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

◆ ItemCheck_CheckFishingBobbers()

bool Terraria.Player.ItemCheck_CheckFishingBobbers ( bool canUse)
inlineprivate

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 }
53090 canUse = false;
53091 if (whoAmI != Main.myPlayer || projectile.ai[0] != 0f)
53092 {
53093 continue;
53094 }
53095 projectile.ai[0] = 1f;
53096 float num = -10f;
53097 if (projectile.wet && projectile.velocity.Y > num)
53098 {
53099 projectile.velocity.Y = num;
53100 }
53101 projectile.netUpdate2 = true;
53102 if (projectile.ai[1] < 0f && projectile.localAI[1] != 0f)
53103 {
53105 if (pullTheBobber)
53106 {
53108 }
53109 }
53110 }
53111 return canUse;
53112 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
void ItemCheck_CheckFishingBobber_PullBobber(Projectile bobber, int baitTypeUsed)
Definition Player.cs:53114
void ItemCheck_CheckFishingBobber_PickAndConsumeBait(Projectile bobber, out bool pullTheBobber, out int baitTypeUsed)
Definition Player.cs:53167

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: