Ticket #4285: upgrade_wallturret.diff

File upgrade_wallturret.diff, 5.2 KB (added by fatherbushido, 8 years ago)

more accurate strings are not included

  • binaries/data/mods/public/simulation/templates/structures/mace_wall_turret.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wall_turret">
     3  <Footprint>
     4    <Square width="9.0" depth="9.0"/>
     5    <Height>15.0</Height>
     6  </Footprint>
     7  <Identity>
     8    <Civ>mace</Civ>
     9    <SpecificName>Pýrgos</SpecificName>
     10    <History>Towers were an important part of city fortifications. The defending troops shot arrows at the enemy and poured boiling oil over the assailants.</History>
     11  </Identity>
     12  <Obstruction>
     13    <Static width="7.5" depth="7.5"/>
     14  </Obstruction>
     15  <VisualActor>
     16    <Actor>structures/hellenes/wall_tower.xml</Actor>
     17  </VisualActor>
     18  <WallPiece>
     19    <Length>7.5</Length>
     20  </WallPiece>
     21</Entity>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wall_tower.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_structure_defense">
    3   <Attack>
    4     <Ranged>
    5       <Hack>0.0</Hack>
    6       <Pierce>8.0</Pierce>
    7       <Crush>0.0</Crush>
    8       <MaxRange>72.0</MaxRange>
    9       <MinRange>12.0</MinRange>
    10       <ProjectileSpeed>75.0</ProjectileSpeed>
    11       <PrepareTime>1200</PrepareTime>
    12       <RepeatTime>2000</RepeatTime>
    13       <Spread>1.5</Spread>
    14       <PreferredClasses datatype="tokens">Human</PreferredClasses>
    15     </Ranged>
    16   </Attack>
    17   <BuildingAI>
    18     <DefaultArrowCount>0</DefaultArrowCount>
    19     <GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
    20     <GarrisonArrowClasses>Infantry</GarrisonArrowClasses>
    21   </BuildingAI>
    223  <BuildRestrictions>
    234    <PlacementType>land-shore</PlacementType>
    245    <Category>Wall</Category>
    256  </BuildRestrictions>
    267  <Capturable disable=""/>
     
    3213  </Cost>
    3314  <Footprint>
    3415    <Square width="6.0" depth="6.0"/>
    3516    <Height>8.0</Height>
    3617  </Footprint>
    37   <GarrisonHolder>
    38     <Max>2</Max>
    39     <EjectHealth>0.1</EjectHealth>
    40     <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    41     <List datatype="tokens">Support Infantry</List>
    42     <BuffHeal>0</BuffHeal>
    43     <LoadingRange>2</LoadingRange>
    44   </GarrisonHolder>
    4518  <Health>
    46     <Max>4000</Max>
     19    <Max>3000</Max>
    4720    <SpawnEntityOnDeath>rubble/rubble_stone_wall_tower</SpawnEntityOnDeath>
    4821  </Health>
    4922  <Identity>
    5023    <GenericName>Wall Turret</GenericName>
    5124    <Tooltip>Shoots arrows. Garrison to defend a city wall against attackers.</Tooltip>
     
    8457  <TerritoryInfluence>
    8558    <Root>false</Root>
    8659    <Radius>20</Radius>
    8760    <Weight>65535</Weight>
    8861  </TerritoryInfluence>
     62  <Upgrade>
     63    <Tower>
     64      <Entity>structures/{civ}_wall_turret</Entity>
     65      <Tooltip>Reinforce with stone and upgrade to a defense tower.</Tooltip>
     66      <RequiredTechnology>phase_town</RequiredTechnology>
     67      <CheckPlacementRestrictions/>
     68      <Cost>
     69        <wood>50</wood>
     70        <stone>100</stone>
     71      </Cost>
     72      <Time>100</Time>
     73    </Tower>
     74  </Upgrade>
    8975  <Vision>
    9076    <Range>60</Range>
    9177  </Vision>
    9278  <VisualActor>
    9379    <FoundationActor>structures/fndn_2x2.xml</FoundationActor>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wall_turret.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wall_tower">
     3  <Attack>
     4    <Ranged>
     5      <Hack>0.0</Hack>
     6      <Pierce>8.0</Pierce>
     7      <Crush>0.0</Crush>
     8      <MaxRange>72.0</MaxRange>
     9      <MinRange>12.0</MinRange>
     10      <ProjectileSpeed>75.0</ProjectileSpeed>
     11      <PrepareTime>1200</PrepareTime>
     12      <RepeatTime>2000</RepeatTime>
     13      <Spread>1.5</Spread>
     14      <PreferredClasses datatype="tokens">Human</PreferredClasses>
     15    </Ranged>
     16  </Attack>
     17  <BuildingAI>
     18    <DefaultArrowCount>0</DefaultArrowCount>
     19    <GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
     20    <GarrisonArrowClasses>Infantry</GarrisonArrowClasses>
     21  </BuildingAI>
     22  <BuildRestrictions>
     23    <Distance>
     24      <FromClass>WallTurret</FromClass>
     25      <MinDistance>60</MinDistance>
     26    </Distance>
     27  </BuildRestrictions>
     28  <GarrisonHolder>
     29    <Max>2</Max>
     30    <EjectHealth>0.1</EjectHealth>
     31    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
     32    <List datatype="tokens">Support Infantry</List>
     33    <BuffHeal>0</BuffHeal>
     34    <LoadingRange>2</LoadingRange>
     35  </GarrisonHolder>
     36  <Identity>
     37    <Classes datatype="tokens">WallTurret</Classes>
     38  </Identity>
     39  <Upgrade disable=""/>
     40</Entity>