Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Juniors in a PU never have vassals
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jan 19, 2013
1 parent c9c0978 commit 1c865fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data Files/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,5 @@ Revision Log Message
299 Output the HRE Emperor
300 Rename CK2+ readme file
301 Log when government gets default conversion
302 EU3 vassals never have vassals
302 EU3 vassals never have vassals
303 Juniors in a PU never have vassals
14 changes: 14 additions & 0 deletions Source/EU3World/EU3Country.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,20 @@ void EU3Country::determineStartingAgents()

vector<EU3Country*> EU3Country::convertVassals(int initialScore, EU3Diplomacy* diplomacy)
{
if (vassals.size() == 0)
{
vector<EU3Country*> absorbedCountries;
return absorbedCountries;
}

// Am I a junior in a PU?
if (src->isIndependent() && (src != src->getHolder()->getPrimaryTitle()))
{
log("\t%s is completely absorbing all vassals (junior in PU).\n", src->getTitleString().c_str());
vector<EU3Country*> absorbedCountries = eatVassals();
return absorbedCountries;
}

int score = initialScore;
string CA = src->getCA();
if ( CA == "centralization_0")
Expand Down

0 comments on commit 1c865fc

Please sign in to comment.