deanej
Deity
I'm hoping to have a trait in my mod that would give a leader with the trait a diplo bonus with other civs. I've found this code in RFC in CvPlayerAI::AI_getAttitudeVal:
However, I'm not sure how to convert it to a trait. I was hoping to add something like iDiploBonus in Civ4TraitInfos so that the value wouldn't be hardcoded in the DLL. It would also be nice to implement a trait that makes the leader not affected by this bonus.
Code:
if (ePlayer == FRANCE) {
if ((getID() != ROME) && (getID() != GREECE)
&& (getID() != SPAIN) && (getID() != ENGLAND) && (getID() != GERMANY) && (getID() != RUSSIA)
&& (getID() != VIKING)
&& (getID() != NETHERLANDS) && (getID() != PORTUGAL))
iAttitude += 8;
}