mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 13:32:05 +00:00
modify also capture points in the civ specific techs affecting structure health, fixes #3333
This was SVN commit r16852.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
+1
@@ -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"]
|
||||
|
||||
+1
@@ -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"]
|
||||
|
||||
+3
-2
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user