tunit_attack: display max HP/XP as well
This commit is contained in:
parent
ad0004899c
commit
8e31bebd87
1 changed files with 4 additions and 2 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue