how can I make the war non-automatic to vassal states?

globosud

Warlord
Joined
Jul 7, 2017
Messages
109
how can I make the war non-automatic to vassal states? I like the vassal system, I would like to leave them as they are, I would just like to change the fact that they go to war automatically with their master, is it possible? if anyone can tell me what to change. Thank you ps: sorry for my bad english
 
That's implemented mainly in CvTeam.cpp and CvTeamAI.cpp, and most importantly in CvTeam::declareWar and CvTeam::makePeace. However, the vassal system really cuts across the code, and vassal and master sharing all wars is probably an implicit assumption in several places outside of the team classes. So to implement this properly, I think one should take a look at every occurrence of "isVassal" and "isAVassal" in the DLL code. I've attached a screenshot showing most of the isVassal calls in CvTeam.cpp to illustrate the scope of the task.
 

Attachments

  • isVassal call locations.jpg
    isVassal call locations.jpg
    378.4 KB · Views: 164
Top Bottom