//
// GameObject::setSecondaryColorMode from 0x1005ca1b0 to 0x1005ca1d9 (41 bytes)
//
// 0 xrefs:
//
// 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 GameObject::setSecondaryColorMode(GameObject *a1, int a2)
{
GJSpriteColor *m_detailColor; // rax
int v3; // ecx
int v4; // edx
m_detailColor = a1->m_detailColor;
if ( m_detailColor )
{
v3 = 0;
if ( a2 > 0 )
v3 = a2;
v4 = 1101;
if ( v3 < 1101 )
v4 = v3;
m_detailColor->m_colorID = v4;
}
}