Muert39620@legacy41559547 (talk | contribs) No edit summary |
WoWGeek63444@legacy41582296 (talk | contribs) m (type: 'happiness' should be 'loyalty' for loyaltyRate) |
||
Line 8: | Line 8: | ||
:'''happiness''' (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy) |
:'''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%) |
:'''damagePercentage''' (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%) |
||
− | :'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining |
+ | :'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining loyalty (< 0, losing loyalty, > 0, gaining loyalty) |
{{template:WoW API}} |
{{template:WoW API}} |
Revision as of 14:33, 5 April 2006
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 loyalty (< 0, losing loyalty, > 0, gaining loyalty)
Template:WoW API