<?xml version="1.0" encoding="utf-8"?>
<GameData xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DataSchema.xsd">
<!-- Unit Definition -->
<Units>
<Row>
<UnitType>UNIT_LEGION_SPEARMAN</UnitType>
<Name>LOC_UNIT_LEGION_SPEARMAN_NAME</Name>
<Description>LOC_UNIT_LEGION_SPEARMAN_DESCRIPTION</Description>
<Domain>DOMAIN_LAND</Domain>
<BaseMoves>2</BaseMoves>
<Cost>100</Cost>
<AdvisorType>ADVISOR_CONQUEST</AdvisorType>
<PromotionClass>PROMOTION_CLASS_ANTI_CAVALRY</PromotionClass> <!-- Anti-cavalry class -->
<Maintenance>2</Maintenance>
<Combat>35</Combat>
<PrereqTech>TECH_IRON_WORKING</PrereqTech> <!-- Requires Iron Working -->
<ObsoleteTech>TECH_CIVIL_ENGINEERING</ObsoleteTech> <!-- Obsoletes with Civil Engineering -->
<FormationClass>FORMATION_CLASS_LAND_COMBAT</FormationClass>
<CanCapture>true</CanCapture>
<CanRetreatWhenDefeated>false</CanRetreatWhenDefeated>
<PrereqStrategicResource>RESOURCE_IRON</PrereqStrategicResource> <!-- Requires Iron -->
<UnitFlagIcon>ICON_UNIT_LEGION</UnitFlagIcon>
<UnitPortrait>PORTRAIT_UNIT_LEGION</UnitPortrait>
<Class>UNITCLASS_LEGION_SPEARMAN</Class>
<Specialized>true</Specialized>
</Row>
</Units>
<!-- Unit Upgrades -->
<UnitUpgrades>
<Row>
<Unit>UNIT_LEGION_SPEARMAN</Unit>
<PrereqUnit>UNIT_WARRIOR</PrereqUnit> <!-- Upgrades from Warrior -->
</Row>
</UnitUpgrades>
<!-- Unit Promotion Class -->
<UnitPromotionClasses>
<Row>
<PromotionClassType>PROMOTION_CLASS_ANTI_CAVALRY</PromotionClassType>
<UnitType>UNIT_LEGION_SPEARMAN</UnitType>
</Row>
</UnitPromotionClasses>
<!-- Fort Improvement Compatibility -->
<Improvement_ValidBuildUnits>
<Row>
<ImprovementType>IMPROVEMENT_FORT</ImprovementType> <!-- Reuse existing Fort improvement -->
<UnitType>UNIT_LEGION_SPEARMAN</UnitType>
</Row>
</Improvement_ValidBuildUnits>
<!-- Unit Abilities -->
<UnitAbilities>
<Row>
<UnitAbilityType>UNITABILITY_ANTI_CAVALRY_BONUS</UnitAbilityType>
<Name>LOC_UNITABILITY_ANTI_CAVALRY_BONUS_NAME</Name>
<Description>LOC_UNITABILITY_ANTI_CAVALRY_BONUS_DESCRIPTION</Description>
</Row>
</UnitAbilities>
<!-- Attach Abilities to Unit -->
<UnitAbilities_XP2>
<Row>
<UnitType>UNIT_LEGION_SPEARMAN</UnitType>
<UnitAbilityType>UNITABILITY_ANTI_CAVALRY_BONUS</UnitAbilityType>
</Row>
</UnitAbilities_XP2>
<!-- Prereq Tech and Resource for Fort -->
<Improvement_PrereqTechs>
<Row>
<ImprovementType>IMPROVEMENT_FORT</ImprovementType>
<TechType>TECH_ENGINEERING</TechType> <!-- Forts unlock with Engineering -->
</Row>
</Improvement_PrereqTechs>
<!-- Unit Strategic Resource Requirements -->
<UnitStrategicResourceRequirements>
<Row>
<UnitType>UNIT_LEGION_SPEARMAN</UnitType>
<ResourceType>RESOURCE_IRON</ResourceType> <!-- Requires Iron to build -->
<Amount>1</Amount>
</Row>
</UnitStrategicResourceRequirements>
<!-- Localization -->
<LocalizedText>
<!-- Unit Name -->
<Row Tag="LOC_UNIT_LEGION_SPEARMAN_NAME" Language="en_US">
<Text>Legion Spearman</Text>
</Row>
<!-- Unit Description -->
<Row Tag="LOC_UNIT_LEGION_SPEARMAN_DESCRIPTION" Language="en_US">
<Text>A Roman anti-cavalry unit that can construct forts and perform other Legionnaire duties.</Text>
</Row>
<!-- Ability Name -->
<Row Tag="LOC_UNITABILITY_ANTI_CAVALRY_BONUS_NAME" Language="en_US">
<Text>Anti-Cavalry Bonus</Text>
</Row>
<!-- Ability Description -->
<Row Tag="LOC_UNITABILITY_ANTI_CAVALRY_BONUS_DESCRIPTION" Language="en_US">
<Text>This unit has additional combat strength against cavalry units.</Text>
</Row>
</LocalizedText>
</GameData>