<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall">
  <Auras>
    <Aura1>
      <Type>garrisonedUnits</Type>
      <Affects>Unit</Affects>
      <Modifications>
        <Armour.Pierce> <Add>3</Add> </Armour.Pierce>
        <Armour.Hack> <Add>3</Add> </Armour.Hack>
        <Armour.Crush> <Add>3</Add> </Armour.Crush>
        <Vision.Range> <Add>20</Add> </Vision.Range>
      </Modifications>
      <AuraName>Wall Protection</AuraName>
      <AuraDescription>Units on walls have 3 extra Armor levels</AuraDescription>
    </Aura1>
  </Auras>
  <Cost>
    <BuildTime>30</BuildTime>
    <Resources>
      <stone>30</stone>
    </Resources>
  </Cost>
  <Health>
	<SpawnEntityOnDeath>rubble/rubble_stone_wall_long</SpawnEntityOnDeath>
  </Health>
  <GarrisonHolder>
    <Max>5</Max>
    <List datatype="tokens">Ranged+Infantry</List>
    <EjectHealth>0.1</EjectHealth>
    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    <BuffHeal>0</BuffHeal>
    <LoadingRange>2</LoadingRange>
    <VisibleGarrisonPoints>
      <Archer1>
        <X>0</X><Y>11.5</Y><Z>0</Z>
      </Archer1>
      <Archer2>
        <X>8</X><Y>11.5</Y><Z>0</Z>
      </Archer2>
      <Archer3>
        <X>-8</X><Y>11.5</Y><Z>0</Z>
      </Archer3>
      <Archer4>
        <X>4</X><Y>11.5</Y><Z>0</Z>
      </Archer4>
      <Archer5>
        <X>-4</X><Y>11.5</Y><Z>0</Z>
      </Archer5>
    </VisibleGarrisonPoints>
  </GarrisonHolder>
  <Identity>
    <Classes datatype="tokens">LongWall</Classes>
    <Tooltip>Long wall segments can be converted to gates.</Tooltip>
    <GateConversionTooltip>Convert Stone Wall into City Gate</GateConversionTooltip>
  </Identity>
</Entity>
