<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit">
  <Auras>
    <AuraA>
      <Type>garrison</Type>
      <Affects>GarrisonHolder</Affects>
      <Modifications>
        <Capturable.GarrisonRegenRate> <Add>2</Add> </Capturable.GarrisonRegenRate>
      </Modifications>
      <AuraName>Hero Aura</AuraName>
      <AuraDescription>When garrisoned in a structure, the hero gives it a bonus of +2 capture points recovery rate.</AuraDescription>
    </AuraA>    
  </Auras>
  <Attack> 
    <Capture>
      <Value>15</Value> 
      <MaxRange>4</MaxRange> 
      <RepeatTime>1000</RepeatTime> 
    </Capture> 
  </Attack>
  <Armour>
    <Hack>10.0</Hack>
    <Pierce>20.0</Pierce>
    <Crush>15.0</Crush>
  </Armour>
  <Cost>
    <Population>2</Population>
    <BuildTime>40</BuildTime>
    <Resources>
      <food>100</food>
      <metal>250</metal>
    </Resources>
  </Cost>
  <Health>
    <Max>600</Max>
  </Health>
  <Identity>
    <GenericName>Hero</GenericName>
    <Classes datatype="tokens">Organic Human</Classes>
    <VisibleClasses datatype="tokens">Hero Soldier</VisibleClasses>
    <RequiredTechnology>phase_city</RequiredTechnology>
  </Identity>
  <Loot>
    <xp>400</xp>
    <food>10</food>
    <wood>0</wood>
    <stone>0</stone>
    <metal>25</metal>
  </Loot>
  <Minimap>
    <Type>hero</Type>
  </Minimap>
  <Selectable>
    <Overlay>
      <AlwaysVisible/>
      <Texture>
        <MainTexture>star/256x256.png</MainTexture>
        <MainTextureMask>star/256x256_mask.png</MainTextureMask>
      </Texture>
    </Overlay>
  </Selectable>
  <Sound>
    <SoundGroups>
      <attack>attack/weapon/sword.xml</attack>
      <death>actor/human/death/death.xml</death>
    </SoundGroups>
  </Sound>
  <TrainingRestrictions>
    <Category>Hero</Category>
  </TrainingRestrictions>
  <UnitMotion>
    <WalkSpeed>10.5</WalkSpeed>
    <Run>
      <Speed>22.5</Speed>
    </Run>
  </UnitMotion>
  <Vision>
    <Range>88</Range>
  </Vision>
</Entity>
