tunit_attack: display max HP/XP as well

This commit is contained in:
Charles Dang 2016-01-11 04:59:48 +11:00
parent ad0004899c
commit 8e31bebd87

View file

@ -127,8 +127,10 @@ static std::string format_stats(const unit& u)
str << traits << "\n";
str << font::span_color(u.hp_color()) << _("HP: ") << u.hitpoints() << "</span>" << "\n";
str << font::span_color(u.xp_color()) << _("XP: ") << u.experience() << "</span>" << "\n";
str << font::span_color(u.hp_color())
<< _("HP: ") << u.hitpoints() << "/" << u.max_hitpoints() << "</span>" << "\n";
str << font::span_color(u.xp_color())
<< _("XP: ") << u.experience() << "/" << u.max_experience() << "</span>" << "\n";
str << "</small>" << "\n";