JHLee
Prince
- Joined
- Aug 27, 2013
- Messages
- 580
Because, I was trying to make a wonder video for the Temple?Why is the specific building important?
Because, I was trying to make a wonder video for the Temple?Why is the specific building important?
Yes that are the ones.I guess he means the 4 tiles in Portugal.
Or maybe not. Currently I am zeroing in on great people rate inaccuracies which seem to be related to the Mount Athos effect. Not sure if there is any relation to the commerce error.I have a very good lead now. It impacts both specialist commerce and great people rate and may be related to culture levels. I am surprised that this is in evidence because culture level based changes to those factors have already been removed already in the XML so it should all come out to 0, but the code itself is still around in the DLL and there may be some side effects I did not consider. I have improved logging for the next attempt to find the issue.
//SuperSpies: TSHEEP start
bool CvUnit::awardSpyExperience(TeamTypes eTargetTeam, EspionageMissionTypes eMission)
{
int iExperience = GC.getEspionageMissionInfo(eMission).getBaseExperience();
int iSuccessChance = (getSpyInterceptPercent(eTargetTeam) * (100 + GC.getEspionageMissionInfo(eMission).getDifficultyMod())) / 100;
if (iSuccessChance >= 90)
{
iExperience /= 2;
}
else if (iSuccessChance < 80)
{
int iModifier = (80 - iSuccessChance) / 10; // +1 at <70, +3 at <50, +7 at <10
iExperience *= (100 + iModifier * 50);
}
if (iExperience < 100)
{
return false;
}
iExperience /= 100;
log(CvWString::format(L"Spy experience for mission %s: success chance was %d, experience is %d", GC.getEspionageMissionInfo(eMission).getText(), iSuccessChance, iExperience));
changeExperience(iExperience);
testPromotionReady();
GET_PLAYER(getOwner()).changeEspionageExperience(iExperience);
return true;
}
//SuperSpies: TSHEEP End