Templates | Rename warship parent templates to more agnostic naming scheme. Adjust ship child templates to suit.

This was SVN commit r27341.
This commit is contained in:
wowgetoffyourcellphone 2023-01-04 23:50:12 +00:00
parent 9c05ff2271
commit 7c1c8fb2ff
40 changed files with 184 additions and 228 deletions

View File

@ -1,86 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship">
<Attack>
<Ranged>
<AttackName>Bow</AttackName>
<Damage>
<Pierce>12</Pierce>
</Damage>
<MaxRange>55</MaxRange>
<PrepareTime>1000</PrepareTime>
<RepeatTime>2000</RepeatTime>
<Bonuses>
<BonusShip>
<Classes>Ship</Classes>
<Multiplier>3.0</Multiplier>
</BonusShip>
</Bonuses>
<Projectile>
<Speed>100</Speed>
<Spread>2</Spread>
<Gravity>50</Gravity>
<FriendlyFire>false</FriendlyFire>
<LaunchPoint y="3"/>
</Projectile>
<PreferredClasses datatype="tokens">Ship Human</PreferredClasses>
</Ranged>
</Attack>
<BuildingAI>
<DefaultArrowCount>3</DefaultArrowCount>
<MaxArrowCount>13</MaxArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Infantry Cavalry</GarrisonArrowClasses>
</BuildingAI>
<Cost>
<Population>3</Population>
<BuildTime>25</BuildTime>
<Resources>
<wood>200</wood>
<metal>100</metal>
</Resources>
</Cost>
<GarrisonHolder>
<Max>30</Max>
<List datatype="tokens">Support Soldier Siege</List>
</GarrisonHolder>
<Health>
<Max>1400</Max>
</Health>
<Identity>
<GenericName>Medium Warship</GenericName>
<Tooltip>Garrison units for transport and to increase firepower. Deals triple damage against Ships.</Tooltip>
<VisibleClasses datatype="tokens">Ranged Warship Trireme</VisibleClasses>
<Requirements>
<Techs>phase_town</Techs>
</Requirements>
</Identity>
<Loot>
<xp>140</xp>
<wood>40</wood>
<metal>20</metal>
</Loot>
<Position>
<TurnRate>4</TurnRate>
</Position>
<Selectable>
<Overlay>
<Texture>
<MainTexture>128x512/cartouche.png</MainTexture>
<MainTextureMask>128x512/cartouche_mask.png</MainTextureMask>
</Texture>
</Overlay>
</Selectable>
<Sound>
<SoundGroups>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
</SoundGroups>
</Sound>
<UnitMotion>
<WalkSpeed op="mul">1.8</WalkSpeed>
<Acceleration op="mul">1.8</Acceleration>
</UnitMotion>
<Vision>
<Range>90</Range>
</Vision>
</Entity>

View File

@ -1,83 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship">
<Attack>
<Ranged>
<AttackName>Bow</AttackName>
<Damage>
<Pierce>12</Pierce>
</Damage>
<MaxRange>45</MaxRange>
<PrepareTime>1000</PrepareTime>
<RepeatTime>2000</RepeatTime>
<Bonuses>
<BonusShip>
<Classes>Ship</Classes>
<Multiplier>3.0</Multiplier>
</BonusShip>
</Bonuses>
<Projectile>
<Speed>100</Speed>
<Spread>2</Spread>
<Gravity>50</Gravity>
<FriendlyFire>false</FriendlyFire>
<LaunchPoint y="3"/>
</Projectile>
<PreferredClasses datatype="tokens">Ship Human</PreferredClasses>
</Ranged>
</Attack>
<BuildingAI>
<DefaultArrowCount>2</DefaultArrowCount>
<MaxArrowCount>10</MaxArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Infantry Cavalry</GarrisonArrowClasses>
</BuildingAI>
<Cost>
<Population>2</Population>
<BuildTime>20</BuildTime>
<Resources>
<wood>120</wood>
<metal>60</metal>
</Resources>
</Cost>
<GarrisonHolder>
<Max>20</Max>
<List datatype="tokens">Support Cavalry</List>
</GarrisonHolder>
<Health>
<Max>800</Max>
</Health>
<Identity>
<GenericName>Light Warship</GenericName>
<Tooltip>Garrison units for transport and to increase firepower. Deals triple damage against Ships.</Tooltip>
<VisibleClasses datatype="tokens">Ranged Warship Bireme</VisibleClasses>
<Requirements>
<Techs>phase_town</Techs>
</Requirements>
</Identity>
<Loot>
<xp>80</xp>
<wood>24</wood>
<metal>12</metal>
</Loot>
<Selectable>
<Overlay>
<Texture>
<MainTexture>128x512/cartouche.png</MainTexture>
<MainTextureMask>128x512/cartouche_mask.png</MainTextureMask>
</Texture>
</Overlay>
</Selectable>
<Sound>
<SoundGroups>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
</SoundGroups>
</Sound>
<UnitMotion>
<WalkSpeed op="mul">1.55</WalkSpeed>
<Acceleration op="mul">1.55</Acceleration>
</UnitMotion>
<Vision>
<Range>90</Range>
</Vision>
</Entity>
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship">
<Attack>
<Ranged>
<AttackName>Bow</AttackName>
<Damage>
<Pierce>12</Pierce>
</Damage>
<MaxRange>45</MaxRange>
<PrepareTime>1000</PrepareTime>
<RepeatTime>2000</RepeatTime>
<Bonuses>
<BonusShip>
<Classes>Ship</Classes>
<Multiplier>3.0</Multiplier>
</BonusShip>
</Bonuses>
<Projectile>
<Speed>100</Speed>
<Spread>2</Spread>
<Gravity>50</Gravity>
<FriendlyFire>false</FriendlyFire>
<LaunchPoint y="3"/>
</Projectile>
<PreferredClasses datatype="tokens">Ship Human</PreferredClasses>
</Ranged>
</Attack>
<BuildingAI>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>Infantry Cavalry</GarrisonArrowClasses>
</BuildingAI>
<GarrisonHolder>
<List datatype="tokens">Support Soldier</List>
</GarrisonHolder>
<Identity>
<GenericName>Light Warship</GenericName>
<Tooltip>Garrison units for transport and to increase firepower. Deals triple damage against Ships.</Tooltip>
<VisibleClasses datatype="tokens">Ranged Warship</VisibleClasses>
</Identity>
<Selectable>
<Overlay>
<Texture>
<MainTexture>128x512/cartouche.png</MainTexture>
<MainTextureMask>128x512/cartouche_mask.png</MainTextureMask>
</Texture>
</Overlay>
</Selectable>
<Sound>
<SoundGroups>
<attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
<attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
</SoundGroups>
</Sound>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship">
<Entity parent="template_unit_ship_warship">
<Attack>
<Ranged>
<AttackName>Stone</AttackName>
@ -28,7 +28,6 @@
<BuildingAI>
<DefaultArrowCount>1</DefaultArrowCount>
<MaxArrowCount>10</MaxArrowCount>
<GarrisonArrowMultiplier>1</GarrisonArrowMultiplier>
<GarrisonArrowClasses>StoneThrower</GarrisonArrowClasses>
</BuildingAI>
<Cost>
@ -52,8 +51,9 @@
</Health>
<Identity>
<GenericName>Heavy Warship</GenericName>
<Tooltip>Garrison units for transport and to increase firepower.</Tooltip>
<VisibleClasses datatype="tokens">Ranged Warship Quinquereme</VisibleClasses>
<Tooltip>Garrison units for transport. Garrison Stone Throwers to increase firepower.</Tooltip>
<VisibleClasses datatype="tokens">Heavy</VisibleClasses>
<Classes datatype="tokens">Quinquereme</Classes>
<Requirements>
<Techs>phase_city</Techs>
</Requirements>
@ -66,14 +66,6 @@
<Position>
<TurnRate>4</TurnRate>
</Position>
<Selectable>
<Overlay>
<Texture>
<MainTexture>128x512/cartouche.png</MainTexture>
<MainTextureMask>128x512/cartouche_mask.png</MainTextureMask>
</Texture>
</Overlay>
</Selectable>
<Sound>
<SoundGroups>
<attack_ranged>attack/siege/ballist_attack.xml</attack_ranged>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_warship">
<BuildingAI>
<DefaultArrowCount>2</DefaultArrowCount>
<MaxArrowCount>10</MaxArrowCount>
</BuildingAI>
<Cost>
<Population>2</Population>
<BuildTime>20</BuildTime>
<Resources>
<wood>120</wood>
<metal>60</metal>
</Resources>
</Cost>
<GarrisonHolder>
<Max>20</Max>
</GarrisonHolder>
<Health>
<Max>800</Max>
</Health>
<Identity>
<GenericName>Light Warship</GenericName>
<VisibleClasses datatype="tokens">Light</VisibleClasses>
<Classes datatype="tokens">Bireme</Classes>
<Requirements>
<Techs>phase_town</Techs>
</Requirements>
</Identity>
<Loot>
<xp>80</xp>
<wood>24</wood>
<metal>12</metal>
</Loot>
<UnitMotion>
<WalkSpeed op="mul">1.55</WalkSpeed>
<Acceleration op="mul">1.55</Acceleration>
</UnitMotion>
<Vision>
<Range>90</Range>
</Vision>
</Entity>

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_warship">
<BuildingAI>
<DefaultArrowCount>3</DefaultArrowCount>
<MaxArrowCount>13</MaxArrowCount>
</BuildingAI>
<Cost>
<Population>3</Population>
<BuildTime>25</BuildTime>
<Resources>
<wood>200</wood>
<metal>100</metal>
</Resources>
</Cost>
<GarrisonHolder>
<Max>30</Max>
<List datatype="tokens">Siege</List>
</GarrisonHolder>
<Health>
<Max>1400</Max>
</Health>
<Identity>
<GenericName>Medium Warship</GenericName>
<Tooltip>Garrison units for transport and to increase firepower. Deals triple damage against Ships.</Tooltip>
<VisibleClasses datatype="tokens">Medium</VisibleClasses>
<Classes datatype="tokens">Trireme</Classes>
<Requirements>
<Techs>phase_town</Techs>
</Requirements>
</Identity>
<Loot>
<xp>140</xp>
<wood>40</wood>
<metal>20</metal>
</Loot>
<Position>
<TurnRate>4</TurnRate>
</Position>
<UnitMotion>
<WalkSpeed op="mul">1.8</WalkSpeed>
<Acceleration op="mul">1.8</Acceleration>
</UnitMotion>
<Vision>
<Range>90</Range>
</Vision>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="civ/athen|template_unit_ship_bireme">
<Entity parent="civ/athen|template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="civ/athen|template_unit_ship_trireme">
<Entity parent="civ/athen|template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Cost>
<BuildTime>40</BuildTime>
</Cost>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="9.0" depth="36.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Identity>
<Civ>cart</Civ>
<GenericName>Quinquereme</GenericName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="12.0" depth="48.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Cost>
<BuildTime>40</BuildTime>
</Cost>

View File

@ -14,12 +14,12 @@
<Promotion>
<Entity>units/han/infantry_spearman_a</Entity>
</Promotion>
<VisualActor>
<Actor>units/han/infantry_spearman_b.xml</Actor>
</VisualActor>
<UnitAI>
<Formations datatype="tokens">
special/formations/anti_cavalry
</Formations>
</UnitAI>
<VisualActor>
<Actor>units/han/infantry_spearman_b.xml</Actor>
</VisualActor>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square depth="16.0" width="8.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Footprint>
<Square depth="46.0" width="20.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square depth="34.0" width="17.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Cost>
<BuildTime>40</BuildTime>
</Cost>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="14.0" depth="32.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Cost>
<BuildTime>40</BuildTime>
</Cost>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="10.0" depth="28.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="7.0" depth="37.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="9.0" depth="42.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="9.0" depth="37.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Cost>
<Population>5</Population>
<BuildTime>60</BuildTime>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Identity>
<Civ>ptol</Civ>
<SpecificName>Octḗrēs</SpecificName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Identity>
<Civ>rome</Civ>
<SpecificName>Quīnquerēmis Rōmāna</SpecificName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="43.0"/>
</Footprint>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>
@ -11,6 +11,6 @@
<Icon>units/ptol/ship_bireme.png</Icon>
</Identity>
<VisualActor>
<Actor>structures/ptolemies/bireme.xml</Actor>
<Actor>structures/macedonians/pentekonter.xml</Actor>
</VisualActor>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_quinquereme">
<Entity parent="template_unit_ship_warship_heavy">
<Identity>
<Civ>sele</Civ>
<SpecificName>Pentères</SpecificName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>
@ -11,6 +11,6 @@
<Icon>units/hele/ship_trireme.png</Icon>
</Identity>
<VisualActor>
<Actor>structures/athenians/trireme.xml</Actor>
<Actor>structures/macedonians/trireme.xml</Actor>
</VisualActor>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="8.0" depth="33.0"/>
<Height>10.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_trireme">
<Entity parent="template_unit_ship_warship_medium">
<Footprint>
<Square width="10.0" depth="40.0"/>
<Height>8.0</Height>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_ship_bireme">
<Entity parent="template_unit_ship_warship_light">
<Footprint>
<Square width="14.0" depth="56.0"/>
<Height>10.0</Height>
@ -8,14 +8,6 @@
<SpecificName>Longship</SpecificName>
<Icon>units/viking_longship.png</Icon>
</Identity>
<Selectable>
<Overlay>
<Texture>
<MainTexture>128x512/cartouche.png</MainTexture>
<MainTextureMask>128x512/cartouche_mask.png</MainTextureMask>
</Texture>
</Overlay>
</Selectable>
<VisualActor>
<Actor>structures/viking/longship.xml</Actor>
</VisualActor>