//
// GJBaseGameLayer::updateActiveEnterEffect from 0x1001e24d0 to 0x1001e26ac (476 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x100385700
//
// 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 GJBaseGameLayer::updateActiveEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2)
{
int m_objectID; // w8
unsigned int m_enterType; // w8
int v6; // w21
int *p_m_enterType; // x22
int v8; // w23
int v9; // w11
int v10; // w10
int v11; // w12
int v12; // w11
int v13; // w12
int v14; // w11
int v15; // w9
int v16; // w9
unsigned int m_enterChannel; // [xsp+8h] [xbp-38h] BYREF
unsigned int v18; // [xsp+Ch] [xbp-34h] BYREF
m_objectID = a2->m_objectID;
if ( m_objectID <= 56 )
{
if ( m_objectID == 56 )
v9 = -10;
else
v9 = -2;
if ( m_objectID == 55 )
v10 = -11;
else
v10 = v9;
if ( m_objectID == 28 )
v11 = -4;
else
v11 = -2;
if ( m_objectID == 27 )
v12 = -3;
else
v12 = v11;
if ( m_objectID <= 54 )
v10 = v12;
if ( m_objectID == 26 )
v13 = -8;
else
v13 = -2;
if ( m_objectID == 25 )
v14 = -7;
else
v14 = v13;
if ( m_objectID == 24 )
v15 = -5;
else
v15 = -2;
if ( m_objectID == 23 )
v15 = -6;
if ( m_objectID > 24 )
v15 = v14;
if ( m_objectID <= 26 )
v6 = v15;
else
v6 = v10;
}
else if ( m_objectID <= 1914 )
{
if ( m_objectID == 59 )
v16 = -13;
else
v16 = -2;
if ( m_objectID == 58 )
v16 = -12;
if ( m_objectID == 57 )
v6 = -9;
else
v6 = v16;
}
else
{
if ( (unsigned int)(m_objectID - 3017) < 5 )
{
m_enterType = a2->m_enterType;
v6 = -15;
if ( m_enterType <= 1 )
{
p_m_enterType = &a2->m_enterType;
a1->m_gameState.m_enterChannelMap.__begin_[a2->m_enterChannel] = -15;
v8 = 1;
GJBaseGameLayer::addCustomEnterEffect(a1, a2, 1);
LABEL_48:
m_enterType = *p_m_enterType;
goto LABEL_51;
}
v8 = 1;
goto LABEL_51;
}
if ( m_objectID == 1915 )
v6 = -14;
else
v6 = -2;
}
m_enterType = a2->m_enterType;
if ( m_enterType < 2 )
{
p_m_enterType = &a2->m_enterType;
a1->m_gameState.m_enterChannelMap.__begin_[a2->m_enterChannel] = v6;
m_enterChannel = a2->m_enterChannel;
if ( m_enterChannel <= 0x64 )
sub_10020A990(&a1->m_gameState.m_enterEffectInstanceVectors, &m_enterChannel);
v8 = 0;
goto LABEL_48;
}
v8 = 0;
LABEL_51:
if ( (m_enterType | 2) == 2 )
{
a1->m_gameState.m_exitChannelMap.__begin_[a2->m_enterChannel] = v6;
if ( v8 )
{
GJBaseGameLayer::addCustomEnterEffect(a1, a2, 0);
}
else
{
v18 = a2->m_enterChannel;
if ( v18 <= 0x64 )
sub_10020A990(&a1->m_gameState.m_exitEffectInstanceVectors, &v18);
}
}
}