<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_support">
  <Attack>
    <Capture>
      <AttackName>Capture</AttackName>
      <Capture>5</Capture>
      <MaxRange>4</MaxRange>
      <RepeatTime>1000</RepeatTime>
      <RestrictedClasses datatype="tokens">Field Palisade Wall</RestrictedClasses>
    </Capture>
    </Attack>
    <Attack>
    <Melee>
      <AttackName context="Name of an attack using a double-edged sword.">Sword</AttackName>
      <Damage>
        <Hack>14</Hack>
        <Hack>2</Hack>
      </Damage>
      <MaxRange>2.75</MaxRange>
      <PrepareTime>500</PrepareTime>
      <RepeatTime>1000</RepeatTime>
      <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
    </Melee>
  </Attack>
  <Auras datatype="tokens">
    units/han_minister_garrison
    units/han_minister_gathering
    units/han_minister_building
    units/han_minister_garrison_ministry
  </Auras>
  <Cost>
    <Population>1</Population>
    <BuildTime>15</BuildTime>
    <Resources>
      <food>100</food>
      <metal>100</metal>
    </Resources>
  </Cost>
  <Health>
    <Max>200</Max>
  </Health>
  <Identity>
    <Civ>han</Civ>
    <GenericName>Imperial Minister</GenericName>
    <SpecificName>Qīng</SpecificName>
    <Tooltip>Use to boost the efficiency of nearby units and buildings. Garrison within a building to boost the efficiency of its production queue. Only Han buildings can garrison ministers.</Tooltip>
    <Classes datatype="tokens">Organic Human</Classes>
    <VisibleClasses datatype="tokens">Minister</VisibleClasses>
    <Icon>units/han/minister.png</Icon>
    <Requirements>
      <Techs datatype="tokens">phase_town</Techs>
    </Requirements>
  </Identity>
  <Loot>
    <xp>150</xp>
    <food>10</food>
    <metal>10</metal>
  </Loot>
  <Minimap>
    <Type>hero</Type>
  </Minimap>
  <Position>
    <TurnRate>8</TurnRate>
  </Position>
  <Resistance>
    <Entity>
      <Damage>
        <Hack>4.5</Hack>
        <Pierce>4.5</Pierce>
        <Crush>10</Crush>
      </Damage>
    </Entity>
  </Resistance>
  <Selectable>
    <Overlay>
      <AlwaysVisible/>
      <Shape>
        <Circle radius="2.5"/>
      </Shape>
      <Texture>
        <MainTexture>128x128/octagram.png</MainTexture>
        <MainTextureMask>128x128/octagram_mask.png</MainTextureMask>
      </Texture>
    </Overlay>
  </Selectable>
  <Sound>
    <SoundGroups>
      <attack_melee>attack/weapon/sword_attack.xml</attack_melee>
      <build>resource/construction/con_wood.xml</build>
      <death>actor/human/death/{phenotype}_death.xml</death>
      <order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
      <order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
      <order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
      <order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
      <order_repair>voice/{lang}/civ/civ_{phenotype}_repair.xml</order_repair>
      <order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>
      <run>actor/human/movement/run.xml</run>
      <select>voice/{lang}/civ/civ_{phenotype}_select.xml</select>
      <trained>interface/alarm/alarm_create_infantry.xml</trained>
      <walk>actor/human/movement/walk.xml</walk>
    </SoundGroups>
  </Sound>
  <TrainingRestrictions>
    <Category>Minister</Category>
  </TrainingRestrictions>
  <Vision>
    <Range>40</Range>
  </Vision>
  <VisualActor>
    <Actor>units/han/minister.xml</Actor>
  </VisualActor>
</Entity>
