Is the vicinity bonus requirement for buildings exposed to python? I probably asked this before but I forget. I want to get it showing in the pedia pages correctly. It should show in the Requires box at least. Some buildings are getting a bit of text but the culture ones are not.
.def("getPrereqVicinityBonus", &CvBuildingInfo::getPrereqVicinityBonus, "int ()")
Ok, so VicinityBonus is exposed:
Code:.def("getPrereqVicinityBonus", &CvBuildingInfo::getPrereqVicinityBonus, "int ()")
PrereqVicinityBonuses is not (and it would take me a little bit to determine how to with this data type.)
VicinityBonusYieldChanges is also not and will be even more tricky.
You'll have to give me a bit to get to exposing those last two.
Thanks. There is no hurry and I don't know what the last two do anyway.
...
<Bonus>BONUS_STONE</Bonus>
<PrereqVicinityBonuses>
<VicinityBonus>BONUS_WHEAT</VicinityBonus>
<VicinityBonus>BONUS_BARLEY</VicinityBonus>
<VicinityBonus>BONUS_CORN</VicinityBonus>
<VicinityBonus>BONUS_RICE</VicinityBonus>
</PrereqVicinityBonuses>
...
<VicinityBonusYieldChanges>
<BonusYieldChange>
<BonusType>BONUS_WHEAT</BonusType>
<YieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</YieldChanges>
</BonusYieldChange>
<BonusYieldChange>
<BonusType>BONUS_CORN</BonusType>
<YieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</YieldChanges>
</BonusYieldChange>
<BonusYieldChange>
<BonusType>BONUS_RICE</BonusType>
<YieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</YieldChanges>
</BonusYieldChange>
<BonusYieldChange>
<BonusType>BONUS_BARLEY</BonusType>
<YieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</YieldChanges>
</BonusYieldChange>
</VicinityBonusYieldChanges>
Thanks. I have gotten side tracked of my main task and I am trying to tidy up problems with the pedia instead.
<BuildingClassInfo>
<Type>BUILDINGCLASS_JADE_CARVER</Type>
<Description>TXT_KEY_BUILDING_JADE_CARVER</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iExtraPlayerInstances>0</iExtraPlayerInstances>
<bNoLimit>0</bNoLimit>
<bMonument>0</bMonument>
<DefaultBuilding>BUILDING_CARVER</DefaultBuilding>
<VictoryThresholds/>
</BuildingClassInfo>
Your default buildings are pointing to incorrect building tags - and the Or prereqs are pointing to the class rather than the building so this would make sense that it would be problematic.
All three are missing the term _JADE_. This one, for example, points to BUILDING_CARVER rather than BUILDING_JADE_CARVER.