<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_siege">
  <Armour>
    <Hack>1</Hack>
    <Pierce>20</Pierce>
    <Crush>1</Crush>
  </Armour>
  <Attack>
    <Ranged>
      <Hack>0.0</Hack>
      <Pierce>10.0</Pierce>
      <Crush>5.0</Crush>
      <MaxRange>55.0</MaxRange>
      <MinRange>2.0</MinRange>
      <ElevationBonus>10</ElevationBonus>
      <ProjectileSpeed>75.0</ProjectileSpeed>
      <PrepareTime>1200</PrepareTime>
      <RepeatTime>2000</RepeatTime>
      <Spread>2.0</Spread>
      <PreferredClasses datatype="tokens">Structure</PreferredClasses>
    </Ranged>
    <Capture>
      <Value>10</Value>
      <MaxRange>8</MaxRange>
      <RepeatTime>1000</RepeatTime>
    </Capture>
  </Attack>
  <BuildingAI>
    <DefaultArrowCount>1</DefaultArrowCount>
    <GarrisonArrowMultiplier>0.5</GarrisonArrowMultiplier>
    <GarrisonArrowClasses>Infantry</GarrisonArrowClasses>
  </BuildingAI>
  <Cost>
    <Population>5</Population>
    <BuildTime>60</BuildTime>
    <Resources>
      <wood>500</wood>
      <metal>300</metal>
    </Resources>
  </Cost>
  <Footprint replace="">
    <Square width="15.0" depth="15.0"/>
    <Height>20.0</Height>
  </Footprint>
  <GarrisonHolder>
    <Max>20</Max>
    <EjectHealth>0.1</EjectHealth>
    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    <List datatype="tokens">Support Infantry</List>
    <BuffHeal>0</BuffHeal>
    <LoadingRange>2</LoadingRange>
  </GarrisonHolder>
  <Health>
    <Max>500</Max>
  </Health>
  <Identity>
    <GenericName>Siege Tower</GenericName>
    <Classes datatype="tokens">Ranged SiegeTower</Classes>
    <Tooltip>Garrison up to 20 infantry inside to increase arrow count from 0 to 10.</Tooltip>
  </Identity>
  <Selectable>
    <Overlay>
      <Texture>
        <MainTexture>circle/256x256.png</MainTexture>
        <MainTextureMask>circle/256x256_mask.png</MainTextureMask>
      </Texture>
    </Overlay>
  </Selectable>
  <Sound>
    <SoundGroups>
      <select>attack/siege/siege_select.xml</select>
      <order_walk>attack/siege/ram_move.xml</order_walk>
      <order_attack>attack/siege/ram_attack.xml</order_attack>
      <trained>attack/siege/ram_move.xml</trained>
    </SoundGroups>
  </Sound>
  <StatusBars>
    <BarWidth>4.0</BarWidth>
    <BarHeight>0.5</BarHeight>
    <HeightOffset>12.0</HeightOffset>
  </StatusBars>
  <UnitMotion>
    <WalkSpeed>6.5</WalkSpeed>
    <Run>
      <Speed>10.0</Speed>
    </Run>
  </UnitMotion>
  <Vision>
    <Range>80</Range>
  </Vision>
</Entity>
