platyping
Sleeping Dragon
OK Now I will play as russia.
If I choose Stalin - every new unit will have Combat I
If I choose Peter - every new unit will have City Garrison I
If I choose Cathy - every new unit will have
Now I can set adding promotion by nation (civ) as complex. I very need possibility set adding promotion by leader.
So you mean:
For every unit built,
if leader is AAA, gives promotion AAA
if leader is BBB, gives promotion BBB
......
if leader is ZZZ, gives promotion ZZZ
This can be done, but I highly doubt it is advisable to do it in python.
For instance, if you have 50 leaders in your mod, this means for every unit built, it has to go through 50 if statements, which is definitely going to be taxing on performance.
My suggestion is add a 3rd trait for each leader, where the 3rd trait adds the promotion to the units you want.
Simple XML work then, no python involved, not taxing on performance