LowtherCastle
Deity
- Joined
- May 18, 2005
- Messages
- 23,756
So to put this in GrandpaSpeak, are you saying that for Fishing the tech value for Brennus is:Here how a tech value is calculated:
iCost= TechCost - HowFarAiProgressedOnThatTech.
Indeed, for fresh techs, it's only the tech cost after considering mapsize, gamespeed and difficulty you are playing on.
40 * mapsize * gamespeed * difficultylevel
and this is found in CvTeam.cpp, CvTeam::getResearchCost, correct?
Spoiler :
Code:
int CvTeam::getResearchCost(TechTypes eTech) const[COLOR="SeaGreen"][/COLOR]
{
int iCost;
FAssertMsg(eTech != NO_TECH, "Tech is not assigned a valid value");
iCost = GC.getTechInfo(eTech).getResearchCost();
iCost *= GC.getHandicapInfo(getHandicapType()).getResearchPercent();
iCost /= 100;
iCost *= GC.getWorldInfo(GC.getMapINLINE().getWorldSize()).getResearchPercent();
iCost /= 100;
iCost *= GC.getGameSpeedInfo(GC.getGameINLINE().getGameSpeedType()).getResearchPercent();
iCost /= 100;
iCost *= GC.getEraInfo(GC.getGameINLINE().getStartEra()).getResearchPercent();
iCost /= 100;
iCost *= std::max(0, ((GC.getDefineINT("TECH_COST_EXTRA_TEAM_MEMBER_MODIFIER") * (getNumMembers() - 1)) + 100));
iCost /= 100;
return std::max(1, iCost);
}
I find:
- <HandicapInfo> <Type>HANDICAP_EMPEROR</Type>
<iResearchPercent>120</iResearchPercent>
- <WorldInfo> <Type>WORLDSIZE_STANDARD</Type>
<iResearchPercent>130</iResearchPercent>
but do both of these apply to Brennus also? Or does the 1.2 handicap only apply to humanoids?<iResearchPercent>120</iResearchPercent>
- <WorldInfo> <Type>WORLDSIZE_STANDARD</Type>
<iResearchPercent>130</iResearchPercent>
So, for Gramps, is the answer
40*1.3*1.2
or just 40*1.3
?Btw, Tachy, I really appreciate the way you explain the code. I'm such an amateur most of it goes right over my head, but for the first time, I'm starting to understand certain calls. Like if I'm understanding it correctly, this:
Code:
GET_PLAYER(getSecondPlayer()).AI_dealVal(getFirstPlayer()