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

◆ QuickGrapple_GetItemToUse()

Item Terraria.Player.QuickGrapple_GetItemToUse ( )
inline

Definition at line 6810 of file Player.cs.

6811 {
6812 Item item = null;
6813 if (Main.projHook[miscEquips[4].shoot])
6814 {
6815 item = miscEquips[4];
6816 }
6817 if (item == null)
6818 {
6819 for (int i = 0; i < 58; i++)
6820 {
6821 if (Main.projHook[inventory[i].shoot])
6822 {
6823 item = inventory[i];
6824 break;
6825 }
6826 }
6827 }
6828 return item;
6829 }
int shoot
The ID of the projectile that is fired by this item on use. Either a T:Terraria.ID....
Definition Item.cs:594
Item[] miscEquips
The player's equipment items. From indexes 0-4: Pet, Light Pet, Minecart, Mount, and Hook.
Definition Player.cs:1658
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, Terraria.Player.miscEquips, Terraria.Main.projHook, and Terraria.Item.shoot.

Referenced by Terraria.Player.QuickGrapple(), and Terraria.GameContent.ChromaHotkeyPainter.Step_Grapple().

+ Here is the caller graph for this function: