I've updated both modcomps (water and respawn promotion) with the new button and the new well model .
I'm currently working again on the warrios of god modcomp, because the code is just not nice .
mmhh...thought a moment about it, but i guess, i can't do it.
The problem is, that the strength/the bonuses of a unit would have to be changed before the combat, and i can't see a function, which directly triggers before that.
There's only doCombat in CvGameUtils, but this function gives me only the attacker and the destination plot, and not the unit, which is attacked. I could grab the destination plot, and look, what units are there, but here begins the problem, what units are there, maybe from different civs, are you in war with all civs/only some, what state religion do they have, what unit is attacked, and maybe some things more.
To be sure, i'll take a look at it again tomorrow.
I'm currently working again on the warrios of god modcomp, because the code is just not nice .
So basically the bonuses of this promotion should apply only vs civs that have as state religion islam.
mmhh...thought a moment about it, but i guess, i can't do it.
The problem is, that the strength/the bonuses of a unit would have to be changed before the combat, and i can't see a function, which directly triggers before that.
There's only doCombat in CvGameUtils, but this function gives me only the attacker and the destination plot, and not the unit, which is attacked. I could grab the destination plot, and look, what units are there, but here begins the problem, what units are there, maybe from different civs, are you in war with all civs/only some, what state religion do they have, what unit is attacked, and maybe some things more.
To be sure, i'll take a look at it again tomorrow.