modify also capture points in the civ specific techs affecting structure health, fixes #3333

This was SVN commit r16852.
This commit is contained in:
mimo
2015-07-13 12:46:26 +00:00
parent c946ebbf7c
commit 74b600d661
5 changed files with 8 additions and 4 deletions
@@ -229,7 +229,7 @@ Capturable.prototype.OnValueModification = function(msg)
return;
var oldMaxCp = this.GetMaxCapturePoints();
this.maxCp = ApplyValueModificationsToEntity("Capturable/CapturePoints", +this.template.CapturePoints, this.entity);
this.maxCp = Math.round(ApplyValueModificationsToEntity("Capturable/CapturePoints", +this.template.CapturePoints, this.entity));
if (oldMaxCp == this.maxCp)
return;
@@ -5,6 +5,7 @@
"requirements": {"any": [{"civ": "brit"},{"civ": "gaul"}]},
"modifications": [
{"value": "Health/Max", "multiply": 0.8},
{"value": "Capturable/CapturePoints", "multiply": 0.8},
{"value": "Cost/BuildTime", "multiply": 0.8}
],
"affects": ["Structure"]
@@ -5,6 +5,7 @@
"requirements": {"any": [{"civ": "athen"},{"civ": "mace"},{"civ": "spart"}]},
"modifications": [
{"value": "Health/Max", "multiply": 1.1},
{"value": "Capturable/CapturePoints", "multiply": 1.1},
{"value": "Cost/BuildTime", "multiply": 1.1}
],
"affects": ["Structure"]
@@ -5,11 +5,12 @@
"requirements": {"all": [{"tech": "phase_village"}, {"civ": "pers"}]},
"icon": "stone_blocks.png",
"researchTime": 60,
"tooltip": "All Persian structures +25% health, but also +20% build time.",
"tooltip": "All Persian structures +25% health and capture points, but also +20% build time.",
"modifications": [
{"value": "Cost/BuildTime", "multiply": 1.20},
{"value": "Capturable/CapturePoints", "multiply": 1.25},
{"value": "Health/Max", "multiply": 1.25}
],
"affects": ["Structure"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"
}
}
@@ -6,9 +6,10 @@
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "statue_face_stone.png",
"researchTime": 60,
"tooltip": "Civic centers +100% health and double default arrows.",
"tooltip": "Civic centers +100% health and capture points and double default arrows.",
"modifications": [
{"value": "BuildingAI/DefaultArrowCount", "multiply": 2.0},
{"value": "Capturable/CapturePoints", "multiply": 2.0},
{"value": "Health/Max", "multiply": 2.0}
],
"affects": ["CivCentre"],