diff options
Diffstat (limited to 'src/gui/widgets/skillinfo.cpp')
-rw-r--r-- | src/gui/widgets/skillinfo.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp index 721c4c98e..01cb0cb16 100644 --- a/src/gui/widgets/skillinfo.cpp +++ b/src/gui/widgets/skillinfo.cpp @@ -38,7 +38,7 @@ SkillInfo::SkillInfo() : skillLevel(), skillExp(), - skillMana(), + skillEffect(), useButton(), progress(0.0F), color(), @@ -94,10 +94,18 @@ void SkillInfo::update() skillLevel = strprintf(_("Lvl: %d"), baseLevel); } + if (sp) - skillMana = strprintf(_("Mana: -%d"), sp); + skillEffect = strprintf(_("Mana: -%d"), sp); else - skillMana.clear(); + skillEffect.clear(); + + if (range > 0) + { + if (!skillEffect.empty()) + skillEffect.append(" / "); + skillEffect.append(strprintf(_("Range: %d"), range)); + } level = baseLevel; skillLevelWidth = -1; |