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:
Kelsi 2026-03-13 10:58:05 -07:00
parent c48065473f
commit a6c4f6d2e9
3 changed files with 35 additions and 5 deletions

View file

@ -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; }
};
/**