Page 1 of 1
Governor Diplomacy Bonus
Posted: Fri Nov 16, 2007 4:34 am
by evwalt
In my beta game, I should be receiving +30% British diplomacy (2 governors support). I currently have '0' support with Britain. The +30% for the governors is not being added (no matter if I spend funds or not).
RE: Governor Diplomacy Bonus
Posted: Fri Nov 16, 2007 4:38 am
by Gil R.
I can't tell if this is a bug, but do know that Eric might want the save files, so please hold on to those in case he does. Thanks for the report.
RE: Governor Diplomacy Bonus
Posted: Fri Nov 16, 2007 4:29 pm
by ericbabe
The percentages are applied in the check to see whether attitude changes, though they aren't shown in the percent that varies according to spending. I suppose we could show their effects in the display, assuming that wouldn't confuse people too much. Here's the relevant code:
for (PLAYER_HANDLE hP=1; hP<=2; hP++)
{
TPlayer* pPlayer = GetPlayer(hP);
PLAYER_HANDLE hOtherPlayer = 3-hP;
TPlayer* pOtherPlayer = GetPlayer(hOtherPlayer);
int chance = EuropeChancePerSpendingLevel[pPlayer->DiploSpending[eu]];
if (pPlayer->Emancipated && eu<2) // V1.10.6
chance += 10;
// V1.10.6 chance changes by diplomatic levels
if (pPlayer->DiploLevels[eu]<2)
chance *= 2;
if (pPlayer->DiploLevels[eu]>4)
chance /= 2;
for (int state=1; state<NoStates; state++)
{
int r = TRuler::GetGovernorOfState(state);
if (r)
{
TRuler* pRuler = &Rulers[r];
if (pRuler->Player==hP)
switch(pRuler->Action)
{
case Opposes_Diplomatic_Overtures_toward_Britain_GOV:
if (eu==0)
chance -= 15;
break;
case Opposes_Diplomatic_Overtures_toward_France_GOV:
if (eu==1)
chance -= 15;
break;
case Supports_Diplomatic_Overtures_toward_Britain_GOV:
if (eu==0)
chance += 15;
break;
case Supports_Diplomatic_Overtures_toward_France_GOV:
if (eu==1)
chance += 15;
break;
}
}
}
if (Random(100)<chance)
{
.... do changes for diplomacy
RE: Governor Diplomacy Bonus
Posted: Fri Nov 16, 2007 5:57 pm
by Gil R.
Eric, damn it, you're giving away company secrets! Now any developer who wants can plug this code into their game...

RE: Governor Diplomacy Bonus
Posted: Tue Nov 20, 2007 11:50 pm
by Joram
Haven't thought of this before but do governor's support stack? So as he says two governors increase your chance by 30%? Or are there perhaps two separate chances at 15%?