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

◆ FindPaintOrCoating()

Item Terraria.Player.FindPaintOrCoating ( )
inline

Definition at line 40640 of file Player.cs.

40641 {
40642 for (int i = 54; i < 58; i++)
40643 {
40644 if (inventory[i].stack > 0 && inventory[i].PaintOrCoating)
40645 {
40646 return inventory[i];
40647 }
40648 }
40649 for (int j = 0; j < 58; j++)
40650 {
40651 if (inventory[j].stack > 0 && inventory[j].PaintOrCoating)
40652 {
40653 return inventory[j];
40654 }
40655 }
40656 return null;
40657 }
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.

Referenced by Terraria.Player.TryPainting().

+ Here is the caller graph for this function: