//
// GJFollowCommandLayer::updateTargetGroupID2 from 0x1002d7300 to 0x1002d7396 (150 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJFollowCommandLayer::updateTargetGroupID2(GJFollowCommandLayer *a1)
{
int m_followGroupID; // ecx
int v3; // esi
EffectGameObject *m_gameObject; // rdi
unsigned int v5; // r14d
EffectGameObject *v6; // rax
m_followGroupID = 0;
if ( a1->m_followGroupID > 0 )
m_followGroupID = a1->m_followGroupID;
v3 = 9999;
if ( m_followGroupID < 9999 )
v3 = m_followGroupID;
a1->m_followGroupID = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID2(m_gameObject, v3);
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v5 = 0;
do
{
v6 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v5);
EffectGameObject::setTargetID2(v6, a1->m_followGroupID);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}