- int CvPlayerAI::AI_maxGoldTrade(PlayerTypes ePlayer)
- {
- int iMaxGold;
- FAssert(ePlayer != getID());
- if (isHuman() || (GET_PLAYER(ePlayer).getTeam() == getTeam()))
- {
- iMaxGold = getGold();
- }
- else
- {
- iMaxGold = getTotalPopulation();
- iMaxGold *= (GET_TEAM(getTeam()).AI_getHasMetCounter(GET_PLAYER(ePlayer).getTeam()) + 10);
- iMaxGold *= GC.getLeaderHeadInfo(getPersonalityType()).getMaxGoldTradePercent();
- iMaxGold /= 100;
- iMaxGold -= AI_getGoldTradedTo(ePlayer);
- iMaxGold = min(iMaxGold, getGold());
- iMaxGold -= (iMaxGold % GC.getDefineINT("DIPLOMACY_VALUE_REMAINDER"));
- }
- return max(0, iMaxGold);
- }
复制代码
- int CvPlayer::greatPeopleThreshold()
- {
- int iThreshold;
- iThreshold = ((GC.getDefineINT("GREAT_PEOPLE_THRESHOLD") * max(0, (getGreatPeopleThresholdModifier() + 100))) / 100);
- iThreshold *= GC.getGameSpeedInfo(GC.getGameINLINE().getGameSpeedType()).getGreatPeoplePercent();
- iThreshold /= 100;
- iThreshold *= GC.getEraInfo(GC.getGameINLINE().getStartEra()).getGreatPeoplePercent();
- iThreshold /= 100;
- return max(1, iThreshold);
- }
复制代码
改完C++源码要重新编译DLL
城市最大防御改CIV4CultureLevelInfo.xml
你想改游戏的话可能先从XML开始,可以参数拉登写的
http://www.civclub.net/bbs/viewthread.php?tid=33858
DLL源码和python请自己努力。 |