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

◆ GetBestPickaxe()

Item Terraria.Player.GetBestPickaxe ( )
inline

Definition at line 37842 of file Player.cs.

37843 {
37844 Item item = null;
37845 for (int i = 0; i < 50; i++)
37846 {
37847 if (inventory[i].stack > 0 && inventory[i].pick > 0 && (item == null || inventory[i].pick > item.pick))
37848 {
37849 item = inventory[i];
37850 }
37851 }
37852 return item;
37853 }
Item[] inventory
Definition Player.cs:1257

References System.item, and Terraria.Item.pick.