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

◆ Fishing_GetBestFishingPole()

void Terraria.Player.Fishing_GetBestFishingPole ( out Item pole)
inlineprivate

Definition at line 41432 of file Player.cs.

41433 {
41435 if (pole.fishingPole != 0)
41436 {
41437 return;
41438 }
41439 for (int i = 0; i < 58; i++)
41440 {
41441 if (inventory[i].fishingPole > pole.fishingPole)
41442 {
41443 pole = inventory[i];
41444 }
41445 }
41446 }
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767

References Terraria.Player.inventory, and Terraria.Player.selectedItem.

Referenced by Terraria.Player.GetFishingConditions().

+ Here is the caller graph for this function: