Walls templates cleanup. Use relative templates for Health. Let gates inherit the long wall template instead of the defensive structure template to reduce redundancy / duplicate entries. Remove unused costs as gate is a wall upgrade. Let a non zero cost build time to gate to fix infinite repair rate, ref #3707, #3811.

This was SVN commit r18502.
This commit is contained in:
fatherbushido 2016-07-09 21:50:25 +00:00
parent ca76fb5053
commit 800662ec63
28 changed files with 21 additions and 112 deletions

View File

@ -5,19 +5,12 @@
<Pierce>25.0</Pierce>
<Crush>2.0</Crush>
</Armour>
<Cost>
<BuildTime>15</BuildTime>
<Resources>
<wood>30</wood>
<stone>0</stone>
</Resources>
</Cost>
<Footprint>
<Square width="16" depth="3.0"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>600</Max>
<Max op="mul">0.25</Max>
<SpawnEntityOnDeath>rubble/rubble_1x3pal</SpawnEntityOnDeath>
</Health>
<Identity>

View File

@ -18,7 +18,7 @@
</Footprint>
<GarrisonHolder disable=""/>
<Health>
<Max>600</Max>
<Max op="mul">0.25</Max>
<SpawnEntityOnDeath>rubble/rubble_1x3pal</SpawnEntityOnDeath>
</Health>
<Identity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall">
<Entity parent="template_structure_defense_wall_medium">
<Armour>
<Hack>4.0</Hack>
<Pierce>25.0</Pierce>
@ -18,7 +18,7 @@
</Footprint>
<GarrisonHolder disable=""/>
<Health>
<Max>500</Max>
<Max op="mul">0.25</Max>
<SpawnEntityOnDeath>rubble/rubble_1x3pal</SpawnEntityOnDeath>
</Health>
<Identity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall">
<Entity parent="template_structure_defense_wall_short">
<Armour>
<Hack>4.0</Hack>
<Pierce>25.0</Pierce>
@ -17,7 +17,7 @@
<Height>9.0</Height>
</Footprint>
<Health>
<Max>400</Max>
<Max op="mul">0.25</Max>
<SpawnEntityOnDeath>rubble/rubble_1x1pal</SpawnEntityOnDeath>
</Health>
<Identity>

View File

@ -17,7 +17,7 @@
<Height>9.0</Height>
</Footprint>
<Health>
<Max>400</Max>
<Max op="mul">0.25</Max>
<SpawnEntityOnDeath>rubble/rubble_1x1pal</SpawnEntityOnDeath>
</Health>
<Identity>

View File

@ -1,12 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall_gate">
<Cost>
<BuildTime>30</BuildTime>
<Resources>
<wood>40</wood>
<stone>40</stone>
</Resources>
</Cost>
<Footprint>
<Square width="38.5" depth="9.0"/>
<Height>9.0</Height>

View File

@ -17,9 +17,6 @@
</Archer3>
</VisibleGarrisonPoints>
</GarrisonHolder>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>brit</Civ>
<SelectionGroupName>structures/brit_wallset_stone</SelectionGroupName>

View File

@ -4,9 +4,6 @@
<Square width="14.5" depth="8.5"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>brit</Civ>
<SelectionGroupName>structures/brit_wallset_stone</SelectionGroupName>

View File

@ -1,18 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall">
<Cost>
<BuildTime>60</BuildTime>
<Resources>
<stone>100</stone>
</Resources>
</Cost>
<Footprint>
<Square width="31.0" depth="11.0"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>9000</Max>
</Health>
<Identity>
<Civ>cart</Civ>
<SpecificName>Jdar</SpecificName>

View File

@ -1,12 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense_wall_gate">
<Cost>
<BuildTime>30</BuildTime>
<Resources>
<wood>40</wood>
<stone>40</stone>
</Resources>
</Cost>
<Footprint>
<Square width="38.5" depth="9.0"/>
<Height>9.0</Height>

View File

@ -4,9 +4,6 @@
<Square width="26.5" depth="8.5"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<GarrisonHolder>
<VisibleGarrisonPoints>
<Archer1>

View File

@ -4,9 +4,6 @@
<Square width="14.5" depth="8.5"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>gaul</Civ>
<SelectionGroupName>structures/gaul_wallset_stone</SelectionGroupName>

View File

@ -17,9 +17,6 @@
</Archer3>
</VisibleGarrisonPoints>
</GarrisonHolder>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>iber</Civ>
<SelectionGroupName>structures/iber_wallset_stone</SelectionGroupName>

View File

@ -4,9 +4,6 @@
<Square width="13" depth="9"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>iber</Civ>
<SelectionGroupName>structures/iber_wallset_stone</SelectionGroupName>

View File

@ -7,7 +7,6 @@
<Identity>
<Civ>ptol</Civ>
<SpecificName>sba-n-njwt</SpecificName>
<History>(Insert history)</History>
</Identity>
<Obstruction>
<Obstructions>

View File

@ -25,6 +25,7 @@
</GarrisonHolder>
<Identity>
<Civ>ptol</Civ>
<History>Ptolemaic cities were surrounded by limestone walls for protection against enemy attacks. Some of these fortifications were massive structures.</History>
<SelectionGroupName>structures/ptol_wallset_stone</SelectionGroupName>
<SpecificName>h-n-njwt</SpecificName>
</Identity>

View File

@ -19,6 +19,7 @@
</GarrisonHolder>
<Identity>
<Civ>ptol</Civ>
<History>Ptolemaic cities were surrounded by limestone walls for protection against enemy attacks. Some of these fortifications were massive structures.</History>
<SelectionGroupName>structures/mace_wallset_stone</SelectionGroupName>
<SpecificName>h-n-njwt</SpecificName>
</Identity>

View File

@ -6,6 +6,7 @@
</Footprint>
<Identity>
<Civ>ptol</Civ>
<History>Ptolemaic cities were surrounded by limestone walls for protection against enemy attacks. Some of these fortifications were massive structures.</History>
<SelectionGroupName>structures/mace_wallset_stone</SelectionGroupName>
<SpecificName>h-n-njwt</SpecificName>
</Identity>

View File

@ -13,18 +13,12 @@
<BuildRestrictions>
<Territory>own neutral enemy</Territory>
</BuildRestrictions>
<Cost>
<Resources>
<wood>80</wood>
<stone>0</stone>
</Resources>
</Cost>
<Footprint>
<Square width="40.0" depth="8.0"/>
<Height>7.0</Height>
</Footprint>
<Health>
<Max>2000</Max>
<Max op="mul">0.75</Max>
</Health>
<Identity>
<Civ>rome</Civ>

View File

@ -43,7 +43,7 @@
</VisibleGarrisonPoints>
</GarrisonHolder>
<Health>
<Max>2000</Max>
<Max op="mul">0.75</Max>
</Health>
<Identity>
<Civ>rome</Civ>

View File

@ -24,7 +24,7 @@
<Height>7.0</Height>
</Footprint>
<Health>
<Max>1500</Max>
<Max op="mul">0.75</Max>
</Health>
<GarrisonHolder>
<VisibleGarrisonPoints>

View File

@ -24,7 +24,7 @@
<Height>7.0</Height>
</Footprint>
<Health>
<Max>1000</Max>
<Max op="mul">0.75</Max>
</Health>
<Identity>
<Civ>rome</Civ>

View File

@ -24,7 +24,7 @@
<Height>14.0</Height>
</Footprint>
<Health>
<Max>2000</Max>
<Max op="mul">0.75</Max>
</Health>
<Identity>
<Civ>rome</Civ>

View File

@ -17,9 +17,6 @@
</Archer3>
</VisibleGarrisonPoints>
</GarrisonHolder>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>rome</Civ>
<SelectionGroupName>structures/rome_wallset_stone</SelectionGroupName>

View File

@ -4,9 +4,6 @@
<Square width="14.5" depth="9.0"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>rome</Civ>
<SelectionGroupName>structures/rome_wallset_stone</SelectionGroupName>

View File

@ -4,9 +4,6 @@
<Square width="26.0" depth="7.0"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>spart</Civ>
<SelectionGroupName>structures/spart_wallset_stone</SelectionGroupName>

View File

@ -4,9 +4,6 @@
<Square width="14.0" depth="7.0"/>
<Height>9.0</Height>
</Footprint>
<Health>
<Max>3000</Max>
</Health>
<Identity>
<Civ>spart</Civ>
<SelectionGroupName>structures/spart_wallset_stone</SelectionGroupName>

View File

@ -1,33 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defense">
<BuildRestrictions>
<Category>Wall</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Repairable>
<RepairTimeRatio>4.5</RepairTimeRatio>
</Repairable>
<Cost>
<BuildTime>0</BuildTime>
<Resources>
<stone>50</stone>
</Resources>
</Cost>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
<Entity parent="template_structure_defense_wall_long">
<Auras disable=""/>
<GarrisonHolder disable=""/>
<Gate>
<PassRange>20</PassRange>
</Gate>
<Health>
<Max>3000</Max>
<SpawnEntityOnDeath>rubble/rubble_stone_wall_long</SpawnEntityOnDeath>
</Health>
<Identity>
<GenericName>City Gate</GenericName>
<Tooltip>Allow units access through a city wall. Can be locked to prevent access.</Tooltip>
<Classes datatype="tokens">-ConquestCritical StoneWall Gates</Classes>
<Classes datatype="tokens">Gates</Classes>
<Icon>structures/gate.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology>
</Identity>
@ -39,14 +20,13 @@
<metal>0</metal>
</Loot>
<Obstruction>
<Static disable=""/>
<Obstructions>
<Right width="5" depth="5" x="10" z="0"/>
<Left width="5" depth="5" x="-10" z="0"/>
<Door width="20.0" depth="6.5" x="0" z="0"/>
</Obstructions>
</Obstruction>
<ProductionQueue disable=""/>
<RallyPoint disable=""/>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_gate.xml</select>
@ -58,12 +38,5 @@
<gate_unlocked>interface/select/building/sel_gate.xml</gate_unlocked>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>20</Radius>
<Weight>65535</Weight>
</TerritoryInfluence>
<VisualActor>
<FoundationActor>structures/fndn_wall.xml</FoundationActor>
</VisualActor>
<Upgrade disable=""/>
</Entity>