Skip to content

Commit 520ae8b

Browse files
committed
fix typo
1 parent a7ba7b4 commit 520ae8b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

docs/Fixed-or-Improved-Logics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,16 +2027,16 @@ DecloakDamagedTargets=true ; boolean
20272027
### Customizing parasite
20282028

20292029
- Now you can specify which targets the parasite will culling them.
2030-
- Squid gripple anim is hardcoded to use `SQDG` in vanilla, Now you can choose it.
2030+
- Squid grapple anim is hardcoded to use `SQDG` in vanilla, Now you can choose it.
20312031

20322032
In `rulesmd.ini`:
20332033
```ini
20342034
[SOMEWARHEAD] ; WarheadType
20352035
Parasite.CullingTarget=infantry ; List of Affected Target Enumeration (none|aircraft|infantry|units|all)
2036-
Parasite.GrippleAnim= ; animation
2036+
Parasite.GrappleAnim= ; animation
20372037

20382038
[AudioVisual]
2039-
Parasite.GrippleAnim= ; animation
2039+
Parasite.GrappleAnim= ; animation
20402040
```
20412041

20422042
### Delay automatic attack on the controlled unit

src/Ext/Rules/Body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
288288
this->AttackMove_IgnoreWeaponCheck.Read(exINI, GameStrings::General, "AttackMove.IgnoreWeaponCheck");
289289
this->AttackMove_StopWhenTargetAcquired.Read(exINI, GameStrings::General, "AttackMove.StopWhenTargetAcquired");
290290

291-
this->Parasite_GrippleAnim.Read(exINI, GameStrings::AudioVisual, "Parasite.GrippleAnim");
291+
this->Parasite_GrappleAnim.Read(exINI, GameStrings::AudioVisual, "Parasite.GrappleAnim");
292292

293293
this->AINormalTargetingDelay.Read(exINI, GameStrings::General, "AINormalTargetingDelay");
294294
this->PlayerNormalTargetingDelay.Read(exINI, GameStrings::General, "PlayerNormalTargetingDelay");
@@ -550,7 +550,7 @@ void RulesExt::ExtData::Serialize(T& Stm)
550550
.Process(this->TintColorBerserk)
551551
.Process(this->AttackMove_IgnoreWeaponCheck)
552552
.Process(this->AttackMove_StopWhenTargetAcquired)
553-
.Process(this->Parasite_GrippleAnim)
553+
.Process(this->Parasite_GrappleAnim)
554554
;
555555
}
556556

src/Ext/Rules/Body.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class RulesExt
245245
Valueable<bool> AttackMove_IgnoreWeaponCheck;
246246
Nullable<bool> AttackMove_StopWhenTargetAcquired;
247247

248-
NullableIdx<AnimTypeClass> Parasite_GrippleAnim;
248+
NullableIdx<AnimTypeClass> Parasite_GrappleAnim;
249249

250250
// cache tint color
251251
int TintColorIronCurtain;
@@ -446,7 +446,7 @@ class RulesExt
446446
, AttackMove_IgnoreWeaponCheck { false }
447447
, AttackMove_StopWhenTargetAcquired { }
448448

449-
, Parasite_GrippleAnim {}
449+
, Parasite_GrappleAnim {}
450450
{ }
451451

452452
virtual ~ExtData() = default;

src/Ext/Techno/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ DEFINE_HOOK(0x6298CC, ParasiteClass_AI_GrippleAnim, 0x5)
828828
GET_STACK(WarheadTypeClass*, pWarhead, STACK_OFFSET(0x68, -0x4C));
829829
const auto pWHExt = WarheadTypeExt::ExtMap.Find(pWarhead);
830830

831-
R->EAX(pWHExt->Parasite_GrippleAnim.Get(RulesExt::Global()->Parasite_GrippleAnim.Get(AnimTypeClass::FindIndex("SQDG"))));
831+
R->EAX(pWHExt->Parasite_GrappleAnim.Get(RulesExt::Global()->Parasite_GrappleAnim.Get(AnimTypeClass::FindIndex("SQDG"))));
832832
return SkipGameCode;
833833
}
834834

src/Ext/WarheadType/Body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void WarheadTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI)
251251
this->DetonateOnAllMapObjects_IgnoreTypes.Read(exINI, pSection, "DetonateOnAllMapObjects.IgnoreTypes");
252252

253253
this->Parasite_CullingTarget.Read(exINI, pSection, "Parasite.CullingTarget");
254-
this->Parasite_GrippleAnim.Read(exINI, pSection, "Parasite.GrippleAnim");
254+
this->Parasite_GrappleAnim.Read(exINI, pSection, "Parasite.GrappleAnim");
255255

256256
this->Nonprovocative.Read(exINI, pSection, "Nonprovocative");
257257

@@ -537,7 +537,7 @@ void WarheadTypeExt::ExtData::Serialize(T& Stm)
537537
.Process(this->DamageTargetHealthMultiplier)
538538

539539
.Process(this->Parasite_CullingTarget)
540-
.Process(this->Parasite_GrippleAnim)
540+
.Process(this->Parasite_GrappleAnim)
541541

542542
.Process(this->Nonprovocative)
543543

src/Ext/WarheadType/Body.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class WarheadTypeExt
144144
Valueable<bool> RemoveInflictedLocomotor;
145145

146146
Valueable<AffectedTarget> Parasite_CullingTarget;
147-
NullableIdx<AnimTypeClass> Parasite_GrippleAnim;
147+
NullableIdx<AnimTypeClass> Parasite_GrappleAnim;
148148

149149
Valueable<bool> Nonprovocative;
150150

@@ -337,7 +337,7 @@ class WarheadTypeExt
337337
, RemoveInflictedLocomotor { false }
338338

339339
, Parasite_CullingTarget { AffectedTarget::Infantry }
340-
, Parasite_GrippleAnim {}
340+
, Parasite_GrappleAnim {}
341341

342342
, Nonprovocative { false }
343343

0 commit comments

Comments
 (0)