<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_melee">
  <Attack>
    <Melee>
      <AttackName>Pike</AttackName>
      <Damage>
        <Hack>4</Hack>
        <Pierce>12</Pierce>
      </Damage>
      <MaxRange>8</MaxRange>
      <PrepareTime>1000</PrepareTime>
      <RepeatTime>2000</RepeatTime>
      <Bonuses>
        <BonusCavMelee>
          <Classes>Cavalry</Classes>
          <Multiplier>3</Multiplier>
        </BonusCavMelee>
      </Bonuses>
      <PreferredClasses datatype="tokens">Human</PreferredClasses>
    </Melee>
  </Attack>
  <Cost>
    <Resources>
      <food>45</food>
      <wood>45</wood>
      <metal>10</metal>
    </Resources>
  </Cost>
  <Identity>
    <GenericName>Pikeman</GenericName>
    <Tooltip>Counters: 3.0× vs Cavalry.</Tooltip>
    <VisibleClasses datatype="tokens">Pikeman</VisibleClasses>
  </Identity>
  <Loot>
    <wood>5</wood>
  </Loot>
  <Resistance>
    <Entity>
      <Damage>
        <Hack op="add"> 2.5</Hack>
        <Pierce op="add"> 1.5</Pierce>
      </Damage>
    </Entity>
  </Resistance>
  <Sound>
    <SoundGroups>
      <attack_melee>attack/weapon/pike_attack.xml</attack_melee>
    </SoundGroups>
  </Sound>
  <UnitAI>
    <Formations datatype="tokens">
      special/formations/syntagma
    </Formations>
  </UnitAI>
  <UnitMotion>
    <WalkSpeed op="mul">0.9</WalkSpeed>
    <Acceleration op="mul">0.85</Acceleration>
  </UnitMotion>
</Entity>
