//
// GameObject::shouldShowPickupEffects from 0x52a778 to 0x52a7b4 (60 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x49204c
//
// 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
//
bool GameObject::shouldShowPickupEffects(GameObject *a1)
{
cocos2d::CCSprite *m_colorSprite; // r0
if ( a1->m_hasNoEffects || a1->m_isInvisible )
return 0;
if ( !((int (__fastcall *)(GameObject *))a1->getOpacity)(a1) )
{
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
return ((int (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->getOpacity)(m_colorSprite) != 0;
return 0;
}
return 1;
}