Galgus
Emperor
- Joined
- Aug 22, 2012
- Messages
- 1,705
The building is showing up in the civilopedia and is unbuildable otherwise, as intended, but the code to grant it isn't working and the Database log doesn't show an error.
I'm using the modular building quests mod resource, and the idea is for a quest perk to give a the building in all cities.
This is the relevant code. Is it possible that trying to add yields to the reef feature is causing the problem?
I'm using the modular building quests mod resource, and the idea is for a quest perk to give a the building in all cities.
This is the relevant code. Is it possible that trying to add yields to the reef feature is causing the problem?
Code:
<PlayerPerks>
<Row>
<Type>PLAYERPERK_UTOPIA_PROJECT_ALL</Type>
<Help>TXT_KEY_PLAYERPERK_UTOPIA_PROJECT_FOOD</Help>
<Freebuilding>BUILDING_UTOPIA_FOREST</Freebuilding>
</Row>
<Row>
<Type>PLAYERPERK_UTOPIA_PROJECT_TILE</Type>
<Help>TXT_KEY_PLAYERPERK_UTOPIA_PROJECT_CULTURE</Help>
</Row>
</PlayerPerks>
Code:
<BuildingClasses>
<Row>
<Type>BUILDINGCLASS_UTOPIA_FOREST</Type>
<DefaultBuilding>BUILDING_UTOPIA_FOREST</DefaultBuilding>
<Description>TXT_KEY_BUILDING_UTOPIA_FOREST</Description>
</Row>
</BuildingClasses>
<Buildings>
<Row>
<Type>BUILDING_UTOPIA_FOREST</Type>
<BuildingClass>BUILDINGCLASS_UTOPIA_FOREST</BuildingClass>
<Cost>-1</Cost>
<ConquestProbability>0</ConquestProbability>
<PrereqTech>TECH_HABITATION</PrereqTech>
<Description>TXT_KEY_BUILDING_UTOPIA_FOREST</Description>
<Civilopedia>TXT_KEY_BUILDING_UTOPIA_PROJECT_PEDIA</Civilopedia>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>62</PortraitIndex>
</Row>
</Buildings>