Skip to content

Commit

Permalink
Heroes now appear in GSM not only if their home province has their cu…
Browse files Browse the repository at this point in the history
…lture, but also if it's owner has their culture
  • Loading branch information
Andrettin committed Nov 21, 2015
1 parent 56fc86f commit 2b18db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stratagus/grand_strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,12 +894,12 @@ void CGrandStrategyGame::DoTurn()
//check if any heroes should begin activity this year
for (size_t i = 0; i < this->Heroes.size(); ++i) {
if (
// for historical personages to appear, they require three things: the year of their historical rise to prominence, ownership of the province in which they were born or raised, and that that province be of the correct culture for them, if they belonged to the cultural majority
// for historical personages to appear, they require three things: the year of their historical rise to prominence, ownership of the province in which they were born or raised, and that that province be of the correct culture for them, if they belonged to the cultural majority (or if the civilization of the province's owner is the same as the hero, as undoubtedly administrators and the like would exist from the faction's culture in any of its provinces)
this->Heroes[i]->Year == GrandStrategyYear
&& this->Heroes[i]->State == 0
&& this->Heroes[i]->ProvinceOfOrigin != NULL
&& this->Heroes[i]->ProvinceOfOrigin->Owner != NULL
&& this->Heroes[i]->ProvinceOfOrigin->Civilization == this->Heroes[i]->Civilization
&& (this->Heroes[i]->ProvinceOfOrigin->Civilization == this->Heroes[i]->Civilization || this->Heroes[i]->ProvinceOfOrigin->Owner->Civilization == this->Heroes[i]->Civilization)
) {
//make heroes appear in their start year
this->Heroes[i]->Create();
Expand Down

0 comments on commit 2b18db3

Please sign in to comment.