//
// GameObject::setAreaOpacity from 0x64444c to 0x6444d4 (136 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x861d20
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x861db0
// > ??> @ 0x8bbf0
//
// 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 GameObject::setAreaOpacity(GameObject *a1, float a2, float a3, int a4)
{
int m_areaOpacityRelated; // w21
if ( a1->m_areaOpacityIndex != a4 || a1->m_areaOpacityValue > a3 )
{
m_areaOpacityRelated = a1->m_areaOpacityRelated;
a1->setOpacity(a1, (unsigned int)(float)((float)m_areaOpacityRelated * a2));
a1->m_areaOpacityRelated = m_areaOpacityRelated;
a1->m_areaOpacityIndex = a4;
a1->m_areaOpacityValue = a3;
}
}