phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
One thing that has always irked me was meeting a new civ and getting the
-4 "You have Traded with Our Worst Enemy"
Penalty. When you haven't even met this civ yet, it's just irritating and doesn't make the game more fun in any way. So I'm on a mission to fix this. Tracking it from the XML text, and into GameTextMgr.cpp we get this little function:
RivalTradeAttitude
searching for RivalTradeAttitude leads into CvPlayerAI.cpp with this function:
Anyone know how to make it so this function only applies to players that have been met?
-4 "You have Traded with Our Worst Enemy"
Penalty. When you haven't even met this civ yet, it's just irritating and doesn't make the game more fun in any way. So I'm on a mission to fix this. Tracking it from the XML text, and into GameTextMgr.cpp we get this little function:
RivalTradeAttitude
searching for RivalTradeAttitude leads into CvPlayerAI.cpp with this function:
Code:
int CvPlayerAI::AI_getRivalTradeAttitude(PlayerTypes ePlayer) const
{
// XXX human only?
return -(range(((GET_TEAM(getTeam()).AI_getEnemyPeacetimeGrantValue(GET_PLAYER(ePlayer).getTeam()) + (GET_TEAM(getTeam()).AI_getEnemyPeacetimeTradeValue(GET_PLAYER(ePlayer).getTeam()) / 3)) / ((GET_TEAM(getTeam()).AI_getHasMetCounter(GET_PLAYER(ePlayer).getTeam()) + 1) * 10)), 0, 4));
}
Anyone know how to make it so this function only applies to players that have been met?