terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ LicenseOrExchangePet()

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

Definition at line 15758 of file Player.cs.

15759 {
15760 if (this.itemTime != 0)
15761 {
15762 return;
15763 }
15764 bool flag = NPC.AnyNPCs(npcType);
15765 int useTime = sItem.useTime;
15766 this.itemTime = useTime;
15767 this.itemTimeMax = useTime;
15768 if (useTime == 0)
15769 {
15770 }
15772 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.NPC.AnyNPCs(), Terraria.Player.itemTime, j__TPar, and Terraria.NPC.UnlockOrExchangePet().