So I am trying to finish up my mod, but iv'e hit a dead stop for the moment. I'm trying to figure a way to allow my civ to embark coasts and oceans earlier in the game through a tech, with Norway having a similar ability I based the trait off that. I tried to replicate it as best as I could but for some reason whatever I do, it will not work. I've gone over it, checked the logs, scoured the Civ VI xml database using agent ransack just in case I missed a reference. But I can't find anything I did wrong, and the logs aren't saying anything about it either.
Here is the trait code, and here is the full mod (dropbox)
Here is the trait code, and here is the full mod (dropbox)
Code:
<CivilizationTraits>
<Row CivilizationType="CIVILIZATION_POLYNESIA" TraitType="TRAIT_CIVILIZATION_POLYNESIA" />
<Traits>
<Row TraitType="TRAIT_CIVILIZATION_POLYNESIA" Name="LOC_TRAIT_CIVILIZATION_POLYNESIA_NAME" Description="LOC_TRAIT_CIVILIZATION_POLYNESIA_DESCRIPTION" />
</Traits>
<TraitModifiers>
<Row>
<TraitType>TRAIT_CIVILIZATION_POLYNESIA</TraitType>
<ModifierId>POLYNESIA_GRANT_COAST_NAVIGATION</ModifierId>
</Row>
</TraitModifiers>
<Modifiers>
<Row>
<ModifierId>POLYNESIA_GRANT_COAST_NAVIGATION</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_VALID_TERRAIN</ModifierType>
<SubjectRequirementSetId>PLAYER_HAS_SAILING_TECH</SubjectRequirementSetId>
</Row>
</Modifiers>
<RequirementSetRequirements>
<Row>
<RequirementSetId>PLAYER_HAS_SAILING_TECH</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_HAS_SAILING_TECH</RequirementId>
</Row>
</RequirementSetRequirements>
<RequirementSets>
<Row>
<RequirementSetId>PLAYER_HAS_SAILING_TECH</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<Requirements>
<Row>
<RequirementId>REQUIRES_PLAYER_HAS_SAILING_TECH</RequirementId>
<RequirementType>REQUIREMENT_PLAYER_HAS_TECHNOLOGY</RequirementType>
</Row>
</Requirements>
<ModifierArguments>
<Row>
<ModifierId>POLYNESIA_GRANT_COAST_NAVIGATION</ModifierId>
<Name>TerrainType</Name>
<Value>TERRAIN_COAST</Value>
</Row>
<Row>
<ModifierId>POLYNESIA_GRANT_COAST_NAVIGATION</ModifierId>
<Name>Valid</Name>
<Value>true</Value>
</Row>
</ModifierArguments>
<RequirementArguments>
<Row>
<RequirementId>REQUIRES_PLAYER_HAS_SAILING_TECH</RequirementId>
<Name>TechnologyType</Name>
<Value>TECH_SAILING</Value>
</Row>
</RequirementArguments>