Von Evilstein
Chieftain
- Joined
- Jan 10, 2008
- Messages
- 7
Hi all.
I see that Sureshot add Religion promotion and it's a very good idea.
So I try to add them in my mod but in a different way:
I add this in the CvEventManager:
def onUnitBuilt part
So now, every unit built which have a religion define in the unitinfo.xlm (Priest, Severous etc...), get the promotion.
BUT, what I want is when a unit is built and gain a religion, a warrior for exemple. The unit get the promotion too. And now it doesn't work.
Can you help me for implemented this?
It will be a very good improvement in a next release, because it will add a better "visual effect". The bonus can be weak (ex: +5% jungle def for octopus).
But it will help to see which unit have a specific religion thanks to the promotion icon. In a ennemy stack, you could'nt know which unit is veil or whatever.
Hyborem can be very happy if he can attack a pack and know that there is a lot of Order religion unit (or not ^^).
PS: You make a very good work here ^^.
I see that Sureshot add Religion promotion and it's a very good idea.
So I try to add them in my mod but in a different way:
I add this in the CvEventManager:
def onUnitBuilt part
Spoiler :
if unit.getReligion() == gc.getInfoTypeForString('RELIGION_THE_ASHEN_VEIL'):
unit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_VEIL'), True)
unit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_VEIL'), True)
So now, every unit built which have a religion define in the unitinfo.xlm (Priest, Severous etc...), get the promotion.
BUT, what I want is when a unit is built and gain a religion, a warrior for exemple. The unit get the promotion too. And now it doesn't work.
Can you help me for implemented this?
It will be a very good improvement in a next release, because it will add a better "visual effect". The bonus can be weak (ex: +5% jungle def for octopus).
But it will help to see which unit have a specific religion thanks to the promotion icon. In a ennemy stack, you could'nt know which unit is veil or whatever.
Hyborem can be very happy if he can attack a pack and know that there is a lot of Order religion unit (or not ^^).
PS: You make a very good work here ^^.