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

◆ TogglePet()

void Terraria.Player.TogglePet ( )
inline

Definition at line 15690 of file Player.cs.

15691 {
15692 hideMisc[0] = !hideMisc[0];
15693 if (hideMisc[0])
15694 {
15696 }
15697 }
BitsByte hideMisc
Definition Player.cs:1882
Item[] miscEquips
The player's equipment items. From indexes 0-4: Pet, Light Pet, Minecart, Mount, and Hook.
Definition Player.cs:1658
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684
void ClearBuff(int type)
Removes the provided buff type from the player and shuffles the remaining buff indexes down to fill t...
Definition Player.cs:5893

References Terraria.Player.buffType, Terraria.Player.ClearBuff(), Terraria.Player.hideMisc, and Terraria.Player.miscEquips.

Referenced by Terraria.UI.ItemSlot.GetGamepadInstructions().

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