//
// EffectGameObject::customSetup from 0x75e97c to 0x75ebf0 (628 bytes)
//
// 39 xrefs:
// > EnterEffectObject::customSetup @ 0x75ec04
// > ShaderGameObject::customSetup @ 0x75ec44
// > ItemTriggerGameObject::customSetup @ 0x75ecc8
// > ??> @ 0xbf148
// > ??> @ 0x1162310
// > ??> @ 0x1163310
// > ??> @ 0x1164310
// > ??> @ 0x1164b10
// > ??> @ 0x1165310
// > ??> @ 0x11672e0
// > ??> @ 0x1167ae0
// > ??> @ 0x1168b20
// > ??> @ 0x1169320
// > ??> @ 0x1169b20
// > ??> @ 0x116a320
// > ??> @ 0x116ab20
// > ??> @ 0x116b330
// > ??> @ 0x116bb30
// > ??> @ 0x116c330
// > ??> @ 0x116cb30
// > ??> @ 0x116d330
// > ??> @ 0x116db30
// > ??> @ 0x116e330
// > ??> @ 0x116eb30
// > ??> @ 0x116f330
// > ??> @ 0x116fb30
// > ??> @ 0x1170330
// > ??> @ 0x1170b30
// > ??> @ 0x1171330
// > ??> @ 0x1171b30
// > ??> @ 0x1172330
// > ??> @ 0x1173330
// > ??> @ 0x1173b30
// > ??> @ 0x1174330
// > ??> @ 0x1174b30
// > ??> @ 0x1175330
// > ??> @ 0x1175b30
// > ??> @ 0x1176330
// > ??> @ 0x1176b30
//
// 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 EffectGameObject::customSetup(EffectGameObject *a1)
{
int m_objectID; // w0
_BOOL4 m_editorEnabled; // w0
GameManager *v4; // x0
EffectGameObject_vtbl *v5; // x1
void (__fastcall *setObjectColor)(GameObject *__hidden, const cocos2d::ccColor3B *); // x2
_BYTE v7[8]; // [xsp+30h] [xbp+30h] BYREF
EnhancedGameObject::customSetup(a1);
m_objectID = a1->m_objectID;
if ( m_objectID == 900 )
{
a1->m_usesBlending = 0;
a1->m_targetColor = 1009;
a1->m_opacity = 1.0;
goto LABEL_11;
}
if ( m_objectID <= 900 )
{
if ( m_objectID == 142 )
{
a1->m_objectType = SecretCoin;
a1->m_defaultZOrder = 9;
GameObject::setDefaultMainColorMode(a1, 0);
a1->m_hasCustomAnimation = 1;
goto LABEL_11;
}
if ( m_objectID > 142 )
{
if ( m_objectID < 200 )
goto LABEL_11;
if ( m_objectID <= 203 )
goto LABEL_10;
if ( m_objectID == 744 )
a1->m_targetColor = 1003;
}
else
{
switch ( m_objectID )
{
case 30:
a1->m_usesBlending = 0;
a1->m_targetColor = 1001;
a1->m_opacity = 1.0;
break;
case 105:
a1->m_usesBlending = 0;
a1->m_targetColor = 1004;
a1->m_opacity = 1.0;
break;
case 29:
a1->m_usesBlending = 0;
a1->m_targetColor = 1000;
a1->m_opacity = 1.0;
break;
}
}
}
else
{
if ( m_objectID == 1912 )
{
a1->m_duration = 50.0;
goto LABEL_11;
}
if ( m_objectID <= 1912 )
{
switch ( m_objectID )
{
case 1329:
m_editorEnabled = a1->m_editorEnabled;
a1->m_objectType = Collectible|0x1;
a1->m_defaultZOrder = 9;
if ( !m_editorEnabled )
{
v4 = GameManager::sharedState();
if ( v4->m_playLayer->m_level->m_coinsVerified.random == v4->m_playLayer->m_level->m_coinsVerified.seed
&& GameManager::sharedState()->m_playLayer->m_level->m_levelType != Editor )
{
v5 = a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7[0] = -1;
v7[1] = -81;
setObjectColor = v5->setObjectColor;
v7[2] = 75;
setObjectColor(a1, (const cocos2d::ccColor3B *)v7);
}
}
a1->m_isObjectBlack = 1;
GameObject::setDefaultMainColorMode(a1, 0);
a1->m_hasCustomAnimation = 1;
break;
case 1334:
goto LABEL_10;
case 915:
a1->m_targetColor = 1002;
a1->m_usesBlending = 1;
break;
}
}
else
{
if ( m_objectID == 3607 )
{
a1->m_isMultiTriggered = 1;
goto LABEL_11;
}
if ( m_objectID <= 3607 )
{
if ( m_objectID == 2066 )
a1->m_gravityValue = 1.0;
}
else
{
if ( m_objectID == 3640 )
{
*(_WORD *)&a1->m_isTouchTriggered = 1;
a1->m_isMultiTriggered = 1;
goto LABEL_11;
}
if ( m_objectID == 3643 )
{
a1->m_isSpawnTriggered = 0;
LABEL_10:
a1->m_isTouchTriggered = 1;
}
}
}
}
LABEL_11:
a1->m_canSpawnTriggers = EffectGameObject::canSpawnTriggers(a1);
}