//
// EffectGameObject::getTargetColorIndex from 0x1001bafb0 to 0x1001bb017 (103 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::updateCopyColor @ 0x10072b304
// > ColorSelectPopup::updateCopyColor @ 0x10072b36c
//
// 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 __fastcall EffectGameObject::getTargetColorIndex(EffectGameObject *a1)
{
int m_objectID; // eax
m_objectID = a1->m_objectID;
if ( m_objectID > 743 )
{
if ( m_objectID == 744 )
return 1003;
if ( m_objectID != 900 )
{
if ( m_objectID == 915 )
return 1002;
return a1->m_targetColor;
}
return 1009;
}
else
{
if ( m_objectID == 29 )
return 1000;
if ( m_objectID != 30 )
{
if ( m_objectID == 105 )
return 1004;
return a1->m_targetColor;
}
return 1001;
}
}