currently, in Warlords, this is how it works:
the vassal declares war on everyone the master is at war with
AND
if the vassal capitulated, then the vassel makes peace with everyone it was at war with
else (the vassal voluntarily sought a master), then the master declares war with everyone the vassal was at war with
---
So, if a vassal voluntarily sought a master, then the master will declare war on everyone that the vassal is at war with.
---
Speculation:
The fix means that in that voluntary case, the master will only accept a vassal if he is willing to go to war with everyone the vassal is at war with ("You" in the above example).
----
Now, in the SDK, there already is a check about this, but it does not compare the power, meaning that some leaders are willing to go to war almost always. The actual check is basically:
if (potentialVassel.
Attitude > potentialMaster.
DeclareWarRefuseAttitudeThreshold)
AND
if (potentialWarOpponent.
Attitude <= potentialMaster.
DeclareWarThemRefuseAttitudeThreshold)
then
Accept Vassel
---
For example, Alex has the following values (from the CIV4LeaderHeadInfos.xml in assets/xml/):
Code:
<DeclareWarRefuseAttitudeThreshold>ATTITUDE_ANNOYED</DeclareWarRefuseAttitudeThreshold>
<DeclareWarThemRefuseAttitudeThreshold>ATTITUDE_PLEASED</DeclareWarThemRefuseAttitudeThreshold>
I think you can see how the above check will almost always be true
---
I assume the fix just adds a power check. The question I have is does it compare each one individually (ie, just past
true to
AI_declareWarTrade), or does it sum up the power of everyone the potential vassal is at war with and compare that sum vs the power of the master plus the potential vassal?
(look
here for more technical version of this)
-Iustus