mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 15:46:57 +00:00
added tooltips for accuracy
This commit is contained in:
parent
97c332c176
commit
ae65c0ddd9
@ -260,6 +260,16 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
|
||||
tooltip << effdmg << " " << _n("tooltip^damage", "damage", effdmg) << ", ";
|
||||
tooltip << nattacks << " " << _n("tooltip^attack", "attacks", nattacks);
|
||||
|
||||
const int accuracy = at_it->accuracy();
|
||||
if(accuracy) {
|
||||
tooltip << " " << (accuracy > 0 ? "+" : "") << accuracy << "% " << _n("tooltip^accuracy", "accuracy", accuracy);
|
||||
}
|
||||
|
||||
const int parry = at_it->parry();
|
||||
if(parry) {
|
||||
tooltip << " " << (parry > 0 ? "+" : "") << parry << "% " << _n("tooltip^parry", "parry", parry);
|
||||
}
|
||||
|
||||
str<<"\n";
|
||||
res.add_text(str,tooltip);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user