1
0
forked from 0ad/0ad

Exponential Armor patch by Alpha123, with new updated armor values.

Needs a ton of testing.

This was SVN commit r13381.
This commit is contained in:
Michael D. Hafer 2013-04-29 07:51:51 +00:00
parent 4493f2986f
commit e0a2e5790d
314 changed files with 926 additions and 1328 deletions

View File

@ -192,7 +192,7 @@ function displaySingle(entState, template)
// Show max attack range if ranged attack, also convert to tiles (4m per tile)
if (entState.attack && entState.attack.type == "Ranged")
attack += ", [font=\"serif-bold-13\"]Range:[/font] " + Math.round(entState.attack.maxRange/4);
getGUIObjectByName("attackAndArmorStats").tooltip = attack + "\n[font=\"serif-bold-13\"]Armor:[/font] " + damageTypeDetails(entState.armour);
getGUIObjectByName("attackAndArmorStats").tooltip = attack + "\n[font=\"serif-bold-13\"]Armor:[/font] " + armorTypeDetails(entState.armour);
// Icon Tooltip
var iconTooltip = "";

View File

@ -455,7 +455,7 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, playerState, items, c
if (template.health)
tooltip += "\n[font=\"serif-bold-13\"]Health:[/font] " + template.health;
if (template.armour)
tooltip += "\n[font=\"serif-bold-13\"]Armour:[/font] " + damageTypesToText(template.armour);
tooltip += "\n[font=\"serif-bold-13\"]Armour:[/font] " + armorTypesToText(template.armour);
if (template.attack)
tooltip += "\n" + getEntityAttack(template);
if (template.speed)

View File

@ -177,6 +177,42 @@ function damageTypeDetails(dmg)
}
}
// Converts an armor level into the actual reduction percentage
function armorLevelToPercentage(level)
{
return 100 - Math.round(Math.pow(0.9, level) * 100);
}
// Also for the unit details panel
function armorTypeDetails(dmg)
{
if (dmg)
{
var dmgArray = [];
if (dmg.hack)
{
dmgArray.push(dmg.hack + "[font=\"sans-10\"][color=\"orange\"] Hack[/color][/font] " +
" [font=\"sans-10\"](" + armorLevelToPercentage(dmg.hack) + "%)[/font]");
}
if (dmg.pierce)
{
dmgArray.push(dmg.pierce + "[font=\"sans-10\"][color=\"orange\"] Pierce[/color][/font] " +
" [font=\"sans-10\"](" + armorLevelToPercentage(dmg.pierce) + "%)[/font]");
}
if (dmg.crush)
{
dmgArray.push(dmg.crush + "[font=\"sans-10\"][color=\"orange\"] Crush[/color][/font] " +
" [font=\"sans-10\"](" + armorLevelToPercentage(dmg.crush) + "%)[/font]");
}
return dmgArray.join(", ");
}
else
{
return "[font=\"serif-12\"](None)[/font]";
}
}
// For the training tooltip
function damageTypesToText(dmg)
{
@ -198,6 +234,27 @@ function damageTypesToText(dmg)
return dmgArray.join("[font=\"serif-12\"], [/font]");
}
// Also for the training tooltip
function armorTypesToText(dmg)
{
if (!dmg)
return "[font=\"serif-12\"](None)[/font]";
var hackDamage = dmg.hack;
var pierceDamage = dmg.pierce;
var crushDamage = dmg.crush;
var hackLabel = "[font=\"serif-12\"] Hack (" + armorLevelToPercentage(hackDamage) + "%)[/font]";
var pierceLabel = "[font=\"serif-12\"] Pierce (" + armorLevelToPercentage(pierceDamage) + "%)[/font]";
var crushLabel = "[font=\"serif-12\"] Crush (" + armorLevelToPercentage(crushDamage) + "%)[/font]";
var dmgArray = [];
if (hackDamage) dmgArray.push(hackDamage + hackLabel);
if (pierceDamage) dmgArray.push(pierceDamage + pierceLabel);
if (crushDamage) dmgArray.push(crushDamage + crushLabel);
return dmgArray.join("[font=\"serif-12\"], [/font]");
}
function getEntityCommandsList(entState)
{
var commands = [];

Binary file not shown.

View File

@ -47,11 +47,11 @@ Armour.prototype.TakeDamage = function(hack, pierce, crush)
if (this.invulnerable)
return { "killed": false };
// Adjust damage values based on armour
// Adjust damage values based on armour; exponential armour: damage = attack * 0.9^armour
var armourStrengths = this.GetArmourStrengths();
var adjHack = Math.max(0, hack - armourStrengths.hack);
var adjPierce = Math.max(0, pierce - armourStrengths.pierce);
var adjCrush = Math.max(0, crush - armourStrengths.crush);
var adjHack = hack * Math.pow(0.9, armourStrengths.hack);
var adjPierce = pierce * Math.pow(0.9, armourStrengths.pierce);
var adjCrush = crush * Math.pow(0.9, armourStrengths.crush);
// Total is sum of individual damages, with minimum damage 1
// Round to nearest integer, since HP is integral

View File

@ -13,7 +13,7 @@
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "armor_plates_cavalry.png",
"researchTime": 20,
"tooltip": "Equip your cavalry mounts with armour. All Cavalry +1 Hack Armour.",
"tooltip": "Equip your cavalry mounts with armor. All Cavalry +1 Hack armor level.",
"modifications": [{"value": "Armour/Hack", "add": 1.0}],
"affects": ["Cavalry"]
}

View File

@ -7,7 +7,7 @@
"supersedes": "armor_ship_hypozomata",
"icon": "armor_ship_gold.png",
"researchTime": 20,
"tooltip": "Lead sheathing protects ship hulls. Adds +2 to all ship armor types.",
"tooltip": "Lead sheathing protects ship hulls. +2 levels to all ship armor types.",
"modifications": [
{"value": "Armour/Hack", "add": 2.0},
{"value": "Armour/Pierce", "add": 2.0},

View File

@ -7,7 +7,7 @@
"supersedes": "armor_ship_reinforcedhull",
"icon": "armor_ship_silver.png",
"researchTime": 20,
"tooltip": "The hypozomata braces the ship's structure. Adds +2 to all ship armor types.",
"tooltip": "The hypozomata braces the ship's structure. +2 levels to all ship armor types.",
"modifications": [
{"value": "Armour/Hack", "add": 2.0},
{"value": "Armour/Pierce", "add": 2.0},

View File

@ -6,7 +6,7 @@
"requirementsTooltip": "Unlocked in Village Phase.",
"icon": "armor_ship_bronze.png",
"researchTime": 20,
"tooltip": "Wooden reinforcement beams for hulls. Adds +2 to all ship armor types.",
"tooltip": "Wooden reinforcement beams for hulls. +2 levels to all ship armor types.",
"modifications": [
{"value": "Armour/Hack", "add": 2.0},
{"value": "Armour/Pierce", "add": 2.0},

View File

@ -6,7 +6,7 @@
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "wheel.png",
"researchTime": 20,
"tooltip": "Traders +2 Hack and Pierce Armour",
"tooltip": "Traders +2 Hack and Pierce armor levels.",
"modifications": [
{"value": "Armour/Hack", "add": 2.0},
{"value": "Armour/Pierce", "add": 2.0}],

View File

@ -6,7 +6,7 @@
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "armor_plates_gold.png",
"researchTime": 30,
"tooltip": "All Siege weapons +2 Hack Armour",
"tooltip": "All Siege weapons +2 Hack armor levels.",
"modifications": [{"value": "Armour/Hack", "add": 5.0}],
"affects": ["Siege"]
}

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_entity_full">
<Armour>
<Hack>10.0</Hack>
<Pierce>40.0</Pierce>
<Crush>10.0</Crush>
<Hack>1</Hack>
<Pierce>1</Pierce>
<Crush>1</Crush>
<Foundation>
<Hack>3.0</Hack>
<Pierce>8.0</Pierce>
<Crush>3.0</Crush>
<Hack>1</Hack>
<Pierce>1</Pierce>
<Crush>1</Crush>
</Foundation>
</Armour>
<BuildingAI>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>5</Hack>
<Pierce>20</Pierce>
<Crush>5</Crush>
<Foundation>
<Hack>3</Hack>
<Pierce>10</Pierce>
<Crush>3</Crush>
</Foundation>
</Armour>
<Identity>
<GenericName>Civic Structure</GenericName>
<Classes datatype="tokens">Civic</Classes>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Armour>
<Hack>10.0</Hack>
<Pierce>40.0</Pierce>
<Crush>5.0</Crush>
<Foundation>
<Hack>3.0</Hack>
<Pierce>8.0</Pierce>
<Crush>2.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>House</Category>
</BuildRestrictions>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Armour>
<Hack>20.0</Hack>
<Pierce>40.0</Pierce>
<Crush>10.0</Crush>
<Foundation>
<Hack>5.0</Hack>
<Pierce>8.0</Pierce>
<Crush>3.0</Crush>
</Foundation>
</Armour>
<Auras>
<Heal>
<Radius>40</Radius>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>10.0</Hack>
<Pierce>30.0</Pierce>
<Crush>10.0</Crush>
<Foundation>
<Hack>5.0</Hack>
<Pierce>10.0</Pierce>
<Crush>5.0</Crush>
</Foundation>
</Armour>
<Identity>
<GenericName>Defensive Structure</GenericName>
<Classes datatype="tokens">Defensive</Classes>
</Identity>
</Entity>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Armour>
<Hack>15.0</Hack>
<Pierce>40.0</Pierce>
<Crush>15.0</Crush>
<Foundation>
<Hack>4.0</Hack>
<Pierce>8.0</Pierce>
<Crush>4.0</Crush>
</Foundation>
</Armour>
<Entity parent="template_structure_defense">
<Attack>
<Ranged>
<Hack>0.0</Hack>
@ -55,7 +45,7 @@
<Identity>
<GenericName>Defense Tower</GenericName>
<Tooltip>Shoots arrows. Garrison to provide extra defense.</Tooltip>
<Classes datatype="tokens">Town Defensive Tower GarrisonTower -ConquestCritical</Classes>
<Classes datatype="tokens">Town Tower GarrisonTower -ConquestCritical</Classes>
<Icon>structures/defense_tower.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology>
</Identity>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Entity parent="template_structure_defense">
<Armour>
<Hack>5.0</Hack>
<Hack>2.0</Hack>
<Pierce>5.0</Pierce>
<Crush>5.0</Crush>
<Crush>2.0</Crush>
<Foundation>
<Hack>2.0</Hack>
<Pierce>2.0</Pierce>
@ -50,7 +50,7 @@
</GarrisonHolder>
<Health>
<Max>800</Max>
<SpawnEntityOnDeath>rubble/rubble_2x2</SpawnEntityOnDeath>
<SpawnEntityOnDeath>rubble/rubble_stone_2x2</SpawnEntityOnDeath>
</Health>
<Identity>
<GenericName>Outpost</GenericName>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Armour>
<Hack>20.0</Hack>
<Pierce>40.0</Pierce>
<Crush>15.0</Crush>
<Foundation>
<Hack>5.0</Hack>
<Pierce>8.0</Pierce>
<Crush>4.0</Crush>
</Foundation>
</Armour>
<Entity parent="template_structure_defense">
<BuildRestrictions>
<Category>Wall</Category>
</BuildRestrictions>

View File

@ -1,14 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Entity parent="template_structure_defense">
<Armour>
<Hack>15.0</Hack>
<Pierce>40.0</Pierce>
<Crush>10.0</Crush>
<Foundation>
<Hack>4.0</Hack>
<Pierce>8.0</Pierce>
<Crush>3.0</Crush>
</Foundation>
<Hack>5.0</Hack>
</Armour>
<BuildRestrictions>
<Category>Wall</Category>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_civic">
<Armour>
<Hack>20.0</Hack>
<Pierce>40.0</Pierce>
<Crush>15.0</Crush>
<Foundation>
<Hack>5.0</Hack>
<Pierce>8.0</Pierce>
<Crush>4.0</Crush>
</Foundation>
</Armour>
<Entity parent="template_structure_defense">
<Attack>
<Ranged>
<Hack>0.0</Hack>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>1</Hack>
<Pierce>20</Pierce>
<Crush>1</Crush>
<Foundation>
<Hack>1</Hack>
<Pierce>10</Pierce>
<Crush>1</Crush>
</Foundation>
</Armour>
<Identity>
<GenericName>Economic Structure</GenericName>
<Classes datatype="tokens">Economic</Classes>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_economic">
<Armour>
<Hack>10.0</Hack>
<Pierce>40.0</Pierce>
<Crush>15.0</Crush>
<Foundation>
<Hack>3.0</Hack>
<Pierce>8.0</Pierce>
<Crush>4.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Farmstead</Category>
</BuildRestrictions>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_economic">
<Armour>
<Hack>10.0</Hack>
<Pierce>40.0</Pierce>
<Crush>20.0</Crush>
<Foundation>
<Hack>3.0</Hack>
<Pierce>8.0</Pierce>
<Crush>5.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Market</Category>
</BuildRestrictions>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_economic">
<Armour>
<Hack>10.0</Hack>
<Pierce>40.0</Pierce>
<Crush>15.0</Crush>
<Foundation>
<Hack>3.0</Hack>
<Pierce>8.0</Pierce>
<Crush>4.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Mill</Category>
</BuildRestrictions>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>10</Hack>
<Pierce>25</Pierce>
<Crush>10</Crush>
<Foundation>
<Hack>5</Hack>
<Pierce>12</Pierce>
<Crush>5</Crush>
</Foundation>
</Armour>
<Identity>
<GenericName>Military Structure</GenericName>
</Identity>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_military">
<Armour>
<Hack>15.0</Hack>
<Pierce>40.0</Pierce>
<Crush>20.0</Crush>
<Foundation>
<Hack>4.0</Hack>
<Pierce>8.0</Pierce>
<Crush>5.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Barracks</Category>
</BuildRestrictions>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_military">
<Armour>
<Hack>15.0</Hack>
<Pierce>40.0</Pierce>
<Crush>20.0</Crush>
<Foundation>
<Hack>4.0</Hack>
<Pierce>8.0</Pierce>
<Crush>5.0</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Territory>own ally neutral</Territory>
<PlacementType>shore</PlacementType>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_military">
<Armour>
<Hack>20.0</Hack>
<Pierce>40.0</Pierce>
<Crush>20.0</Crush>
<Foundation>
<Hack>5.0</Hack>
<Pierce>8.0</Pierce>
<Crush>5.0</Crush>
</Foundation>
</Armour>
<Attack>
<Ranged>
<Hack>0.0</Hack>

View File

@ -1,11 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>1</Hack>
<Pierce>20</Pierce>
<Crush>1</Crush>
<Foundation>
<Hack>1</Hack>
<Pierce>10</Pierce>
<Crush>1</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Resource</Category>
</BuildRestrictions>
<Identity>
<GenericName>Resource Structure</GenericName>
<Classes datatype="tokens">-ConquestCritical</Classes>
<Classes datatype="tokens">-ConquestCritical Resource</Classes>
</Identity>
<Vision>
<Range>4</Range>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_resource">
<Armour>
<Hack>5.0</Hack>
<Pierce>40.0</Pierce>
<Crush>10.0</Crush>
<Foundation>
<Hack>2.0</Hack>
<Pierce>8.0</Pierce>
<Crush>3.0</Crush>
</Foundation>
</Armour>
<Cost>
<BuildTime>50</BuildTime>
<Resources>
@ -56,12 +46,6 @@
gather_animals_stockbreeding
</Technologies>
</ProductionQueue>
<ResourceSupply>
<KillBeforeGather>false</KillBeforeGather>
<Amount>200</Amount>
<Type>food.milk</Type>
<MaxGatherers>6</MaxGatherers>
</ResourceSupply>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_corral.xml</select>

View File

@ -1,14 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_resource">
<Armour>
<Hack>5.0</Hack>
<Pierce>40.0</Pierce>
<Crush>40.0</Crush>
<Foundation>
<Hack>2.0</Hack>
<Pierce>8.0</Pierce>
<Crush>8.0</Crush>
</Foundation>
<Crush>20</Crush>
</Armour>
<BuildRestrictions>
<Category>Field</Category>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>5</Hack>
<Pierce>20</Pierce>
<Crush>5</Crush>
<Foundation>
<Hack>3</Hack>
<Pierce>10</Pierce>
<Crush>3</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Special</Category>
</BuildRestrictions>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure">
<Armour>
<Hack>3</Hack>
<Pierce>20</Pierce>
<Crush>3</Crush>
<Foundation>
<Hack>2</Hack>
<Pierce>10</Pierce>
<Crush>2</Crush>
</Foundation>
</Armour>
<BuildRestrictions>
<Category>Wonder</Category>
</BuildRestrictions>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_cavalry_melee">
<Armour>
<Hack>4.0</Hack>
<Pierce>11.0</Pierce>
<Crush>5.0</Crush>
<Hack>1</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_cavalry_melee">
<Armour>
<Hack>4.0</Hack>
<Pierce>10.0</Pierce>
<Crush>5.0</Crush>
<Hack>1</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_cavalry_ranged">
<Armour>
<Hack>2.0</Hack>
<Pierce>6.0</Pierce>
<Crush>8.0</Crush>
<Hack>1</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_cavalry_ranged">
<Armour>
<Hack>3.0</Hack>
<Pierce>4.0</Pierce>
<Crush>2.0</Crush>
<Hack>1</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion">
<Armour>
<Hack>6.0</Hack>
<Pierce>6.0</Pierce>
<Crush>5.0</Crush>
</Armour>
<Attack>
<Melee>
<Hack>35.0</Hack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Armour>
<Hack>6.0</Hack>
<Pierce>6.0</Pierce>
<Crush>5.0</Crush>
<Hack>4</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Armour>
<Hack>6.0</Hack>
<Pierce>6.0</Pierce>
<Crush>5.0</Crush>
<Hack>4</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Armour>
<Hack>8.0</Hack>
<Pierce>15.0</Pierce>
<Crush>8.0</Crush>
<Hack>4</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Armour>
<Hack>9.0</Hack>
<Pierce>14.0</Pierce>
<Crush>8.0</Crush>
<Hack>4</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Armour>
<Hack>10.0</Hack>
<Pierce>22.0</Pierce>
<Crush>15.0</Crush>
<Hack>8</Hack>
<Pierce>10</Pierce>
<Crush>8</Crush>
</Armour>
<Cost>
<Population>3</Population>
@ -23,7 +23,7 @@
<Max>400</Max>
</Health>
<Identity>
<Classes datatype="tokens">Elephant -Cavalry</Classes>
<Classes datatype="tokens">Elephant</Classes>
<GenericName>War Elephant</GenericName>
<Icon>gaia/fauna_elephant.png</Icon>
<History>War elephants were used by many Eastern and African cultures.</History>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion">
<Armour>
<Hack>9.0</Hack>
<Pierce>6.0</Pierce>
<Crush>8.0</Crush>
</Armour>
<Attack>
<Melee>
<Hack>23.0</Hack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>5.0</Hack>
<Pierce>5.0</Pierce>
<Crush>5.0</Crush>
<Hack>4</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>6.0</Hack>
<Pierce>6.0</Pierce>
<Crush>5.0</Crush>
<Hack>4</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>10.0</Hack>
<Pierce>10.0</Pierce>
<Crush>10.0</Crush>
<Hack>6</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>10.0</Hack>
<Pierce>10.0</Pierce>
<Crush>10.0</Crush>
<Hack>6</Hack>
<Pierce>5</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>9.0</Hack>
<Pierce>8.0</Pierce>
<Crush>9.0</Crush>
<Hack>7</Hack>
<Pierce>4</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit">
<Armour>
<Hack>1.0</Hack>
<Pierce>1.0</Pierce>
<Crush>1.0</Crush>
<Hack>1</Hack>
<Pierce>1</Pierce>
<Crush>1</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry_javelinist">
<Armour>
<Hack>8.0</Hack>
<Pierce>8.0</Pierce>
<Crush>8.0</Crush>
<Hack>5</Hack>
<Pierce>7</Pierce>
<Crush>8</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry_javelinist">
<Armour>
<Hack>8.0</Hack>
<Pierce>8.0</Pierce>
<Crush>7.0</Crush>
<Hack>5</Hack>
<Pierce>7</Pierce>
<Crush>8</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_cavalry">
<Armour>
<Hack>10.0</Hack>
<Pierce>14.0</Pierce>
<Hack>6</Hack>
<Pierce>8</Pierce>
<Crush>8</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_cavalry">
<Armour>
<Hack>5</Hack>
<Pierce>8</Pierce>
<Crush>8</Crush>
</Armour>
<Attack>
<Melee>
<Bonuses>

View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_elephant">
<Armour>
<Hack>10</Hack>
<Pierce>10</Pierce>
<Crush>12</Crush>
</Armour>
<Attack>
<Melee>
<Hack>25.0</Hack>
<Crush>25.0</Crush>
<MaxRange>8.0</MaxRange>
<Bonuses>
<BonusStructures>
<Classes>Structure</Classes>
<Multiplier>1.5</Multiplier>
</BonusStructures>
<BonusCav>
<Classes>Cavalry</Classes>
<Multiplier>1.5</Multiplier>
</BonusCav>
<BonusGates>
<Classes>Gates</Classes>
<Multiplier>1.5</Multiplier>
</BonusGates>
</Bonuses>
</Melee>
<Charge>
<Hack>75.0</Hack>
<Crush>75.0</Crush>
<MaxRange>8.0</MaxRange>
<Bonuses>
<BonusStructures>
<Classes>Structure</Classes>
<Multiplier>1.5</Multiplier>
</BonusStructures>
<BonusCav>
<Classes>Cavalry</Classes>
<Multiplier>1.5</Multiplier>
</BonusCav>
<BonusGates>
<Classes>Gates</Classes>
<Multiplier>1.5</Multiplier>
</BonusGates>
</Bonuses>
</Charge>
</Attack>
<Cost>
<Population>3</Population>
<Resources>
<food>500</food>
<metal>500</metal>
</Resources>
</Cost>
<Footprint>
<Circle radius="4.0"/>
<Height>9.0</Height>
</Footprint>
<Identity>
<Classes datatype="tokens">Hero -Champion</Classes>
<Tooltip>Hero War Elephant.
Good sieging capability. "Stench" Aura vs. Horses. Can run amok. Countered by Swordsmen and Skirmishers.</Tooltip>
</Identity>
</Entity>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry">
<Armour>
<Hack>10.0</Hack>
<Pierce>12.0</Pierce>
<Crush>10.0</Crush>
<Hack>10</Hack>
<Pierce>12</Pierce>
<Crush>10</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry_archer">
<Armour>
<Hack>8.0</Hack>
<Pierce>8.0</Pierce>
<Crush>7.0</Crush>
<Hack>5</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry_javelinist">
<Armour>
<Hack>8.0</Hack>
<Pierce>8.0</Pierce>
<Crush>7.0</Crush>
<Hack>5</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_infantry">
<Armour>
<Hack>12.0</Hack>
<Pierce>11.0</Pierce>
<Crush>11.0</Crush>
<Hack>7</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_infantry">
<Armour>
<Hack>7</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Melee>
<Hack>30.0</Hack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_infantry">
<Armour>
<Hack>10.0</Hack>
<Pierce>12.0</Pierce>
<Crush>10.0</Crush>
<Hack>8</Hack>
<Pierce>5</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_ranged">
<Armour>
<Hack>5.0</Hack>
<Pierce>10.0</Pierce>
<Crush>10.0</Crush>
<Hack>5</Hack>
<Pierce>6</Pierce>
<Crush>7</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit">
<Armour>
<Hack>1.0</Hack>
<Pierce>1.0</Pierce>
<Crush>9.0</Crush>
</Armour>
<Attack>
<Slaughter>
<Hack>1000.0</Hack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_melee">
<Armour>
<Hack>4.0</Hack>
<Pierce>5.0</Pierce>
<Crush>5.0</Crush>
<Hack>3</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_melee">
<Armour>
<Hack>4.0</Hack>
<Pierce>3.0</Pierce>
<Crush>5.0</Crush>
<Hack>4</Hack>
<Pierce>1</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_ranged">
<Armour>
<Hack>3.0</Hack>
<Pierce>2.0</Pierce>
<Crush>3.0</Crush>
<Hack>1</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_ranged">
<Armour>
<Hack>3.0</Hack>
<Pierce>3.0</Pierce>
<Crush>3.0</Crush>
<Hack>1</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_ranged">
<Armour>
<Hack>2.0</Hack>
<Pierce>2.0</Pierce>
<Crush>2.0</Crush>
<Hack>1</Hack>
<Pierce>2</Pierce>
<Crush>3</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical">
<Armour>
<Hack>5</Hack>
<Pierce>10</Pierce>
<Crush>5</Crush>
</Armour>
<Cost>
<Population>1</Population>
<BuildTime>20</BuildTime>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_ship">
<Armour>
<Hack>2.0</Hack>
<Pierce>2.0</Pierce>
<Crush>2.0</Crush>
</Armour>
<Attack>
<Ranged>
<Hack>0.0</Hack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_ship">
<Armour>
<Hack>3.0</Hack>
<Pierce>3.0</Pierce>
<Crush>3.0</Crush>
<Hack>5</Hack>
<Pierce>5</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_ship">
<Armour>
<Hack>4.0</Hack>
<Pierce>4.0</Pierce>
<Crush>4.0</Crush>
<Hack>5</Hack>
<Pierce>5</Pierce>
<Crush>5</Crush>
</Armour>
<Cost>
<Resources>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_ship">
<Armour>
<Hack>5.0</Hack>
<Pierce>5.0</Pierce>
<Crush>5.0</Crush>
</Armour>
<Attack>
<Ranged>
<Hack>0.0</Hack>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_ship">
<Armour>
<Hack>3.0</Hack>
<Pierce>3.0</Pierce>
<Crush>3.0</Crush>
</Armour>
<Attack>
<Ranged>
<Hack>0.0</Hack>

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical">
<Armour>
<Pierce>25.0</Pierce>
<Hack>5</Hack>
<Pierce>5</Pierce>
<Crush>5</Crush>
</Armour>
<Cost>
<Population>3</Population>

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_siege">
<Armour>
<Hack>4.0</Hack>
<Crush>2.0</Crush>
<Hack>2</Hack>
<Pierce>10</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_siege">
<Armour>
<Hack>4.0</Hack>
<Crush>10.0</Crush>
<Hack>2</Hack>
<Pierce>10</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_siege">
<Armour>
<Hack>5.0</Hack>
<Crush>6.0</Crush>
<Hack>5</Hack>
<Pierce>20</Pierce>
<Crush>10</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_mechanical_siege">
<Armour>
<Hack>7.0</Hack>
<Crush>6.0</Crush>
<Hack>5</Hack>
<Pierce>5</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit">
<Armour>
<Hack>1</Hack>
<Pierce>1</Pierce>
<Crush>1</Crush>
</Armour>
<Cost>
<BuildTime>15</BuildTime>
</Cost>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_support">
<Armour>
<Hack>1.0</Hack>
<Pierce>1.0</Pierce>
<Crush>5.0</Crush>
</Armour>
<Attack>
<Melee>
<Hack>6.0</Hack>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_support">
<Armour>
<Hack>2.0</Hack>
<Pierce>2.0</Pierce>
<Crush>2.0</Crush>
</Armour>
<Heal>
<Range>12</Range>
<HP>5</HP>

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_support">
<Armour>
<Hack>2.0</Hack>
<Pierce>2.0</Pierce>
<Crush>2.0</Crush>
</Armour>
<Builder>
<Rate>0.5</Rate>
<Entities datatype="tokens">

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_support">
<Armour>
<Hack>5.0</Hack>
<Pierce>8.0</Pierce>
<Crush>5.0</Crush>
</Armour>
<Cost>
<Resources>
<food>100</food>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_cavalry_javelinist_b">
<Armour>
<Hack>4.0</Hack>
<Pierce>5.0</Pierce>
<Crush>3.0</Crush>
<Hack>2</Hack>
<Pierce>4</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_cavalry_javelinist_a">
<Armour>
<Hack>5.0</Hack>
<Pierce>6.0</Pierce>
<Crush>4.0</Crush>
<Hack>3</Hack>
<Pierce>5</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_cavalry_swordsman_b">
<Armour>
<Hack>6.0</Hack>
<Pierce>12.0</Pierce>
<Crush>6.0</Crush>
<Hack>2</Hack>
<Pierce>4</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_cavalry_swordsman_a">
<Armour>
<Hack>8.0</Hack>
<Pierce>14.0</Pierce>
<Crush>7.0</Crush>
<Hack>3</Hack>
<Pierce>6</Pierce>
<Crush>6</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,13 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry_spearman">
<Armour>
<Hack>9.0</Hack>
<Pierce>9.0</Pierce>
<Crush>9.0</Crush>
</Armour>
<Attack>
<Melee>
<Pierce>16.0</Pierce>
<Hack>16.0</Hack>
<MaxRange>6.0</MaxRange>
</Melee>
</Attack>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_archer_b">
<Armour>
<Hack>3.0</Hack>
<Pierce>1.0</Pierce>
<Crush>3.0</Crush>
<Hack>2</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_archer_a">
<Armour>
<Hack>4.0</Hack>
<Pierce>2.0</Pierce>
<Crush>6.0</Crush>
<Hack>3</Hack>
<Pierce>4</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_javelinist_b">
<Armour>
<Hack>4.0</Hack>
<Pierce>4.0</Pierce>
<Crush>4.0</Crush>
<Hack>2</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_javelinist_a">
<Armour>
<Hack>5.0</Hack>
<Pierce>5.0</Pierce>
<Crush>5.0</Crush>
<Hack>3</Hack>
<Pierce>4</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_slinger_b">
<Armour>
<Hack>3.0</Hack>
<Pierce>3.0</Pierce>
<Crush>3.0</Crush>
<Hack>2</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -11,7 +11,7 @@
<Identity>
<Civ>athen</Civ>
<SelectionGroupName>units/athen_infantry_slinger_b</SelectionGroupName>
<GenericName>Athenian Militia</GenericName>
<GenericName>Athenian Slinger Militia</GenericName>
<SpecificName>Psilós Athēnaïkós</SpecificName>
<History></History>
<Icon>units/hele_infantry_slinger.png</Icon>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_slinger_a">
<Armour>
<Hack>4.0</Hack>
<Pierce>4.0</Pierce>
<Crush>4.0</Crush>
<Hack>3</Hack>
<Pierce>4</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Ranged>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_spearman_b">
<Armour>
<Hack>8.0</Hack>
<Pierce>11.0</Pierce>
<Crush>8.0</Crush>
<Hack>4</Hack>
<Pierce>3</Pierce>
<Crush>4</Crush>
</Armour>
<Attack>
<Melee>

View File

@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_infantry_melee_spearman">
<Armour>
<Pierce>9.0</Pierce>
</Armour>
<Attack>
<Melee>
<MaxRange>6.0</MaxRange>
@ -19,11 +16,6 @@
structures/{civ}_wonder
</Entities>
</Builder>
<Cost>
<Resources>
<wood>60</wood>
</Resources>
</Cost>
<Identity>
<Civ>athen</Civ>
<SelectionGroupName>units/athen_infantry_spearman_b</SelectionGroupName>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="units/athen_infantry_spearman_a">
<Armour>
<Hack>10.0</Hack>
<Pierce>13.0</Pierce>
<Crush>10.0</Crush>
<Hack>5</Hack>
<Pierce>4</Pierce>
<Crush>5</Crush>
</Armour>
<Attack>
<Melee>

Some files were not shown because too many files have changed in this diff Show More