1
0
forked from mirrors/0ad

Clean up structure templates.

- Purge unnecessary attack sounds and buildingAI-nodes.
- Define some sounds, health and territoryInfluence in children when
most of them override parent.
- Remove unused `<BuildRestrictions/Category>` reverts 9af7747d76, part
of cdcee291cf, references 5e3049f6b2. Categories can be added when
necessary.

Patch by: @Nescio.
Differential Revision: D3016
This was SVN commit r24104.
This commit is contained in:
Freagarach
2020-10-15 11:07:35 +00:00
parent 93ecc1af4c
commit 1582e80ccf
55 changed files with 86 additions and 138 deletions
@@ -6,7 +6,7 @@ BuildRestrictions.prototype.Schema =
"<BuildRestrictions>" +
"<PlacementType>land</PlacementType>" +
"<Territory>own</Territory>" +
"<Category>Special</Category>" +
"<Category>Structure</Category>" +
"<Distance>" +
"<FromClass>CivilCentre</FromClass>" +
"<MaxDistance>40</MaxDistance>" +
@@ -3,18 +3,9 @@
<Attack>
<Ranged>
<Damage>
<Hack>0.0</Hack>
<Pierce>25.0</Pierce>
<Crush>0.0</Crush>
<Pierce>25</Pierce>
</Damage>
<MaxRange>50.0</MaxRange>
<MinRange>1.0</MinRange>
<PrepareTime>1200</PrepareTime>
<RepeatTime>2000</RepeatTime>
<Projectile>
<Speed>75.0</Speed>
<FriendlyFire>false</FriendlyFire>
</Projectile>
</Ranged>
</Attack>
<BuildingAI>
@@ -3,18 +3,9 @@
<Attack>
<Ranged>
<Damage>
<Hack>0.0</Hack>
<Pierce>25.0</Pierce>
<Crush>0.0</Crush>
<Pierce>25</Pierce>
</Damage>
<MaxRange>50.0</MaxRange>
<MinRange>1.0</MinRange>
<PrepareTime>1200</PrepareTime>
<RepeatTime>2000</RepeatTime>
<Projectile>
<Speed>75.0</Speed>
<FriendlyFire>false</FriendlyFire>
</Projectile>
</Ranged>
</Attack>
<BuildingAI>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="1.5" depth="4.25"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Footprint>
<Square width="62" depth="15.5"/>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Footprint>
<Square width="62" depth="15.5"/>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Fence</Category>
</BuildRestrictions>
<Footprint>
<Square width="2.5" depth="2.5"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="2.5" depth="12.5"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="2.5" depth="2.5"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Footprint>
<Square width="0.8" depth="13.0"/>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Footprint>
<Square width="0.8" depth="6.5"/>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Footprint>
<Square width="1.5" depth="11.0"/>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Cost>
<PopulationBonus>10</PopulationBonus>
<BuildTime>200</BuildTime>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="4.5" depth="4.5"/>
<Height>10.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Fence</Category>
</BuildRestrictions>
<Footprint>
<Square width="1.6" depth="1.6"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="4.0" depth="5.25"/>
<Height>4.0</Height>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="4.5" depth="4.5"/>
<Height>4.0</Height>
@@ -51,6 +51,11 @@
<constructed>interface/complete/building/complete_tholos.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/athenians/prytaneion.xml</Actor>
</VisualActor>
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_wall_tower">
<Attack disable=""/>
<BuildingAI disable=""/>
<Footprint>
<Square width="11" depth="10"/>
<Height>20</Height>
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_wall_tower">
<Attack disable=""/>
<BuildingAI disable=""/>
<Footprint>
<Square width="9" depth="9"/>
<Height>21.5</Height>
@@ -50,7 +50,6 @@
</SoundGroups>
</Sound>
<TerritoryDecay disable=""/>
<TerritoryInfluence disable=""/>
<Vision>
<Range>1</Range>
</Vision>
@@ -12,6 +12,9 @@
<Square width="40.0" depth="16.0"/>
<Height>5.0</Height>
</Footprint>
<Health>
<Max>2000</Max>
</Health>
<Identity>
<Civ>maur</Civ>
<SpecificName>Harmya</SpecificName>
@@ -37,6 +40,12 @@
units/{civ}_hero_ashoka
</Entities>
</ProductionQueue>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
@@ -50,7 +50,6 @@
</SoundGroups>
</Sound>
<TerritoryDecay disable=""/>
<TerritoryInfluence disable=""/>
<Vision>
<Range>1</Range>
</Vision>
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_military_barracks">
<Attack disable=""/>
<BuildRestrictions>
<Territory>own neutral</Territory>
<Distance>
@@ -59,9 +59,16 @@
</Rates>
<Interval>1000</Interval>
</ResourceTrickle>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>true</Root>
<Radius>48</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/persians/apadana.xml</Actor>
@@ -39,6 +39,11 @@
</SoundGroups>
</Sound>
<TerritoryDecay disable=""/>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/persians/hall.xml</Actor>
<FoundationActor>structures/fndn_7x7.xml</FoundationActor>
@@ -3,9 +3,6 @@
<Auras datatype="tokens">
structures/loyalty_regen
</Auras>
<BuildRestrictions>
<Category>IshtarGate</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Cost>
<BuildTime>200</BuildTime>
@@ -43,8 +40,16 @@
</Obstructions>
</Obstruction>
<ProductionQueue disable=""/>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>true</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>special/pers_ishtar_gate.xml</Actor>
@@ -35,9 +35,16 @@
<Static width="38.5" depth="22.5"/>
</Obstruction>
<ProductionQueue disable=""/>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>true</Root>
<Radius>48</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/persians/palace.xml</Actor>
@@ -17,6 +17,7 @@
<Height>8.0</Height>
</Footprint>
<Health>
<Max>2000</Max>
<SpawnEntityOnDeath>decay|rubble/rubble_stone_4x6</SpawnEntityOnDeath>
</Health>
<Identity>
@@ -47,9 +48,6 @@
</SoundGroups>
</Sound>
<TerritoryDecay disable=""/>
<TerritoryInfluence>
<Radius>0</Radius>
</TerritoryInfluence>
<Vision>
<Range>180</Range>
<RevealShore>true</RevealShore>
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_military_barracks">
<Attack disable=""/>
<BuildRestrictions>
<Territory>own neutral</Territory>
<Distance>
@@ -40,7 +40,6 @@
</SoundGroups>
</Sound>
<TerritoryDecay disable=""/>
<TerritoryInfluence disable=""/>
<Vision>
<Range>1</Range>
</Vision>
@@ -30,6 +30,7 @@
<DefaultArrowCount>1</DefaultArrowCount>
<MaxArrowCount>15</MaxArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Soldier</GarrisonArrowClasses>
</BuildingAI>
<BuildRestrictions>
<Territory>neutral enemy</Territory>
@@ -116,12 +117,13 @@
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<TerritoryDecay>
<DecayRate>37.5</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<Vision>
<Range>60</Range>
</Vision>
@@ -45,6 +45,11 @@
<constructed>interface/complete/building/complete_tholos.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/spartans/gerousia.xml</Actor>
</VisualActor>
@@ -52,6 +52,11 @@
<constructed>interface/complete/building/complete_gymnasium.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<Actor>structures/spartans/syssiton.xml</Actor>
<FoundationActor>structures/fndn_5x8.xml</FoundationActor>
@@ -1,14 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity>
<AIProxy/>
<BuildingAI>
<DefaultArrowCount>0</DefaultArrowCount>
<GarrisonArrowMultiplier>0</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Infantry Cavalry</GarrisonArrowClasses>
</BuildingAI>
<BuildRestrictions>
<PlacementType>land</PlacementType>
<Territory>own</Territory>
<Category>Structure</Category>
</BuildRestrictions>
<Capturable>
<CapturePoints>500</CapturePoints>
@@ -142,8 +138,6 @@
<attacked_gaia>interface/alarm/alarm_attacked_gaia.xml</attacked_gaia>
<attacked_capture>interface/alarm/alarm_attackplayer.xml</attacked_capture>
<attacked_capture_gaia>interface/alarm/alarm_attacked_gaia.xml</attacked_capture_gaia>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<StatusBars>
@@ -36,6 +36,7 @@
<BuildingAI>
<DefaultArrowCount>3</DefaultArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Soldier</GarrisonArrowClasses>
</BuildingAI>
<BuildRestrictions>
<Territory>own neutral</Territory>
@@ -128,6 +129,8 @@
<constructed>interface/complete/building/complete_civ_center.xml</constructed>
<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>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<BuildRestrictions>
<Category>House</Category>
</BuildRestrictions>
<Capturable>
<CapturePoints>300</CapturePoints>
<GarrisonRegenRate>4.0</GarrisonRegenRate>
@@ -61,8 +58,6 @@
</SoundGroups>
</Sound>
<StatusBars>
<BarWidth>6.0</BarWidth>
<BarHeight>0.6</BarHeight>
<HeightOffset>8.0</HeightOffset>
</StatusBars>
<TerritoryDecay>
@@ -3,9 +3,6 @@
<Auras datatype="tokens">
structures/temple_heal
</Auras>
<BuildRestrictions>
<Category>Temple</Category>
</BuildRestrictions>
<Cost>
<PopulationBonus>5</PopulationBonus>
<BuildTime>200</BuildTime>
@@ -4,12 +4,11 @@
structures/wall_garrisoned
</Auras>
<BuildRestrictions>
<Category>Outpost</Category>
<Territory>own neutral</Territory>
<Distance>
<FromClass>Outpost</FromClass>
<MinDistance>50</MinDistance>
</Distance>
<Territory>own neutral</Territory>
</BuildRestrictions>
<Cost>
<BuildTime>30</BuildTime>
@@ -56,6 +56,8 @@
<SoundGroups>
<constructed>interface/complete/building/complete_tower.xml</constructed>
<select>interface/select/building/sel_tower.xml</select>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<StatusBars>
@@ -77,8 +77,8 @@
</ProductionQueue>
<Sound>
<SoundGroups>
<attack_impact_ranged>attack/impact/javelin_impact.xml</attack_impact_ranged>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_ranged>attack/weapon/arrowfly.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_metal.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<TerritoryInfluence>
@@ -63,6 +63,8 @@
<SoundGroups>
<select>interface/select/building/sel_tower.xml</select>
<constructed>interface/complete/building/complete_tower.xml</constructed>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<Vision>
@@ -6,9 +6,6 @@
<EndOfAlertRange>100</EndOfAlertRange>
<SearchRange>100</SearchRange>
</AlertRaiser>
<BuildRestrictions>
<Category>Farmstead</Category>
</BuildRestrictions>
<Capturable>
<CapturePoints>300</CapturePoints>
</Capturable>
@@ -6,9 +6,6 @@
<EndOfAlertRange>-1</EndOfAlertRange>
<SearchRange>100</SearchRange>
</AlertRaiser>
<BuildRestrictions>
<Category>Market</Category>
</BuildRestrictions>
<Cost>
<BuildTime>150</BuildTime>
<Resources>
@@ -6,9 +6,6 @@
<EndOfAlertRange>100</EndOfAlertRange>
<SearchRange>100</SearchRange>
</AlertRaiser>
<BuildRestrictions>
<Category>Storehouse</Category>
</BuildRestrictions>
<Capturable>
<CapturePoints>300</CapturePoints>
</Capturable>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Military</Category>
</BuildRestrictions>
<GarrisonHolder>
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
@@ -30,6 +30,7 @@
<BuildingAI>
<DefaultArrowCount>3</DefaultArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Soldier</GarrisonArrowClasses>
</BuildingAI>
<BuildRestrictions>
<Category>Fortress</Category>
@@ -98,6 +99,8 @@
<SoundGroups>
<select>interface/select/building/sel_fortress.xml</select>
<constructed>interface/complete/building/complete_fortress.xml</constructed>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
</SoundGroups>
</Sound>
<TerritoryInfluence>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Resource</Category>
</BuildRestrictions>
<Identity>
<GenericName>Resource Structure</GenericName>
<VisibleClasses datatype="tokens">Resource</VisibleClasses>
@@ -23,7 +20,4 @@
</Damage>
</Foundation>
</Resistance>
<Vision>
<Range>4</Range>
</Vision>
</Entity>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_resource">
<BuildRestrictions>
<Category>Field</Category>
</BuildRestrictions>
<Cost>
<BuildTime>50</BuildTime>
<Resources>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>
<Footprint>
<Square width="24.0" depth="24.0"/>
<Height>8.0</Height>
@@ -16,7 +13,6 @@
<LoadingRange>2</LoadingRange>
</GarrisonHolder>
<Health>
<Max>2000</Max>
<SpawnEntityOnDeath>decay|rubble/rubble_stone_6x6</SpawnEntityOnDeath>
</Health>
<Identity>
@@ -43,17 +39,6 @@
</Damage>
</Foundation>
</Resistance>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>38</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<FoundationActor>structures/fndn_5x5.xml</FoundationActor>
</VisualActor>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_special">
<BuildRestrictions>
<Category>Amphitheater</Category>
</BuildRestrictions>
<Cost>
<BuildTime>500</BuildTime>
<Resources>
@@ -44,7 +41,9 @@
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>100</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<FoundationActor>structures/fndn_6x6.xml</FoundationActor>
@@ -18,6 +18,7 @@
<Height>9.0</Height>
</Footprint>
<Health>
<Max>2000</Max>
<SpawnEntityOnDeath>decay|rubble/rubble_stone_4x6</SpawnEntityOnDeath>
</Health>
<Identity>
@@ -45,7 +46,9 @@
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>50</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<FoundationActor>structures/fndn_7x9.xml</FoundationActor>
@@ -16,6 +16,9 @@
<Height>6.0</Height>
</Footprint>
<GarrisonHolder disable=""/>
<Health>
<Max>2000</Max>
</Health>
<Identity>
<GenericName>Rotary Mill</GenericName>
<SelectionGroupName>template_structure_special_rotarymill</SelectionGroupName>
@@ -41,7 +44,9 @@
<HeightOffset>8.0</HeightOffset>
</StatusBars>
<TerritoryInfluence>
<Root>false</Root>
<Radius>32</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
<VisualActor>
<FoundationActor>structures/fndn_6x6.xml</FoundationActor>
@@ -41,6 +41,8 @@
</SoundGroups>
</Sound>
<TerritoryInfluence>
<Root>false</Root>
<Radius>100</Radius>
<Weight>40000</Weight>
</TerritoryInfluence>
</Entity>
@@ -89,11 +89,6 @@
<constructed>interface/complete/building/complete_wonder.xml</constructed>
</SoundGroups>
</Sound>
<StatusBars>
<BarWidth>6.0</BarWidth>
<BarHeight>0.6</BarHeight>
<HeightOffset>12.0</HeightOffset>
</StatusBars>
<TerritoryInfluence>
<Root>true</Root>
<Radius>100</Radius>