Adds the ability to add and remove traits from leaders through python.
I have tried to test the code as best as possible to make sure when a leader
trait is added or removed all of the game attributes are updated as well.
Please report any inconsistent behavior as soon as you find it so I can fix the
issue and make a new release.
-----Notes to Modmakers-----
If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the SDK files I have added
// < Scriptable Leader Traits Start > and
// < Scriptable Leader Traits End > in all of the places where changes
were made.
As part of the changes to the SDK files I have also included two new methods in
the CvPlayer class and exposed them to python they are:
void CvPlayer::addTrait(TraitTypes eTrait);
void CvPlayer::removeTrait(TraitTypes eTrait);
This way any traits in the game can be added or removed through python.
-----Version Information-----
-----v0.1.1------
- Added missing code provided by Kael to addTrait and removeTrait
-----===Credits & Thanks===-----
- Exavier
Composite Mod - readme.txt format
I have tried to test the code as best as possible to make sure when a leader
trait is added or removed all of the game attributes are updated as well.
Please report any inconsistent behavior as soon as you find it so I can fix the
issue and make a new release.
-----Notes to Modmakers-----
If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the SDK files I have added
// < Scriptable Leader Traits Start > and
// < Scriptable Leader Traits End > in all of the places where changes
were made.
As part of the changes to the SDK files I have also included two new methods in
the CvPlayer class and exposed them to python they are:
void CvPlayer::addTrait(TraitTypes eTrait);
void CvPlayer::removeTrait(TraitTypes eTrait);
This way any traits in the game can be added or removed through python.
-----Version Information-----
-----v0.1.1------
- Added missing code provided by Kael to addTrait and removeTrait
Spoiler :
-----===Credits & Thanks===-----
- Exavier
Composite Mod - readme.txt format