mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-28 09:33:52 +00:00
feat: show effective skill value with bonus indicator in skills panel
Read the third update field (bonusTemp/bonusPerm) for each skill slot so the skills tab displays the actual buffed value rather than just the base value. Skills buffed by food/potions/items now show "value / max (+N)" with a cyan name, and maxed-out skills show a gold bar and name for quick identification.
This commit is contained in:
parent
c48065473f
commit
a6c4f6d2e9
3 changed files with 35 additions and 5 deletions
|
|
@ -38,8 +38,11 @@ namespace game {
|
|||
|
||||
struct PlayerSkill {
|
||||
uint32_t skillId = 0;
|
||||
uint16_t value = 0;
|
||||
uint16_t value = 0; // base + permanent item bonuses
|
||||
uint16_t maxValue = 0;
|
||||
uint16_t bonusTemp = 0; // temporary buff bonus (food, potions, etc.)
|
||||
uint16_t bonusPerm = 0; // permanent spec/misc bonus (rarely non-zero)
|
||||
uint16_t effectiveValue() const { return value + bonusTemp + bonusPerm; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue