//
// GJEffectManager::setColorAction from 0x499d40 to 0x499d7c (60 bytes)
//
// 9 xrefs:
// > LevelSettingsObject::init @ 0x37b214
// > LevelSettingsObject::init @ 0x37b232
// > LevelSettingsObject::init @ 0x37b252
// > LevelSettingsObject::init @ 0x37b274
// > LevelSettingsObject::init @ 0x37b292
// > LevelSettingsObject::init @ 0x37b2b0
// > GJEffectManager::getColorAction @ 0x499da6
// > GJEffectManager::setupFromString @ 0x49de38
// > GJEffectManager::loadFromState @ 0x4a6a74
//
// 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 GJEffectManager::setColorAction(GJEffectManager *a1, ColorAction *a2, int a3)
{
int v3; // r4
ColorActionSprite *ColorSprite; // r0
if ( a3 > 1100 )
v3 = 1101;
else
v3 = a3 & ~(a3 >> 31);
a2->m_colorID = v3;
cocos2d::CCDictionary::setObject(a1->m_unkObject148, a2, v3);
a1->m_colorActionVector.m_start[v3] = a2;
ColorSprite = GJEffectManager::getColorSprite(a1, v3);
a2->m_colorSprite = ColorSprite;
ColorSprite->m_colorAction = a2;
}