1
1
forked from 0ad/0ad

Catafalque templates and auras for each civilization.

Patch By: Hanibal Barca aka Hannibal_Baraq
Differential Revision: https://code.wildfiregames.com/D269
Strings Reviewed By: Gallaecio
Balancing Reviewed By: borg-, Grugnas
Addresses few issues found by fatherbushido

This was SVN commit r19370.
This commit is contained in:
elexis 2017-04-02 20:50:30 +00:00
parent 369943426f
commit 7f8d57a1f0
35 changed files with 364 additions and 4 deletions

View File

@ -1,13 +1,14 @@
let g_CatafalqueTemplate = "other/special_catafalque";
Trigger.prototype.InitCaptureTheRelic = function()
{
let cmpTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager);
let catafalqueTemplates = shuffleArray(cmpTemplateManager.FindAllTemplates(false).filter(
name => name.startsWith("other/catafalque/")));
// Attempt to spawn relics using gaia entities in neutral territory
// If there are none, try to spawn using gaia entities in non-neutral territory
let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager);
let cmpWaterManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_WaterManager);
let cmpTerritoryManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager);
let cmpTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager);
let potentialGaiaSpawnPoints = [];
@ -47,7 +48,7 @@ Trigger.prototype.InitCaptureTheRelic = function()
for (let i = 0; i < numSpawnedRelics; ++i)
{
this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), g_CatafalqueTemplate, 1, 0)[0];
this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), catafalqueTemplates[i], 1, 0)[0];
let cmpDamageReceiver = Engine.QueryInterface(this.relics[i], IID_DamageReceiver);
cmpDamageReceiver.SetInvulnerability(true);

View File

@ -0,0 +1,11 @@
{
"type": "range",
"radius": 80,
"affects": ["Worker"],
"modifications": [
{ "value": "ResourceGatherer/BaseSpeed", "multiply": 1.1 }
],
"auraName": "Economic Reforms",
"auraDescription": "Solon instituted several economic reforms encouraging commerce and agriculture.\n+10% gather rate of workers within an 80 meter range.",
"overlayIcon": "art/textures/ui/session/auras/buildgather_bonus.png"
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Economic"],
"modifications": [
{ "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 }
],
"auraName": "Economic Fortune",
"auraDescription": "Solon brought in a new system of weights and measures, fathers were encouraged to find trades for their sons.\n-10% cost for economic technologies."
}

View File

@ -0,0 +1,11 @@
{
"type": "global",
"affects": ["Soldier"],
"modifications": [
{ "value": "Vision/Range", "multiply": 1.15 },
{ "value": "UnitMotion/WalkSpeed", "multiply": 1.15 },
{ "value": "UnitMotion/Run/Speed", "multiply": 1.15 }
],
"auraName": "Guerilla Tactics",
"auraDescription": "Seeing entrenched defense to be useless against the Roman army, Cassivellanus resorted to gurerilla tactics. This was later employed by other cheiftains too.\n+15% speed and vision range for soldiers."
}

View File

@ -0,0 +1,9 @@
{
"type": "global",
"affects": ["Javelin"],
"modifications": [
{ "value": "Attack/Ranged/MaxRange", "multiply": 1.2 }
],
"auraName": "Skirmisher Harassment",
"auraDescription": "Cassivellanus deployed fast-moving skirmishers to harass Roman troops and foragers.\n+20% attack range for skirmisher javelins."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Melee Cavalry"],
"modifications": [
{ "value": "Armour/Pierce", "add": 1 },
{ "value": "Armour/Hack", "add": 1 },
{ "value": "Armour/Crush", "add": 1 },
{ "value": "Health/Max", "multiply": 1.1 }
],
"auraName": "Commander of Heavy Cavalry",
"auraDescription": "Leader of the Carthaginian heavy cavalry at Trebia and Cannae, where his triple charge had devastating effects on the enemy.\n+1 armor, +10% health for melee cavalry."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Soldier", "Mechanical"],
"modifications": [
{ "value": "Promotion/RequiredXp", "multiply": 0.75 },
{ "value": "Attack/Melee/Hack", "multiply": 1.05 },
{ "value": "Attack/Melee/Pierce", "multiply": 1.05 },
{ "value": "Attack/Melee/Crush", "multiply": 1.05 }
],
"auraName": "Ambush Slaughter",
"auraDescription": "Warring with the Romans, Ambiorix realized the futility of open warfare and instead resorted to ambush tactics. The Gauls quickly learned where and when to execute surprise attacks.\nUnits promote 25% faster and gain a 5% attack bonus."
}

View File

@ -0,0 +1,9 @@
{
"type": "global",
"affects": ["Worker"],
"modifications": [
{ "value": "ResourceGatherer/Rates/food.grain", "multiply": 0.9 }
],
"auraName": "Tribute to Rome",
"auraDescription": "When the Roman Army fell short of food supplies, the Gallic tribes were ordered to give up a part of their already meagre harvest. The Eburones under Ambiorix were reluctant to do so, therefore Caesar sent troops to take them by foce.\n-10% farming rate."
}

View File

@ -0,0 +1,10 @@
{
"type": "global",
"affects": ["Mercenary CitizenSoldier"],
"affectedPlayers": ["Ally"],
"modifications": [
{ "value": "Cost/Resources/metal", "multiply": 0.75 }
],
"auraName": "Mercenary Commander",
"auraDescription": "Along with his brother Indibil, Mandonius commanded the Iberian recruits and mercenaries that took part in the Punic Wars.\n-25% metal cost for all allied citizen-soldier mercenaries."
}

View File

@ -0,0 +1,11 @@
{
"type": "global",
"affects": ["Soldier"],
"modifications": [
{ "value": "Health/Max", "multiply": 1.1 },
{ "value": "UnitMotion/WalkSpeed", "multiply": 1.15 },
{ "value": "UnitMotion/Run/Speed", "multiply": 1.15 }
],
"auraName": "Saver of Lives",
"auraDescription": "Following the fall of Indibil in battle, Mandonius led the survivors to safety.\n+15% movement speed and +10% health for all soldiers."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Human", "Mechanical", "Structure"],
"modifications": [
{ "value": "Looter/Resource/metal", "mutiply": 1.25 },
{ "value": "Looter/Resource/wood", "mutiply": 1.25 },
{ "value": "Looter/Resource/stone", "mutiply": 1.25 },
{ "value": "Looter/Resource/metal", "multiply": 1.25 }
],
"auraName": "Sacker of Cities",
"auraDescription": "During the First Macedonian War, Philip and his troops sacked Thermum, the religious and political centre of Aetolia.\n+25% loot for every enemy unit killed or structure destroyed."
}

View File

@ -0,0 +1,9 @@
{
"type": "global",
"affects": ["Structure"],
"modifications": [
{ "value": "TerritoryInfluence/Radius", "multiply": 1.2 }
],
"auraName": "Consolidator of the Empire",
"auraDescription": "Son of Chandragupta Maurya, Bindusara consolidated the empire, creating a stable state for his son Ashoka to inherit.\n+20% territory influence."
}

View File

@ -0,0 +1,9 @@
{
"type": "global",
"affects": ["Soldier"],
"modifications": [
{ "value": "Attack/Capture/Value", "multiply": 1.15 }
],
"auraName": "Vamba Moriyar",
"auraDescription": "Bindusara is said to have conquered lands to the south of the empire.\n+15% unit capture rate."
}

View File

@ -0,0 +1,13 @@
{
"type": "global",
"affects": ["Structure"],
"modifications": [
{ "value": "Cost/Resources/food", "multiply": 0.95 },
{ "value": "Cost/Resources/wood", "multiply": 0.95 },
{ "value": "Cost/Resources/stone", "multiply": 0.95 },
{ "value": "Cost/Resources/metal", "multiply": 0.95 },
{ "value": "Health/Max", "multiply": 1.05 }
],
"auraName": "Great Builder",
"auraDescription": "Throughout his reign, much of Artaxerxes' wealth was spent on building projects. He restored the Palace of Darius I at Susa, and restored the ancient city of Ecbatana.\n+5% health and -5% resource cost for all buildings."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Structure"],
"modifications": [
{ "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 }
],
"auraName": "Great Librarian",
"auraDescription": "Continuing his predecessors' work on the Great Library at Alexandria, he seized every book brought to Alexandria, thus leaving to his people a vast amount of hoarded wisdom.\n-10% resource cost for all technologies."
}

View File

@ -0,0 +1,10 @@
{
"type": "global",
"affects": ["FemaleCitizen"],
"modifications": [
{ "value": "Cost/Resources/food", "multiply": 0.8 },
{ "value": "ResourceGatherer/BaseSpeed", "multiply": 1.1 }
],
"auraName": "Avenger of Lucretia",
"auraDescription": "After the rape of Lucretia by the son of King Tarquinius Superbus and her subsequent suicide, Brutus vowed to avenge her and overthrow the monarchy.\nFemale citizens cost 20% less and work 10% faster."
}

View File

@ -0,0 +1,11 @@
{
"type": "global",
"affects": ["Human", "Mechanical"],
"modifications": [
{ "value": "Armour/Pierce", "multiply": 1.1 },
{ "value": "Armour/Hack", "multiply": 1.1 },
{ "value": "Armour/Crush", "multiply": 1.1 }
],
"auraName": "Founder and Defender of the Republic Aura",
"auraDescription": "Brutus was one of the key figures in the overthrow of the monarchy and the founding of the Roman Republic. Later, as consul he led a Roman army to victory against the Etruscan King Tarquinius who sought to retake the throne.\n+10% armor for all units and siege engines."
}

View File

@ -0,0 +1,16 @@
{
"type": "global",
"affects": ["Temple"],
"modifications": [
{ "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 },
{ "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 },
{ "value": "Cost/Resources/food", "multiply": 0.9 },
{ "value": "Cost/Resources/wood", "multiply": 0.9 },
{ "value": "Cost/Resources/metal", "multiply": 0.9 },
{ "value": "Cost/Resources/stone", "multiply": 0.9 }
],
"auraName": "Founder of the Ezida Temple",
"auraDescription": "Antiochus I laid the foundation for the Ezida Temple in Borsippa.\n-10% resource cost for temples and temple technologies."
}

View File

@ -0,0 +1,9 @@
{
"type": "global",
"affects": ["Player"],
"modifications": [
{ "value": "Player/MaxPopulation", "multiply": 1.05 }
],
"auraName": "Immigration",
"auraDescription": "Antiochus encouraged Greek immigration to his realm and established many new cities in Asia Minor to serve as counterweights to the Gauls.\n+5% maximum population."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Elephant Champion"],
"modifications": [
{ "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 }
],
"auraName": "Basileus Megas (Great King)",
"auraDescription": "Son of Selecus Nicator, Antiochus succeeded in the formidable task of keeping the empire together, meanwhile founding temples and defeating the invading Gauls with war elephants.\n-10% cost for War Elephants."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["CitizenSoldier Spear"],
"modifications": [
{ "value": "Cost/Resources/food", "multiply": 0.9 },
{ "value": "Cost/Resources/wood", "multiply": 0.9 },
{ "value": "Cost/Resources/metal", "multiply": 0.9 },
{ "value": "Cost/Resources/stone", "multiply": 0.9 }
],
"auraName": "Lycurgan Military Reforms",
"auraDescription": "Lycurgus instituted several military reforms, thus the complete and undivided allegiance to Sparta from its citizens was implemented under his form of government.\n-10% resource cost for spear citizen units."
}

View File

@ -0,0 +1,12 @@
{
"type": "global",
"affects": ["Champion Spear"],
"modifications": [
{ "value": "Cost/Resources/food", "multiply": 0.95 },
{ "value": "Cost/Resources/wood", "multiply": 0.95 },
{ "value": "Cost/Resources/metal", "multiply": 0.95 },
{ "value": "Cost/Resources/stone", "multiply": 0.95 }
],
"auraName": "Lycurgan Military Reforms",
"auraDescription": "-5% resource cost for spear champions."
}

View File

@ -0,0 +1,11 @@
{
"type": "range",
"radius": 80,
"affects": ["Worker"],
"modifications": [
{ "value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.15 }
],
"auraName": "Iron Pelanors",
"auraDescription": "To further support equality, Lycurgus forbade the use of gold and silver, instead introducing new iron money called pellanors.\n+15% metal mining rate for workers within an 80 meter range.",
"overlayIcon": "art/textures/ui/session/auras/buildgather_bonus.png"
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/athen_catafalque_1 catafalques/athen_catafalque_2</Auras>
<Identity>
<Civ>athen</Civ>
<SpecificName>Solon</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/brit_catafalque_1 catafalques/brit_catafalque_2</Auras>
<Identity>
<Civ>brit</Civ>
<SpecificName>Cassivellaunus</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/cart_catafalque</Auras>
<Identity>
<Civ>cart</Civ>
<SpecificName>Hasdrubal (Quartermaster)</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/gaul_catafalque_1 catafalques/gaul_catafalque_2</Auras>
<Identity>
<Civ>gaul</Civ>
<SpecificName>Ambiorix</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/iber_catafalque_1 catafalques/iber_catafalque_2</Auras>
<Identity>
<Civ>iber</Civ>
<SpecificName>Mandonius</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/mace_catafalque</Auras>
<Identity>
<Civ>mace</Civ>
<SpecificName>Philip V</SpecificName>
<Tooltip>Financial Reorganization: Allied with Rome, Philip reorganized the country's internal affairs and finances, leaving as a legacy reopened mines and a new currency. Gain a slow trickle of metal.</Tooltip>
</Identity>
<ResourceTrickle>
<Rates>
<metal>1.0</metal>
</Rates>
<Interval>1250</Interval>
</ResourceTrickle>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/maur_catafalque_1 catafalques/maur_catafalque_2</Auras>
<Identity>
<Civ>maur</Civ>
<SpecificName>Bindusara</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/pers_catafalque</Auras>
<Identity>
<Civ>pers</Civ>
<SpecificName>Artaxerxes II</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/ptol_catafalque</Auras>
<Identity>
<Civ>ptol</Civ>
<SpecificName>Ptolemy III Euergetes (Benefactor)</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/rome_catafalque_1 catafalques/rome_catafalque_2</Auras>
<Identity>
<Civ>rome</Civ>
<SpecificName>Lucius Junius Brutus</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/sele_catafalque_1 catafalques/sele_catafalque_2 catafalques/sele_catafalque_3</Auras>
<Identity>
<Civ>sele</Civ>
<SpecificName>Antiochus I Soter (Savior)</SpecificName>
</Identity>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="other/special_catafalque">
<Auras datatype="tokens">catafalques/spart_catafalque_1 catafalques/spart_catafalque_2 catafalques/spart_catafalque_3</Auras>
<Identity>
<Civ>spart</Civ>
<SpecificName>Lycurgus</SpecificName>
</Identity>
</Entity>