// // EffectGameObject::customSetup from 0x10037723c to 0x100377460 (548 bytes) // // 38 xrefs: // > EnterEffectObject::customSetup @ 0x10037720c // > ShaderGameObject::customSetup @ 0x10037b150 // > ItemTriggerGameObject::customSetup @ 0x100394c54 // > @ 0x1007f5e08 // > @ 0x1007f6600 // > @ 0x1007f6df8 // > @ 0x1007f75f0 // > @ 0x1007f7de8 // > @ 0x1007f85e0 // > @ 0x1007fa638 // > @ 0x1007fae48 // > @ 0x1007fb658 // > @ 0x1007fc678 // > @ 0x1007fd698 // > @ 0x1007fdea8 // > @ 0x1007fe6b8 // > @ 0x1007feec8 // > @ 0x1007ff6f0 // > @ 0x1007fff48 // > @ 0x100800770 // > @ 0x100800f98 // > @ 0x1008017c0 // > @ 0x100801fe8 // > @ 0x1008027f8 // > @ 0x100803008 // > @ 0x100803818 // > @ 0x100804028 // > @ 0x100804838 // > @ 0x100805048 // > @ 0x100806068 // > @ 0x100806878 // > @ 0x100807088 // > @ 0x100807898 // > @ 0x1008080a8 // > @ 0x1008088b8 // > @ 0x1008090c8 // > @ 0x1008098d8 // > @ 0x10080a0e8 // // 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 EffectGameObject::customSetup(EffectGameObject *a1) { int m_objectID; // w8 int v3; // w8 GameManager *v4; // x0 __int16 v5; // [xsp+Ch] [xbp-14h] BYREF char v6; // [xsp+Eh] [xbp-12h] EnhancedGameObject::customSetup(a1); m_objectID = a1->m_objectID; if ( m_objectID <= 899 ) { if ( m_objectID > 141 ) { if ( (unsigned int)(m_objectID - 200) >= 4 ) { if ( m_objectID == 142 ) { a1->m_objectType = SecretCoin; a1->m_defaultZOrder = 9; GameObject::setDefaultMainColorMode(a1, 0); a1->m_hasCustomAnimation = 1; } else if ( m_objectID == 744 ) { a1->m_targetColor = 1003; } goto LABEL_40; } LABEL_23: a1->m_isTouchTriggered = 1; goto LABEL_40; } switch ( m_objectID ) { case 29: v3 = 1000; break; case 30: v3 = 1001; break; case 105: v3 = 1004; break; default: goto LABEL_40; } LABEL_30: a1->m_targetColor = v3; a1->m_usesBlending = 0; a1->m_opacity = 1.0; goto LABEL_40; } if ( m_objectID <= 1911 ) { if ( m_objectID > 1328 ) { if ( m_objectID != 1329 ) { if ( m_objectID != 1334 ) goto LABEL_40; goto LABEL_23; } a1->m_objectType = Collectible|0x1; a1->m_defaultZOrder = 9; if ( !a1->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 ) { v6 = 75; v5 = -20481; ((void (__fastcall *)(EffectGameObject *, __int16 *))a1->setObjectColor)(a1, &v5); } } a1->m_isObjectBlack = 1; GameObject::setDefaultMainColorMode(a1, 0); a1->m_hasCustomAnimation = 1; } else { if ( m_objectID == 900 ) { v3 = 1009; goto LABEL_30; } if ( m_objectID == 915 ) { a1->m_targetColor = 1002; a1->m_usesBlending = 1; } } } else { if ( m_objectID > 3606 ) { if ( m_objectID != 3607 ) { if ( m_objectID != 3640 ) { if ( m_objectID == 3643 ) *(_WORD *)&a1->m_isTouchTriggered = 1; goto LABEL_40; } *(_WORD *)&a1->m_isTouchTriggered = 1; } a1->m_isMultiTriggered = 1; goto LABEL_40; } if ( m_objectID == 1912 ) { a1->m_duration = 50.0; } else if ( m_objectID == 2066 ) { a1->m_gravityValue = 1.0; } } LABEL_40: a1->m_canSpawnTriggers = EffectGameObject::canSpawnTriggers(a1); }