Hey all,
So I've been tinkering with new World Congress events in the dll, and I've got one almost finished. The resolution shows up in the congress window, I can choose the city-state I want to target, and it all succeeds, except, well, the influence gain I was aiming for isn't working. Here's the relevant code:
The idea is this:
Any ideas why it isn't working?
Note: the 'bRaiseCityStateInfluenceToAlly' is a custom attribute I added, and it is appearing in the SQL database correctly.
So I've been tinkering with new World Congress events in the dll, and I've got one almost finished. The resolution shows up in the congress window, I can choose the city-state I want to target, and it all succeeds, except, well, the influence gain I was aiming for isn't working. Here's the relevant code:
Code:
if (GetEffects()->bRaiseCityStateInfluenceToAlly)
{
if (!GET_PLAYER(ePlayer).isMinorCiv())
{
for (int iMinor = MAX_MAJOR_CIVS; iMinor < MAX_CIV_PLAYERS; iMinor++)
{
PlayerTypes eMinor = (PlayerTypes) iMinor;
if (GET_PLAYER(eMinor).isAlive())
{
if (pLeague->IsMember(eMinor))
{
GET_PLAYER(eMinor).GetMinorCivAI()->SetFriendshipWithMajor(ePlayer, 120);
}
}
}
}
}
The idea is this:
Code:
<Row Tag="TXT_KEY_RESOLUTION_SOI_HELP">
<Text>Demand a Sphere of Influence over a Minor Civilization. If successful, your [ICON_INFLUENCE] Influence will become 120 with the Minor Civilization.</Text>
</Row>
Any ideas why it isn't working?
Note: the 'bRaiseCityStateInfluenceToAlly' is a custom attribute I added, and it is appearing in the SQL database correctly.