Complete Espionage Mission Cost Guide (BTS)

Detektyw

Chieftain
Joined
Nov 23, 2007
Messages
36
A new book entry has been added:

[drupal=127]Complete Espionage Mission Cost Guide (BTS)[/drupal]

I've just gotten the SDK for BtS and so I want to make some use of it both for me and the community.

I'll post the base code in spoiler tags so people without C++ knowledge don't have to read it and people with it can correct my analysis.

By "You" and "We" I refer to your player.
By the "Enemy" or "Owner" I refer to owner of the city.

I would like to hear your comments.

Spoiler:
bool CvDLLButtonPopup::launchDoEspionageTargetPopup(CvP opup* pPopup, CvPopupInfo &info)
{
CvUnit* pUnit = gDLL->getInterfaceIFace()->getHeadSelectedUnit();
if (NULL == pUnit)
{
return false;
}

CvPlot* pPlot = pUnit->plot();
CvCity* pCity = pPlot->getPlotCity();
PlayerTypes eTargetPlayer = pPlot->getOwnerINLINE();
CvPlayer& kPlayer = GET_PLAYER(GC.getGameINLINE().getActivePlayer());





General Formula:

Mission Cost = BaseMissionCost * MissionCostModifier * Number Of Players In Your Team * 0.01
 
Back
Top Bottom