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

◆ ItemCheck_UsePetLicenses()

void Terraria.Player.ItemCheck_UsePetLicenses ( Item sItem)
inlineprivate

Definition at line 43177 of file Player.cs.

43178 {
43179 if (sItem.type == 4829 && itemAnimation > 0)
43180 {
43181 LicenseOrExchangePet(sItem, ref NPC.boughtCat, 637, "Misc.LicenseCatUsed", -12);
43182 }
43183 if (sItem.type == 4830 && itemAnimation > 0)
43184 {
43185 LicenseOrExchangePet(sItem, ref NPC.boughtDog, 638, "Misc.LicenseDogUsed", -13);
43186 }
43187 if (sItem.type == 4910 && itemAnimation > 0)
43188 {
43189 LicenseOrExchangePet(sItem, ref NPC.boughtBunny, 656, "Misc.LicenseBunnyUsed", -14);
43190 }
43191 }
void LicenseOrExchangePet(Item sItem, ref bool petBoughtFlag, int npcType, string textKeyForLicense, int netMessageData)
Definition Player.cs:43250

References Terraria.NPC.boughtBunny, Terraria.NPC.boughtCat, and Terraria.NPC.boughtDog.