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

◆ LicenseOrExchangePet()

void Terraria.Player.LicenseOrExchangePet ( Item sItem,
ref bool petBoughtFlag,
int npcType,
string textKeyForLicense,
int netMessageData )
inlineprivate

Definition at line 45161 of file Player.cs.

45162 {
45163 if (ItemTimeIsZero && (!petBoughtFlag || NPC.AnyNPCs(npcType)))
45164 {
45167 }
45168 }
bool ItemTimeIsZero
Definition Player.cs:4402
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907

References Terraria.NPC.AnyNPCs(), Terraria.Player.ApplyItemTime(), Terraria.Player.ItemTimeIsZero, and Terraria.NPC.UnlockOrExchangePet().

Referenced by Terraria.Player.ItemCheck_UsePetLicenses().

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