added tooltips for accuracy

This commit is contained in:
David White 2008-05-04 17:36:37 +00:00
parent 97c332c176
commit ae65c0ddd9

View file

@ -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);