<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
  <Attack>
    <Ranged>
      <AttackName>Bow</AttackName>
      <Damage>
        <Pierce>8</Pierce>
      </Damage>
      <MaxRange>60</MaxRange>
      <PrepareTime>400</PrepareTime>
      <RepeatTime>3500</RepeatTime>
      <Projectile>
        <Speed>100</Speed>
        <Spread>1.5</Spread>
        <Gravity>50</Gravity>
        <FriendlyFire>false</FriendlyFire>
        <LaunchPoint y="3"/>
      </Projectile>
      <PreferredClasses datatype="tokens">Human</PreferredClasses>
      <RangeOverlay>
        <LineTexture>outline_border.png</LineTexture>
        <LineTextureMask>outline_border_mask.png</LineTextureMask>
        <LineThickness>0.175</LineThickness>
      </RangeOverlay>
    </Ranged>
  </Attack>
  <BuildRestrictions>
    <Territory>neutral enemy</Territory>
    <Category>ArmyCamp</Category>
    <Distance>
      <FromClass>ArmyCamp</FromClass>
      <MinDistance>80</MinDistance>
    </Distance>
  </BuildRestrictions>
  <BuildingAI>
    <DefaultArrowCount>5</DefaultArrowCount>
    <MaxArrowCount>18</MaxArrowCount>
    <GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
    <GarrisonArrowClasses>Soldier</GarrisonArrowClasses>
  </BuildingAI>
  <Capturable>
    <CapturePoints op="mul">3</CapturePoints>
    <RegenRate>10.0</RegenRate>
    <GarrisonRegenRate>1</GarrisonRegenRate>
  </Capturable>
  <Cost>
    <BuildTime>250</BuildTime>
    <Resources>
      <wood>400</wood>
      <stone>150</stone>
    </Resources>
  </Cost>
  <Footprint>
    <Square width="37.0" depth="42.0"/>
    <Height>12.0</Height>
  </Footprint>
  <GarrisonHolder>
    <Max>20</Max>
    <EjectHealth>0.1</EjectHealth>
    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    <List datatype="tokens">Support Infantry Cavalry Siege</List>
    <BuffHeal>0</BuffHeal>
    <LoadingRange>6</LoadingRange>
  </GarrisonHolder>
  <Health>
    <Max>1750</Max>
    <SpawnEntityOnDeath>decay|rubble/rubble_rome_sb</SpawnEntityOnDeath>
  </Health>
  <Identity>
    <Civ>rome</Civ>
    <GenericName>Army Camp</GenericName>
    <SpecificName>Castra</SpecificName>
    <Tooltip>Build in neutral or enemy territory. Train Advanced Melee Infantry and Marian Legionaries. Construct Rams. Garrison Soldiers for additional arrows.</Tooltip>
    <Classes datatype="tokens">ConquestCritical CivSpecific</Classes>
    <VisibleClasses datatype="tokens">Town ArmyCamp</VisibleClasses>
    <Icon>structures/roman_camp.png</Icon>
    <Requirements>
      <Techs datatype="tokens">phase_town</Techs>
    </Requirements>
  </Identity>
  <Loot>
    <wood>80</wood>
    <stone>30</stone>
  </Loot>
  <Obstruction>
    <Static width="35.0" depth="40.0"/>
  </Obstruction>
  <ProductionQueue/>
  <Resistance>
    <Entity>
      <Damage>
        <Hack>15</Hack>
        <Pierce>35</Pierce>
        <Crush>3</Crush>
      </Damage>
    </Entity>
  </Resistance>
  <Sound>
    <SoundGroups>
      <select>interface/select/building/sel_broch.xml</select>
      <constructed>interface/complete/building/complete_broch.xml</constructed>
      <attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
      <attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
    </SoundGroups>
  </Sound>
  <TerritoryDecay disable=""/>
  <Trainer>
    <BatchTimeModifier>0.7</BatchTimeModifier>
    <Entities datatype="tokens">
      units/{civ}/infantry_axeman_a
      units/{civ}/infantry_swordsman_a
      units/{civ}/infantry_spearman_a
      units/{civ}/infantry_pikeman_a
      units/{civ}/infantry_legionary
      units/{civ}/infantry_antesignanus
	  units/{civ}/siege_onager_packed
      units/{civ}/siege_ram
    </Entities>
  </Trainer>
  <Vision>
    <Range>90</Range>
  </Vision>
  <VisualActor>
    <Actor>structures/romans/camp.xml</Actor>
    <FoundationActor>structures/fndn_8x8.xml</FoundationActor>
  </VisualActor>
  <WallPiece>
    <Length>29.5</Length>
    <Indent>8</Indent>
  </WallPiece>
</Entity>
