Skip to content

Commit

Permalink
Write the titled names of factions which use a definite article corre…
Browse files Browse the repository at this point in the history
…ctly (e.g. "Kingdom of the Netherlands" instead of "Kingdom of Netherlands")
  • Loading branch information
Andrettin committed Jan 6, 2022
1 parent eadad35 commit e294c85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/player/faction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,12 @@ std::string faction::get_titled_name(const government_type government_type, cons
if (this->uses_short_name(government_type)) {
return this->get_adjective() + " " + title_name;
} else {
return title_name + " of " + this->get_name();
std::string str = title_name + " of ";
if (this->definite_article) {
str += "the ";
}
str += this->get_name();
return str;
}
}

Expand Down

0 comments on commit e294c85

Please sign in to comment.