Fix attack/armor techs not applying after 16b452cf91, and fix auras/techs affecting capture rate.

Reported By: Nescio
Patch By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2224
This was SVN commit r22786.
This commit is contained in:
wraitii 2019-08-25 18:03:32 +00:00
parent 719f2d7967
commit 85d01b839c
14 changed files with 16 additions and 16 deletions

View File

@ -53,7 +53,7 @@ Armour.prototype.GetArmourStrengths = function(effectType)
else
strength = +this.template[type];
return ApplyValueModificationsToEntity("Armour/" + effectType + "/" + type, strength, this.entity);
return ApplyValueModificationsToEntity("Armour/" + type, strength, this.entity);
};
let foundation = Engine.QueryInterface(this.entity, IID_Foundation) && this.template.Foundation;

View File

@ -341,10 +341,10 @@ Attack.prototype.GetFullAttackRange = function()
Attack.prototype.GetAttackEffectsData = function(type, splash)
{
let tp = this.template[type];
let template = this.template[type];
if (splash)
tp = tp.Splash;
return Attacking.GetAttackEffectsData("Attack/" + type + splash ? "/Splash" : "", tp, this.entity);
template = template.Splash;
return Attacking.GetAttackEffectsData("Attack/" + type + (splash ? "/Splash" : ""), template, this.entity);
};
/**

View File

@ -2,7 +2,7 @@
"type": "global",
"affects": ["Soldier"],
"modifications": [
{ "value": "Attack/Capture/Value", "multiply": 1.15 }
{ "value": "Attack/Capture/Capture", "multiply": 1.15 }
],
"auraName": "Vamba Moriyar",
"auraDescription": "Bindusara is said to have conquered lands to the south of the empire.\nSoldiers +15% capture attack strength."

View File

@ -10,7 +10,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "add": 2 }
{ "value": "Attack/Capture/Capture", "add": 2 }
],
"auraName": "Champion Army",
"auraDescription": "+20% attack, +2 capture and +10% speed for champion units.",

View File

@ -10,7 +10,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.20 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.20 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.20 },
{ "value": "Attack/Capture/Value", "add": 1 }
{ "value": "Attack/Capture/Capture", "add": 1 }
],
"auraName": "Tactician",
"auraDescription": "+20% attack and +1 capture for nearby allied soldiers and siege engines.",

View File

@ -9,7 +9,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.20 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.20 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.20 },
{ "value": "Attack/Capture/Value", "add": 1 }
{ "value": "Attack/Capture/Capture", "add": 1 }
],
"auraName": "Celtic Warlord",
"auraDescription": "+20% attack and +1 capture for soldiers and siege engines.",

View File

@ -9,7 +9,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "add": 2 }
{ "value": "Attack/Capture/Capture", "add": 2 }
],
"auraName": "Warrior Queen",
"auraDescription": "+20% attack and +2 capture for champion units.",

View File

@ -6,7 +6,7 @@
{ "value": "Attack/Melee/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Melee/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Melee/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "multiply": 1.2 }
{ "value": "Attack/Capture/Capture", "multiply": 1.2 }
],
"auraName": "Taxiarchès",
"auraDescription": "+20% attack and +20% capture for pikemen.",

View File

@ -9,7 +9,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "add": 2 }
{ "value": "Attack/Capture/Capture", "add": 2 }
],
"auraName": "Rise of Macedon",
"auraDescription": "+20% attack and +2 capture for champion units.",

View File

@ -9,7 +9,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "add": 1 }
{ "value": "Attack/Capture/Capture", "add": 1 }
],
"auraName": "Forefront Leader",
"auraDescription": "+20% attack and +1 capture for cavalry.",

View File

@ -9,7 +9,7 @@
{ "value": "Attack/Ranged/Damage/Hack", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Pierce", "multiply": 1.2 },
{ "value": "Attack/Ranged/Damage/Crush", "multiply": 1.2 },
{ "value": "Attack/Capture/Value", "add": 2 }
{ "value": "Attack/Capture/Capture", "add": 2 }
],
"auraName": "Triumph",
"auraDescription": "+20% attack and +2 capture for soldiers and siege engines.",

View File

@ -6,7 +6,7 @@
{ "value": "Attack/Melee/Damage/Hack", "multiply": 1.25 },
{ "value": "Attack/Melee/Damage/Pierce", "multiply": 1.25 },
{ "value": "Attack/Melee/Damage/Crush", "multiply": 1.25 },
{ "value": "Attack/Capture/Value", "add": 1 }
{ "value": "Attack/Capture/Capture", "add": 1 }
],
"auraName": "Last Stand",
"auraDescription": "+25% attack and +1 capture for spear soldiers.",

View File

@ -7,7 +7,7 @@
{ "value": "Armour/Hack", "add": 1 },
{ "value": "Armour/Pierce", "add": 1 },
{ "value": "Armour/Crush", "add": 1 },
{ "value": "Attack/Capture/Value", "add": 0.4 },
{ "value": "Attack/Capture/Capture", "add": 0.4 },
{ "value": "ResourceGatherer/BaseSpeed", "multiply": 0.5 },
{ "value": "UnitMotion/WalkSpeed", "add": 0.5, "affects": "Infantry" },
{ "value": "UnitMotion/WalkSpeed", "add": 1, "affects": "Cavalry" },

View File

@ -7,7 +7,7 @@
{ "value": "Armour/Hack", "add": 1 },
{ "value": "Armour/Pierce", "add": 1 },
{ "value": "Armour/Crush", "add": 1 },
{ "value": "Attack/Capture/Value", "add": 0.4 },
{ "value": "Attack/Capture/Capture", "add": 0.4 },
{ "value": "ResourceGatherer/BaseSpeed", "multiply": 0.5 },
{ "value": "UnitMotion/WalkSpeed", "add": 0.5, "affects": "Infantry" },
{ "value": "UnitMotion/WalkSpeed", "add": 1, "affects": "Cavalry" },