File: CvPlayerAI.cpp
Function: CvPlayerAI::AI_bonusTrade
Line: 6857
Replace:
With:
(thanks to Nor Me for pointing out the need for a second "isHuman()" check)
Bh
Function: CvPlayerAI::AI_bonusTrade
Line: 6857
Replace:
Code:
if (isHuman())
{
return NO_DENIAL;
}
if (GET_TEAM(getTeam()).isVassal(GET_PLAYER(ePlayer).getTeam()))
{
return NO_DENIAL;
}
if (atWar(getTeam(), GET_PLAYER(ePlayer).getTeam()))
{
return NO_DENIAL;
}
if (GET_PLAYER(ePlayer).getTeam() == getTeam())
{
return NO_DENIAL;
}
if (GET_TEAM(getTeam()).AI_getWorstEnemy() == GET_PLAYER(ePlayer).getTeam())
{
return DENIAL_WORST_ENEMY;
}
if (!isHuman() && (AI_corporationBonusVal(eBonus) > 0))
{
return DENIAL_JOKING;
}
if (GET_PLAYER(ePlayer).getNumAvailableBonuses(eBonus) > 0 && GET_PLAYER(ePlayer).AI_corporationBonusVal(eBonus) <= 0)
{
return (GET_PLAYER(ePlayer).isHuman() ? DENIAL_JOKING : DENIAL_NO_GAIN);
}
Code:
if (isHuman() && GET_PLAYER(ePlayer).isHuman())
{
return NO_DENIAL;
}
if (GET_TEAM(getTeam()).isVassal(GET_PLAYER(ePlayer).getTeam()))
{
return NO_DENIAL;
}
if (atWar(getTeam(), GET_PLAYER(ePlayer).getTeam()))
{
return NO_DENIAL;
}
if (GET_PLAYER(ePlayer).getTeam() == getTeam())
{
return NO_DENIAL;
}
if (GET_PLAYER(ePlayer).getNumAvailableBonuses(eBonus) > 0 && GET_PLAYER(ePlayer).AI_corporationBonusVal(eBonus) <= 0)
{
return (GET_PLAYER(ePlayer).isHuman() ? DENIAL_JOKING : DENIAL_NO_GAIN);
}
if (isHuman())
{
return NO_DENIAL;
}
if (GET_TEAM(getTeam()).AI_getWorstEnemy() == GET_PLAYER(ePlayer).getTeam())
{
return DENIAL_WORST_ENEMY;
}
if (AI_corporationBonusVal(eBonus) > 0)
{
return DENIAL_JOKING;
}
(thanks to Nor Me for pointing out the need for a second "isHuman()" check)
Bh