Ticket #4285: upgrade_wallturret.diff
File upgrade_wallturret.diff, 5.2 KB (added by , 8 years ago) |
---|
-
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
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <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>22 3 <BuildRestrictions> 23 4 <PlacementType>land-shore</PlacementType> 24 5 <Category>Wall</Category> 25 6 </BuildRestrictions> 26 7 <Capturable disable=""/> … … 32 13 </Cost> 33 14 <Footprint> 34 15 <Square width="6.0" depth="6.0"/> 35 16 <Height>8.0</Height> 36 17 </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>45 18 <Health> 46 <Max> 4000</Max>19 <Max>3000</Max> 47 20 <SpawnEntityOnDeath>rubble/rubble_stone_wall_tower</SpawnEntityOnDeath> 48 21 </Health> 49 22 <Identity> 50 23 <GenericName>Wall Turret</GenericName> 51 24 <Tooltip>Shoots arrows. Garrison to defend a city wall against attackers.</Tooltip> … … 84 57 <TerritoryInfluence> 85 58 <Root>false</Root> 86 59 <Radius>20</Radius> 87 60 <Weight>65535</Weight> 88 61 </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> 89 75 <Vision> 90 76 <Range>60</Range> 91 77 </Vision> 92 78 <VisualActor> 93 79 <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>