Link side-bar unit defence rating to unit's Help page (resolves #1297).
(cherry picked from commit daabe2d183
)
This commit is contained in:
parent
6b1de3bc1d
commit
fd91907e18
1 changed files with 2 additions and 1 deletions
|
@ -599,7 +599,8 @@ static config unit_defense(reports::context & rc, const unit* u, const map_locat
|
|||
}
|
||||
|
||||
tooltip << "<b>" << _("Defense: ") << span_color(color) << def << '%' << naps << "</b>";
|
||||
return text_report(str.str(), tooltip.str());
|
||||
const std::string has_variations_prefix = (u->type().show_variations_in_help() ? ".." : "");
|
||||
return text_report(str.str(), tooltip.str(), has_variations_prefix + "unit_" + u->type_id());
|
||||
}
|
||||
REPORT_GENERATOR(unit_defense,rc)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue