1
0
forked from 0ad/0ad

Don't (mis)use technologies to differentiate elephants.

Use mixins.

Differential revision: D4590
This was SVN commit r27241.
This commit is contained in:
Freagarach 2022-11-22 07:09:25 +00:00
parent 50d8afcaba
commit da2d002c78
10 changed files with 68 additions and 50 deletions

View File

@ -1,22 +0,0 @@
{
"autoResearch": true,
"icon": "armor_elephant.png",
"tooltip": "African Elephants −10% resource costs, training time, health, attack damage, and loot.",
"modifications": [
{ "value": "Attack/Melee/Damage/Hack", "multiply": 0.9 },
{ "value": "Attack/Melee/Damage/Pierce", "multiply": 0.9 },
{ "value": "Attack/Melee/Damage/Crush", "multiply": 0.9 },
{ "value": "Cost/BuildTime", "multiply": 0.9 },
{ "value": "Cost/Resources/food", "multiply": 0.9 },
{ "value": "Cost/Resources/wood", "multiply": 0.9 },
{ "value": "Cost/Resources/stone", "multiply": 0.9 },
{ "value": "Cost/Resources/metal", "multiply": 0.9 },
{ "value": "Health/Max", "multiply": 0.9 },
{ "value": "Loot/food", "multiply": 0.9 },
{ "value": "Loot/wood", "multiply": 0.9 },
{ "value": "Loot/stone", "multiply": 0.9 },
{ "value": "Loot/metal", "multiply": 0.9 },
{ "value": "Loot/xp", "multiply": 0.9 }
],
"affects": ["AfricanElephant"]
}

View File

@ -1,22 +0,0 @@
{
"autoResearch": true,
"icon": "armor_elephant.png",
"tooltip": "Indian Elephants +10% resource costs, training time, health, attack damage, and loot.",
"modifications": [
{ "value": "Attack/Melee/Damage/Hack", "multiply": 1.1 },
{ "value": "Attack/Melee/Damage/Pierce", "multiply": 1.1 },
{ "value": "Attack/Melee/Damage/Crush", "multiply": 1.1 },
{ "value": "Cost/BuildTime", "multiply": 1.1 },
{ "value": "Cost/Resources/food", "multiply": 1.1 },
{ "value": "Cost/Resources/wood", "multiply": 1.1 },
{ "value": "Cost/Resources/stone", "multiply": 1.1 },
{ "value": "Cost/Resources/metal", "multiply": 1.1 },
{ "value": "Health/Max", "multiply": 1.1 },
{ "value": "Loot/food", "multiply": 1.1 },
{ "value": "Loot/wood", "multiply": 1.1 },
{ "value": "Loot/stone", "multiply": 1.1 },
{ "value": "Loot/metal", "multiply": 1.1 },
{ "value": "Loot/xp", "multiply": 1.1 }
],
"affects": ["IndianElephant"]
}

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Entity>
<Attack>
<Melee>
<Damage>
<Hack op="mul">0.9</Hack>
<Pierce op="mul">0.9</Pierce>
<Crush op="mul">0.9</Crush>
</Damage>
</Melee>
</Attack>
<Cost>
<BuildTime op="mul">0.9</BuildTime>
<Resources>
<food op="mul">0.9</food>
<wood op="mul">0.9</wood>
<stone op="mul">0.9</stone>
<metal op="mul">0.9</metal>
</Resources>
</Cost>
<Health>
<Max op="mul">0.9</Max>
</Health>
<Loot>
<food op="mul">0.9</food>
<wood op="mul">0.9</wood>
<stone op="mul">0.9</stone>
<metal op="mul">0.9</metal>
<xp op="mul">0.9</xp>
</Loot>
</Entity>

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Entity>
<Attack>
<Melee>
<Damage>
<Hack op="mul">1.1</Hack>
<Pierce op="mul">1.1</Pierce>
<Crush op="mul">1.1</Crush>
</Damage>
</Melee>
</Attack>
<Cost>
<BuildTime op="mul">1.1</BuildTime>
<Resources>
<food op="mul">1.1</food>
<wood op="mul">1.1</wood>
<stone op="mul">1.1</stone>
<metal op="mul">1.1</metal>
</Resources>
</Cost>
<Health>
<Max op="mul">1.1</Max>
</Health>
<Loot>
<food op="mul">1.1</food>
<wood op="mul">1.1</wood>
<stone op="mul">1.1</stone>
<metal op="mul">1.1</metal>
<xp op="mul">1.1</xp>
</Loot>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_african|template_unit_champion_elephant_melee">
<Identity>
<Civ>cart</Civ>
<GenericName>North African War Elephant</GenericName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_african|template_unit_champion_elephant_melee">
<Identity>
<Civ>kush</Civ>
<Lang>napatan</Lang>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_indian|template_unit_champion_elephant_melee">
<Identity>
<Civ>maur</Civ>
<GenericName>Indian War Elephant</GenericName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_indian|template_unit_champion_elephant_melee">
<Identity>
<Civ>pers</Civ>
<Lang>persian</Lang>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_african|template_unit_champion_elephant_melee">
<Identity>
<Civ>ptol</Civ>
<GenericName>Towered War Elephant</GenericName>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant_melee">
<Entity parent="elephant_indian|template_unit_champion_elephant_melee">
<Identity>
<Civ>sele</Civ>
<Lang>greek</Lang>