Index: binaries/data/mods/public/globalscripts/Templates.js
===================================================================
--- binaries/data/mods/public/globalscripts/Templates.js
+++ binaries/data/mods/public/globalscripts/Templates.js
@@ -313,6 +313,15 @@
ret.garrisonHolder.capacity = getEntityValue("GarrisonHolder/Max");
}
+ if (template.TerritoryInfluence)
+ {
+ ret.territoryInfluence = {
+ // false if undefined
+ // Should match match logic of CCmpTerritoryInfluence.
+ "root": template.TerritoryInfluence.Root === "true"
+ };
+ }
+
if (template.Heal)
ret.heal = {
"hp": getEntityValue("Heal/HP"),
Index: binaries/data/mods/public/gui/common/tooltips.js
===================================================================
--- binaries/data/mods/public/gui/common/tooltips.js
+++ binaries/data/mods/public/gui/common/tooltips.js
@@ -643,6 +643,21 @@
return popBonus;
}
+/**
+ * Returns the territory influence information to display in the specified entity's construction button tooltip.
+ */
+function getTerritoryInfluenceTooltip(template)
+{
+ let text = "";
+ if (template.territoryInfluence && template.territoryInfluence.root) {
+ text += sprintf(translate("%(label)s %(text)s"), {
+ "label": headerFont(translate("Territory Influence:")),
+ "text": translate("Other buildings in this building's do not decay.")
+ });
+ }
+ return text
+}
+
/**
* Returns a message with the amount of each resource needed to create an entity.
*/
Index: binaries/data/mods/public/gui/reference/common/draw.js
===================================================================
--- binaries/data/mods/public/gui/reference/common/draw.js
+++ binaries/data/mods/public/gui/reference/common/draw.js
@@ -21,6 +21,7 @@
getGatherTooltip,
getResourceSupplyTooltip,
getPopulationBonusTooltip,
+ getTerritoryInfluenceTooltip,
getResourceTrickleTooltip,
getLootTooltip
];
Index: binaries/data/mods/public/simulation/templates/structures/iber_monument.xml
===================================================================
--- binaries/data/mods/public/simulation/templates/structures/iber_monument.xml
+++ binaries/data/mods/public/simulation/templates/structures/iber_monument.xml
@@ -35,7 +35,7 @@
Gur Oroigarri
Monument
structures/iberian_bull.png
- All units within vision of this monument will fight harder. Buildings in the territory of the monument do not decay.
+ All units within vision of this monument will fight harder.
0
Index: binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml
===================================================================
--- binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml
+++ binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml
@@ -35,7 +35,7 @@
Śāsana Stambha Aśokā
Pillar
structures/ashoka_pillar.png
- The famous pillar of Ashoka. Increases the walk speed of traders. Buildings in the territory of the monument do not decay.
+ The famous pillar of Ashoka. Increases the walk speed of traders.
0