gui/unit_recruit: Add unit type level number as a filtering criterion

The Recall dialog already did this, but Recruit did not.
This commit is contained in:
Iris Morelle 2024-03-08 20:38:53 -03:00
parent df4039d593
commit 854b812ed4

View file

@ -88,6 +88,7 @@ void unit_recruit::filter_text_changed(const std::string& text)
auto criteria = std::make_tuple(
(game_config::debug ? type->id() : ""),
type->type_name(),
std::to_string(type->level()),
unit_type::alignment_description(type->alignment(), default_gender),
(race ? race->name(default_gender) : ""),
(race ? race->plural_name() : "")