Nagol Strache
Chieftain
- Joined
- Jan 14, 2016
- Messages
- 18
As the title states, I'm having a bit of an issue with getting TerrainType and ModifierArguments to work. What I'm trying to do is create a unique ability that grants adjacency bonus to non-campus and holy site districts from mountains. For testing purposes I have it set to give a +10 science adjacency to the campus from mountains on the plains (I also removed the normal +1 adjacency as well).
When testing it out it doesn't seem to add the bonus, but it does remove the normal adjacency bonus. The database log doesn't seem to have any issues with anything, so I'm not sure if using TerrainType in this senario works or not.
Here's the code I have written, I'll also have the files to download if that is more helpful.
Any help will be very much appreciated!
When testing it out it doesn't seem to add the bonus, but it does remove the normal adjacency bonus. The database log doesn't seem to have any issues with anything, so I'm not sure if using TerrainType in this senario works or not.
Here's the code I have written, I'll also have the files to download if that is more helpful.
Spoiler Code :
Code:
<GameInfo>
<Modifiers>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<ModifierType>MODIFIER_PLAYER_CITIES_FEATURE_ADJACENCY</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<Name>DistrictType</Name>
<Value>DISTRICT_CAMPUS</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<Name>TerrainType</Name>
<Value>TERRAIN_PLAINS_MOUNTAIN</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_SCIENCE</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<Name>Amount</Name>
<Value>10</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
<Name>Description</Name>
<Value>LOC_DISTRICT_JUNGLE_2_SCIENCE</Value>
</Row>
</ModifierArguments>
<ExcludedAdjacencies>
<Row YieldChangeId="Mountains_Science1" TraitType="TRAIT_DWARF_ADJACENT_MOUNTAINS"/>
<Row YieldChangeId="Mountains_Science2" TraitType="TRAIT_DWARF_ADJACENT_MOUNTAINS"/>
</ExcludedAdjacencies>
<TraitModifiers>
<Row>
<TraitType>TRAIT_DWARF_ADJACENT_MOUNTAINS</TraitType>
<ModifierId>TRAIT_ADJACENT_MOUNTAINS_CAMPUS</ModifierId>
</Row>
</TraitModifiers>
</GameInfo>
Any help will be very much appreciated!