WoW:API GetPetHappiness: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 9: Line 9:
:'''damagePercentage''' (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
:'''damagePercentage''' (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
:'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining happiness (< 0, losing loyalty, > 0, gaining loyalty)
:'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining happiness (< 0, losing loyalty, > 0, gaining loyalty)
{{template:WoW API}}

Revision as of 19:44, 30 December 2005

Returns the pet's happiness, damage percentage, and loyalty gain rate.

happiness, damagePercentage, loyaltyRate = GetPetHappiness();

Returns:
happiness (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
damagePercentage (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
loyaltyRate (integer) - the rate at which your pet is currently gaining happiness (< 0, losing loyalty, > 0, gaining loyalty)

Template:WoW API