<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
  <AlertRaiser>
    <List datatype="tokens">FemaleCitizen</List>
    <RaiseAlertRange>120</RaiseAlertRange>
    <EndOfAlertRange>180</EndOfAlertRange>
    <SearchRange>100</SearchRange>
  </AlertRaiser>
  <Attack>
    <Ranged>
      <AttackName>Bow</AttackName>
      <Damage>
        <Pierce>8</Pierce>
      </Damage>
      <MaxRange>60</MaxRange>
      <PrepareTime>400</PrepareTime>
      <RepeatTime>4000</RepeatTime>
      <Projectile>
        <Speed>100</Speed>
        <Spread>2</Spread>
        <Gravity>50</Gravity>
        <FriendlyFire>false</FriendlyFire>
        <LaunchPoint y="0"/>
      </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>own neutral</Territory>
    <Category>CivilCentre</Category>
    <Distance>
      <FromClass>CivilCentre</FromClass>
      <MinDistance>200</MinDistance>
    </Distance>
  </BuildRestrictions>
  <BuildingAI>
    <DefaultArrowCount>6</DefaultArrowCount>
    <GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
    <GarrisonArrowClasses>Soldier</GarrisonArrowClasses>
  </BuildingAI>
  <Capturable>
    <CapturePoints>2500</CapturePoints>
    <RegenRate>5.0</RegenRate>
  </Capturable>
  <Cost>
    <BuildTime>500</BuildTime>
    <Resources>
      <wood>300</wood>
      <stone>300</stone>
      <metal>250</metal>
    </Resources>
  </Cost>
  <Footprint>
    <Square depth="32.0" width="32.0"/>
    <Height>8.0</Height>
  </Footprint>
  <GarrisonHolder>
    <Max>20</Max>
    <EjectHealth>0.1</EjectHealth>
    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    <List datatype="tokens">Support Infantry Cavalry</List>
    <BuffHeal>1</BuffHeal>
    <LoadingRange>1</LoadingRange>
  </GarrisonHolder>
  <Health>
    <Max>3000</Max>
    <SpawnEntityOnDeath>decay|rubble/rubble_stone_6x6</SpawnEntityOnDeath>
  </Health>
  <Identity>
    <GenericName>Civic Center</GenericName>
    <SelectionGroupName>template_structure_civic_civil_centre</SelectionGroupName>
    <Tooltip>Build in own or neutral territory. Acquire large tracts of territory. Territory root. Train Citizens and research technologies. Garrison Soldiers for additional arrows.</Tooltip>
    <Classes datatype="tokens">CivCentre</Classes>
    <VisibleClasses datatype="tokens">Defensive CivilCentre</VisibleClasses>
    <Icon>structures/civic_centre.png</Icon>
  </Identity>
  <Loot>
    <wood>60</wood>
    <stone>60</stone>
    <metal>50</metal>
  </Loot>
  <Minimap>
    <Type>structure</Type>
    <Icon size="16.0">civil_centre.png</Icon>
  </Minimap>
  <Obstruction>
    <Static depth="30.0" width="30.0"/>
  </Obstruction>
  <Population>
    <Bonus>20</Bonus>
  </Population>
  <ProductionQueue/>
  <Researcher>
    <Technologies datatype="tokens">
      phase_town_{civ}
      phase_city_{civ}
      unlock_shared_los
      unlock_shared_dropsites
      archery_tradition
      hoplite_tradition
      hellenistic_metropolis
      roman_roads
      unlock_spies
      spy_counter
    </Technologies>
  </Researcher>
  <ResourceDropsite>
    <Types>food wood stone metal</Types>
    <Sharable>true</Sharable>
  </ResourceDropsite>
  <Sound>
    <SoundGroups>
      <select>interface/select/building/sel_civ_center.xml</select>
      <constructed>interface/complete/building/complete_civ_center.xml</constructed>
      <upgraded>interface/complete/building/complete_civ_center.xml</upgraded>
      <alert_raise>interface/alarm/alarm_alert_0.xml</alert_raise>
      <alert_end>interface/alarm/alarm_alert_1.xml</alert_end>
      <attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
      <attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
    </SoundGroups>
  </Sound>
  <TerritoryInfluence>
    <Root>true</Root>
    <Radius>140</Radius>
    <Weight>10000</Weight>
  </TerritoryInfluence>
  <Trainer>
    <BatchTimeModifier>0.8</BatchTimeModifier>
    <Entities datatype="tokens">
      units/{civ}/support_female_citizen
    </Entities>
  </Trainer>
  <Vision>
    <Range>90</Range>
  </Vision>
  <VisualActor>
    <FoundationActor>structures/fndn_8x8.xml</FoundationActor>
  </VisualActor>
</Entity>
