added tooltips for accuracy
This commit is contained in:
parent
97c332c176
commit
ae65c0ddd9
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue