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

◆ PlaceThing_Tiles_CheckWandUsability()

bool Terraria.Player.PlaceThing_Tiles_CheckWandUsability ( bool canUse)
inlineprivate

Definition at line 39227 of file Player.cs.

39228 {
39229 if (inventory[selectedItem].tileWand > 0)
39230 {
39231 int tileWand = inventory[selectedItem].tileWand;
39232 canUse = false;
39233 for (int i = 0; i < 58; i++)
39234 {
39235 if (tileWand == inventory[i].type && inventory[i].stack > 0)
39236 {
39237 canUse = true;
39238 break;
39239 }
39240 }
39241 }
39242 return canUse;
39243 }
int tileWand
Definition Item.cs:89
Item[] inventory
Definition Player.cs:1257

References Terraria.Item.tileWand, and System.type.