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

◆ SmartSelect_GetAvailableToolRanges()

void Terraria.Player.SmartSelect_GetAvailableToolRanges ( out int pickRange,
out int axeRange,
out int hammerRange,
out int cannonRange,
out int extractItemRange,
out int paintScraperRange )
inlineprivate

Definition at line 16123 of file Player.cs.

16124 {
16125 pickRange = -10;
16126 axeRange = -10;
16127 hammerRange = -10;
16128 cannonRange = -10;
16129 extractItemRange = -10;
16130 paintScraperRange = -10;
16131 for (int i = 0; i < 50; i++)
16132 {
16133 if (inventory[i].pick > 0 && pickRange == -10)
16134 {
16136 }
16137 if (inventory[i].axe > 0 && axeRange == -10)
16138 {
16140 }
16141 if (inventory[i].hammer > 0 && hammerRange == -10)
16142 {
16144 }
16145 if ((inventory[i].type == 929 || inventory[i].type == 1338 || inventory[i].type == 1345) && cannonRange == -10)
16146 {
16148 }
16150 {
16152 }
16154 {
16156 }
16157 }
16158 }
static bool[] IsPaintScraper
If true for a given item type (F:Terraria.Item.type), then that item is a paint scraper....
Definition ItemID.cs:430
static int[] ExtractinatorMode
Indicates which extractinator type an item belongs to. An extractType of 0 represents the default ext...
Definition ItemID.cs:1352
int tileBoost
Additional tile range provided by this tool or tile. Copper Pickaxe has a value of -1,...
Definition Item.cs:429
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
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.ID.ItemID.Sets.ExtractinatorMode, Terraria.Player.inventory, Terraria.ID.ItemID.Sets.IsPaintScraper, Terraria.Item.tileBoost, and Terraria.Item.type.

Referenced by Terraria.Player.SmartSelect_GetToolStrategy().

+ Here is the caller graph for this function: