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

◆ AutoFinchStaff()

void Terraria.Player.AutoFinchStaff ( )
inline

Definition at line 36476 of file Player.cs.

36477 {
36478 int num = FindItem(4281);
36479 if (num != -1)
36480 {
36481 Item item = inventory[num];
36482 AddBuff(item.buffType, 3600, quiet: false);
36483 }
36484 }
int FindItem(int netid)
Definition Player.cs:56652
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Gives the player the provided buff. This accounts for if the player is immune to the buff....
Definition Player.cs:5700
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.AddBuff(), Terraria.Item.buffType, Terraria.Player.FindItem(), and Terraria.Player.inventory.

Referenced by Terraria.Player.Spawn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: