mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 19:48:11 +00:00
made it so accuracy is shown in the recruit dialog
This commit is contained in:
parent
afaf773a75
commit
31e8b24c9b
@ -883,8 +883,13 @@ void unit_preview_pane::draw_contents()
|
||||
if (!special.empty()) {
|
||||
text << "<166,146,117> " << special << "\n";
|
||||
}
|
||||
std::string accuracy = at_it->accuracy_parry_description();
|
||||
if(accuracy.empty() == false) {
|
||||
accuracy += " ";
|
||||
}
|
||||
|
||||
text << "<166,146,117> " << at_it->damage() << "-" << at_it->num_attacks()
|
||||
<< " -- " << _(at_it->range().c_str()) << "\n";
|
||||
<< " " << accuracy << "-- " << _(at_it->range().c_str()) << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user