//
// EffectGameObject::getTargetColorIndex from 0x3ea610 to 0x3ea660 (80 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::updateCopyColor @ 0x3da6aa
// > ColorSelectPopup::updateCopyColor @ 0x3da6e4
//
// 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
//
int EffectGameObject::getTargetColorIndex(EffectGameObject *a1)
{
int m_objectID; // r3
m_objectID = a1->m_objectID;
if ( m_objectID == 105 )
return 1004;
if ( m_objectID > 105 )
{
switch ( m_objectID )
{
case 900:
return 1009;
case 915:
return 1002;
case 744:
return 1003;
}
return a1->m_targetColor;
}
if ( m_objectID != 29 )
{
if ( m_objectID == 30 )
return 1001;
return a1->m_targetColor;
}
return 1000;
}