This is the code I use to select possible upgrades. Two options here. Removing either makes the remaining one the choice regardless of prereqs.
Code: xml
- <ImprovementType InternalName="CityHub5_Conclave">
- <DisplayName>Conclave</DisplayName>
- <IsCityHub>1</IsCityHub>
- <RequiresCity>0</RequiresCity>
- <BarredTerrain>River</BarredTerrain>
- <BarredTerrain>SwampTerrain</BarredTerrain>
- <PreferredTerrain>Category:Land</PreferredTerrain>
- <PreferredTerrain>Forest</PreferredTerrain>
- <ZOCMinRadius>1</ZOCMinRadius>
- <ZOCMaxRadius>1</ZOCMaxRadius>
- <ZOCRadiusTurnsBeforeUpdate>0</ZOCRadiusTurnsBeforeUpdate>
- <BuildRadius>1</BuildRadius>
- <BuildableTiles>50</BuildableTiles>
- <CitywideDuplicateImpLimit>1</CitywideDuplicateImpLimit>
- <HideInHiergamenon>1</HideInHiergamenon>
- <LaborToBuild>0</LaborToBuild>
- <GameModifier>
- <ModType>LevelBarrier</ModType>
- <Attribute>Population</Attribute>
- <Value>1000</Value>
- <CityUpgrade>CityHub6_Ashari</CityUpgrade>
- </GameModifier>
- <GameModifier>
- <ModType>LevelBarrier</ModType>
- <Attribute>Population</Attribute>
- <Value>1000</Value>
- <CityUpgrade>CityHub6_Conclave</CityUpgrade>
- </GameModifier>
The ability unlock. No prereqs here at all anymore, they did not work either. Normal factions still got the lvl 6 unlock and subsequent building.
Code: xml
- <AbilityBonuses>
- <AbilityBonus InternalName="CityLevel_UnlockLevel6">
- <AbilityBonusType>City_Level</AbilityBonusType>
- <AbilityBonusOption InternalName="UnlockTheNexusFocal">
- <DisplayName>Tower of the Magi</DisplayName>
- <Description>The Tower of the Magi increases the spell resistance of all units produced in this city by 10 and protects the city from the spells of enemy casters.</Description>
- <Icon>K_Tower_of_The_Magi_Thumb_01.png</Icon>
- <GameModifier>
- <ModType>City</ModType>
- <Attribute>UnlockImprovement</Attribute>
- <BoolVal1>1</BoolVal1>
- <StrVal>TheNexusFocal</StrVal>
- </GameModifier>
- <Likelihood>400</Likelihood>
- <RarityDisplay>Common</RarityDisplay>
- <RequiredLevel>6</RequiredLevel>
- <AIData AIPersonality="AI_General">
- <AIPriority>5</AIPriority>
- </AIData>
- </AbilityBonusOption>
- </AbilityBonus>
The optional building i want to get race exclusive. I tried adding opposite faction required prereqs to the CityHub6 upgrades, it still got picked. Prereqs seems disabled for city levelups by default.
Code: xml
- <ImprovementType InternalName="CityHub6_Ashari">
- <DisplayName>Conclave</DisplayName>
- <IsCityHub>1</IsCityHub>
- <RequiresCity>0</RequiresCity>
- <BarredTerrain>River</BarredTerrain>
- <BarredTerrain>SwampTerrain</BarredTerrain>
- <PreferredTerrain>Category:Land</PreferredTerrain>
- <PreferredTerrain>Forest</PreferredTerrain>
- <ZOCMinRadius>1</ZOCMinRadius>
- <ZOCMaxRadius>1</ZOCMaxRadius>
- <ZOCRadiusTurnsBeforeUpdate>0</ZOCRadiusTurnsBeforeUpdate>
- <BuildRadius>1</BuildRadius>
- <BuildableTiles>50</BuildableTiles>
- <CitywideDuplicateImpLimit>1</CitywideDuplicateImpLimit>
- <HideInHiergamenon>1</HideInHiergamenon>
- <LaborToBuild>0</LaborToBuild>
- <Prereq>
- <Type>AbilityBonusOption</Type>
- <Attribute>Blood_of_Ashari</Attribute>
- <Target>Player</Target>
- </Prereq>
If someone could tell me how to change the city icon from a building or event or whatever, that would work as a workaround, since this is getting highly annoying. I think I need to do another building path for this race anyways, so might as well move the bonuses there. The level 6 stuff works, and that is the most important part.