Skip to content

Commit 3165cc4

Browse files
committed
rename tag
1 parent b5aa1eb commit 3165cc4

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

docs/New-or-Enhanced-Logics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Laser trails are very resource intensive! Due to the game not utilizing GPU havi
305305
In `rulesmd.ini`:
306306
```ini
307307
[CombatDamage]
308-
ShieldApplyArmorMultiplier=false ; boolean
308+
ShieldApplyArmorMult=false ; boolean
309309

310310
[AudioVisual]
311311
Shield.ConditionYellow= ; floating point value, percents or absolute
@@ -327,7 +327,7 @@ Armor=none ; ArmorType
327327
InheritArmorFromTechno=false ; boolean
328328
InheritArmor.Allowed= ; List of TechnoTypes
329329
InheritArmor.Disallowed= ; List of TechnoTypes
330-
ApplyArmorMultiplier= ; boolean, default to [CombatDamage] -> ShieldApplyArmorMultiplier
330+
ApplyArmorMult= ; boolean, default to [CombatDamage] -> ShieldApplyArmorMult
331331
Powered=false ; boolean
332332
AbsorbOverDamage=false ; boolean
333333
SelfHealing=0.0 ; floating point value, percents or absolute
@@ -428,7 +428,7 @@ Shield.InheritStateOnReplace=false ; boolean
428428
- `InheritArmorFromTechno` can be set to true to override this so that `[TechnoType] -> Armor` is used even if shield is active and `[ShieldType] -> Armor` is ignored.
429429
- `InheritArmor.Allowed` lists TechnoTypes whose armor can be overridden. If empty, any TechnoType not listed in `InheritArmor.Disallowed` is okay.
430430
- `InheritArmor.Disallowed` lists TechnoTypes whose armor can't be overridden. If empty, any TechnoTypes are okay as long as `InheritArmor.Allowed` is empty or they are listed on it.
431-
- `ApplyArmorMultiplier` can be set to true to allow the shield to benefit from the armor multiplier.
431+
- `ApplyArmorMult` can be set to true to allow the shield to benefit from the armor multiplier.
432432
- `InitialStrength` can be used to set a different initial strength value from maximum.
433433
- `ConditionYellow` and `ConditionRed` can be used to set the thresholds for shield damage states, defaulting to `[AudioVisual] -> Shield.ConditionYellow & Shield.ConditionRed` respectively which in turn default to just `ConditionYellow & ConditionRed`.
434434
- When executing `DeploysInto` or `UndeploysInto`, if both of the TechnoTypes have shields, the transformed unit/building would keep relative shield health (in percents), same as with `Strength`. If one of the TechnoTypes doesn't have shields, it's shield's state on conversion will be preserved until converted back.

src/Ext/Rules/Body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
104104
this->RadSiteWarhead_Detonate_Full.Read(exINI, GameStrings::Radiation, "RadSiteWarhead.Detonate.Full");
105105
this->RadHasOwner.Read(exINI, GameStrings::Radiation, "RadHasOwner");
106106
this->RadHasInvoker.Read(exINI, GameStrings::Radiation, "RadHasInvoker");
107-
this->ShieldApplyArmorMultiplier.Read(exINI, GameStrings::CombatDamage, "ShieldApplyArmorMultiplier");
107+
this->ShieldApplyArmorMult.Read(exINI, GameStrings::CombatDamage, "ShieldApplyArmorMult");
108108
this->VeinholeWarhead.Read<true>(exINI, GameStrings::CombatDamage, "VeinholeWarhead");
109109
this->MissingCameo.Read(pINI, GameStrings::AudioVisual, "MissingCameo");
110110

@@ -469,7 +469,7 @@ void RulesExt::ExtData::Serialize(T& Stm)
469469
.Process(this->RadSiteWarhead_Detonate_Full)
470470
.Process(this->RadHasOwner)
471471
.Process(this->RadHasInvoker)
472-
.Process(this->ShieldApplyArmorMultiplier)
472+
.Process(this->ShieldApplyArmorMult)
473473
.Process(this->JumpjetCrash)
474474
.Process(this->JumpjetNoWobbles)
475475
.Process(this->VeinholeWarhead)

src/Ext/Rules/Body.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RulesExt
5151
Valueable<bool> RadSiteWarhead_Detonate_Full;
5252
Valueable<bool> RadHasOwner;
5353
Valueable<bool> RadHasInvoker;
54-
Valueable<bool> ShieldApplyArmorMultiplier;
54+
Valueable<bool> ShieldApplyArmorMult;
5555
Valueable<double> JumpjetCrash;
5656
Valueable<bool> JumpjetNoWobbles;
5757

@@ -347,7 +347,7 @@ class RulesExt
347347
, RadSiteWarhead_Detonate_Full { true }
348348
, RadHasOwner { false }
349349
, RadHasInvoker { false }
350-
, ShieldApplyArmorMultiplier { false }
350+
, ShieldApplyArmorMult { false }
351351
, JumpjetCrash { 5.0 }
352352
, JumpjetNoWobbles { false }
353353
, VeinholeWarhead {}

src/New/Entity/ShieldClass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int ShieldClass::ReceiveDamage(args_ReceiveDamage* args)
203203
{
204204
nDamage = damage;
205205

206-
if (pType->ApplyArmorMultiplier.Get(RulesExt::Global()->ShieldApplyArmorMultiplier))
206+
if (pType->ApplyArmorMult.Get(RulesExt::Global()->ShieldApplyArmorMult))
207207
{
208208
armorMultiplier = pTechno->Owner->GetArmorMultiplier(pTechnoType) * pTechno->ArmorMultiplier;
209209

src/New/Type/ShieldTypeClass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void ShieldTypeClass::LoadFromINI(CCINIClass* pINI)
2323
this->InheritArmorFromTechno.Read(exINI, pSection, "InheritArmorFromTechno");
2424
this->InheritArmor_Allowed.Read(exINI, pSection, "InheritArmor.Allowed");
2525
this->InheritArmor_Disallowed.Read(exINI, pSection, "InheritArmor.Disallowed");
26-
this->ApplyArmorMultiplier.Read(exINI, pSection, "ApplyArmorMultiplier");
26+
this->ApplyArmorMult.Read(exINI, pSection, "ApplyArmorMult");
2727
this->Powered.Read(exINI, pSection, "Powered");
2828

2929
this->Respawn.Read(exINI, pSection, "Respawn");
@@ -100,7 +100,7 @@ void ShieldTypeClass::Serialize(T& Stm)
100100
.Process(this->InheritArmorFromTechno)
101101
.Process(this->InheritArmor_Allowed)
102102
.Process(this->InheritArmor_Disallowed)
103-
.Process(this->ApplyArmorMultiplier)
103+
.Process(this->ApplyArmorMult)
104104
.Process(this->Powered)
105105
.Process(this->Respawn)
106106
.Process(this->Respawn_Rate)

src/New/Type/ShieldTypeClass.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ShieldTypeClass final : public Enumerable<ShieldTypeClass>
1515
Valueable<bool> InheritArmorFromTechno;
1616
ValueableVector<TechnoTypeClass*> InheritArmor_Allowed;
1717
ValueableVector<TechnoTypeClass*> InheritArmor_Disallowed;
18-
Nullable<bool> ApplyArmorMultiplier;
18+
Nullable<bool> ApplyArmorMult;
1919
Valueable<bool> Powered;
2020
Valueable<double> Respawn;
2121
Valueable<int> Respawn_Rate;
@@ -73,7 +73,7 @@ class ShieldTypeClass final : public Enumerable<ShieldTypeClass>
7373
, InheritArmorFromTechno { false }
7474
, InheritArmor_Allowed { }
7575
, InheritArmor_Disallowed { }
76-
, ApplyArmorMultiplier {}
76+
, ApplyArmorMult {}
7777
, Powered { false }
7878
, Respawn { 0.0 }
7979
, Respawn_Rate { 0 }

0 commit comments

Comments
 (0)