//
// GJDifficultySprite::updateFeatureStateFromLevel from 0x1002b6de0 to 0x1002b6e29 (73 bytes)
//
// 2 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x1002506fc
// > LevelInfoLayer::updateLabelValues @ 0x1002c324b
//
// 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 GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2)
{
GJFeatureState v3; // esi
bool v4; // cl
int m_isEpic; // eax
if ( a2 )
{
v3 = 0;
v4 = a2->m_featured > 0;
m_isEpic = a2->m_isEpic;
if ( m_isEpic <= 0 )
{
LOBYTE(v3) = v4;
}
else
{
v3 = Mythic;
if ( (unsigned int)m_isEpic <= 2 )
v3 = (m_isEpic == 1) ^ 3;
}
GJDifficultySprite::updateFeatureState(a1, v3);
}
}