mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show pet happiness bar in pet frame for hunter pets
This commit is contained in:
parent
84b31d3bbd
commit
88c3cfe7ab
2 changed files with 20 additions and 0 deletions
|
|
@ -214,6 +214,9 @@ public:
|
|||
void setMaxPower(uint32_t p) { maxPowers[powerType < 7 ? powerType : 0] = p; }
|
||||
void setMaxPowerByType(uint8_t type, uint32_t p) { if (type < 7) maxPowers[type] = p; }
|
||||
|
||||
uint32_t getPowerByType(uint8_t type) const { return type < 7 ? powers[type] : 0; }
|
||||
uint32_t getMaxPowerByType(uint8_t type) const { return type < 7 ? maxPowers[type] : 0; }
|
||||
|
||||
uint8_t getPowerType() const { return powerType; }
|
||||
void setPowerType(uint8_t t) { powerType = t; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue