Free promotion

Puttsiomls

Chieftain
Joined
Jan 27, 2023
Messages
2
I’m creating a new unit (or attempting to) that is granted a free promotion when created, like a Janissary. I’ve looked through the data files for the Janissary and I don’t see the code that grants the free promotion. Can anyone help?
 
It's a unit ability "ABILITY_CORBACI" that applies the modifier "CORBACI_FREE_PROMOTION" to the tag "CLASS_JANISSARY". The modifier uses the "MODIFIER_PLAYER_UNIT_ADJUST_GRANT_EXPERIENCE" dynamic modifier.

You can look in the "Expansion2_UnitAbilities_Major" file for how it's set up.
 
Top Bottom