<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense">
  <Attack>
    <Ranged>
      <Hack>0.0</Hack>
      <Pierce>15.0</Pierce>
      <Crush>0.0</Crush>
      <MaxRange>80.0</MaxRange>
      <MinRange>10.0</MinRange>
      <ElevationBonus>15</ElevationBonus>
      <ProjectileSpeed>75.0</ProjectileSpeed>
      <PrepareTime>1200</PrepareTime>
      <RepeatTime>2000</RepeatTime>
      <Spread>1.5</Spread>
      <PreferredClasses datatype="tokens">Human</PreferredClasses>
    </Ranged>
  </Attack>
  <BuildingAI>
    <DefaultArrowCount>1</DefaultArrowCount>
    <GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
    <GarrisonArrowClasses>Infantry</GarrisonArrowClasses>
  </BuildingAI>
  <BuildRestrictions>
    <Category>DefenseTower</Category>
    <Distance>
      <FromClass>DefenseTower</FromClass>
      <MinDistance>60</MinDistance>
    </Distance>
  </BuildRestrictions>
  <Cost>
    <BuildTime>150</BuildTime>
    <Resources>
      <wood>100</wood>
      <stone>100</stone>
    </Resources>
  </Cost>
  <Footprint>
    <Square width="10.0" depth="10.0"/>
    <Height>15.0</Height>
  </Footprint>
  <GarrisonHolder>
    <Max>5</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>1000</Max>
    <SpawnEntityOnDeath>rubble/rubble_stone_2x2</SpawnEntityOnDeath>
  </Health>
  <Identity>
    <GenericName>Defense Tower</GenericName>
    <Tooltip>Shoots arrows. Garrison to provide extra defense. Needs the murder holes tech to protect its foot.</Tooltip>
    <Classes datatype="tokens">Tower GarrisonTower -ConquestCritical</Classes>
    <VisibleClasses datatype="tokens">Town DefenseTower</VisibleClasses>
    <Icon>structures/defense_tower.png</Icon>
    <RequiredTechnology>phase_town</RequiredTechnology>
  </Identity>
  <Loot>
    <xp>100</xp>
    <food>0</food>
    <wood>10</wood>
    <stone>10</stone>
    <metal>0</metal>
  </Loot>
  <Obstruction>
    <Static width="7.0" depth="7.0"/>
  </Obstruction>
  <ProductionQueue>
    <BatchTimeModifier>0.7</BatchTimeModifier>
    <Technologies datatype="tokens">
      attack_tower_watch
      attack_tower_crenellations
      attack_tower_range
      attack_tower_murderholes
      attack_tower_defense
    </Technologies>
  </ProductionQueue>
  <Sound>
    <SoundGroups>
      <select>interface/select/building/sel_tower.xml</select>
      <constructed>interface/complete/building/complete_tower.xml</constructed>
      <attack>attack/weapon/arrowfly.xml</attack>
      <death>attack/destruction/building_collapse_large.xml</death>
    </SoundGroups>
  </Sound>
  <StatusBars>
    <BarWidth>6.0</BarWidth>
    <BarHeight>0.6</BarHeight>
    <HeightOffset>21.0</HeightOffset>
  </StatusBars>
  <TerritoryInfluence>
    <Root>false</Root>
    <Radius>32</Radius>
    <Weight>30000</Weight>
  </TerritoryInfluence>
  <Vision>
    <Range>80</Range>
  </Vision>
  <VisualActor>
    <FoundationActor>structures/fndn_2x2.xml</FoundationActor>
  </VisualActor>
</Entity>
