1
0
forked from mirrors/0ad

[Gameplay A24] - Unify garrison heal rates.

Makes all (standard) structures don't heal at first, execept for the
wonder (heal rate of `5`) and temple (`3`).
Replaces the barracks healing technology by one that allows healing in
all structures (`+1`).

Summarising:
This patch makes the 0 rate the default and merges the technologies to a
single one, researchable at the temple, but affecting garrisoned units
in all structures, except for outposts and walls (i.e. those with
visible turret points). The new situation is:
```
0: structures by default
1: structures with technology
3: temple by default
4: temple with technology
5: wonder by default
6: wonder with technology
```

Patch by: @Nescio
Differential revision: D3264
Reviewed by: @borg-
This was SVN commit r24523.
This commit is contained in:
Freagarach
2021-01-09 06:50:15 +00:00
parent ebcf9b9ff5
commit eb1163b872
11 changed files with 8 additions and 36 deletions
@@ -1,15 +1,15 @@
{
"genericName": "Living Conditions",
"description": "Units garrisoned in Barracks heal over time.",
"description": "Units regain health over time while garrisoned.",
"cost": { "food": 500, "wood": 0, "stone": 0, "metal": 250 },
"requirements": { "tech": "phase_town" },
"requirementsTooltip": "Unlocked in Town Phase.",
"icon": "bandage.png",
"researchTime": 40,
"tooltip": "Units gain health over time while garrisoned in Barracks.",
"tooltip": "Structures +1 garrison heal rate.",
"modifications": [
{ "value": "GarrisonHolder/BuffHeal", "add": 1 }
],
"affects": ["Barracks"],
"affects": ["Structure !Outpost !Wall"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"
}
@@ -1,20 +0,0 @@
{
"genericName": "Divine Offerings",
"specificName": {
"athen": "Eleusian Mysteries",
"mace": "Olympic Games",
"spart": "Olympic Games"
},
"description": "Units garrisoned in a temple are healed faster.",
"cost": { "food": 500, "wood": 0, "stone": 0, "metal": 250 },
"requirements": { "tech": "phase_city" },
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "cauldron.png",
"researchTime": 40,
"tooltip": "Temples +50% garrisoned healing rate.",
"modifications": [
{ "value": "GarrisonHolder/BuffHeal", "multiply": 1.5 }
],
"affects": ["Temple"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"
}
@@ -61,7 +61,7 @@
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Support Infantry Cavalry Siege</List>
<BuffHeal>1</BuffHeal>
<BuffHeal>0</BuffHeal>
<LoadingRange>6</LoadingRange>
</GarrisonHolder>
<Health>
@@ -15,11 +15,6 @@
</Footprint>
<GarrisonHolder>
<Max>5</Max>
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Support Infantry</List>
<BuffHeal>0</BuffHeal>
<LoadingRange>2</LoadingRange>
</GarrisonHolder>
<Health>
<Max>200</Max>
@@ -68,7 +68,7 @@
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Support Infantry Cavalry</List>
<BuffHeal>1</BuffHeal>
<BuffHeal>0</BuffHeal>
<LoadingRange>1</LoadingRange>
</GarrisonHolder>
<Health>
@@ -16,7 +16,7 @@
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Support Infantry Cavalry</List>
<BuffHeal>1</BuffHeal>
<BuffHeal>0</BuffHeal>
<LoadingRange>2</LoadingRange>
</GarrisonHolder>
<Health>
@@ -52,7 +52,7 @@
heal_range_2
heal_rate
heal_rate_2
heal_temple
garrison heal
health_regen_units
</Technologies>
</ProductionQueue>
@@ -52,7 +52,6 @@
units/{civ}/champion_maiden_barracks
</Entities>
<Technologies datatype="tokens">
heal_barracks
persians/training_levy_infantry
persians/training_conscription_infantry
training_conscription
@@ -14,7 +14,6 @@
<GarrisonHolder>
<Max>5</Max>
<List datatype="tokens">Elephant</List>
<BuffHeal>1</BuffHeal>
</GarrisonHolder>
<Health>
<Max>3000</Max>
@@ -13,7 +13,6 @@
<GarrisonHolder>
<Max>6</Max>
<List datatype="tokens">Support Infantry Cavalry</List>
<BuffHeal>1</BuffHeal>
</GarrisonHolder>
<Health>
<Max>2000</Max>
@@ -9,7 +9,7 @@
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Support Infantry Cavalry</List>
<BuffHeal>1</BuffHeal>
<BuffHeal>0</BuffHeal>
<LoadingRange>2</LoadingRange>
</GarrisonHolder>
<Health>