//
// GJRateLevelLayer::onFeature from 0x820248 to 0x82029c (84 bytes)
//
// 3 xrefs:
// > ??> @ 0xc1470
// > GJRateLevelLayer::init @ 0x822ea4
// > ??> @ 0x122eb30
//
// 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 GJRateLevelLayer::onFeature(GJRateLevelLayer *a1, cocos2d::CCObject *a2)
{
GJFeatureState m_featureState; // w1
GJDifficultySprite *m_difficultySprite; // x0
GJFeatureState v5; // w1
m_featureState = a1->m_featureState;
m_difficultySprite = a1->m_difficultySprite;
if ( m_featureState <= Legendary )
v5 = m_featureState + 1;
else
v5 = 0;
a1->m_featureState = v5;
GJDifficultySprite::updateFeatureState(m_difficultySprite, v5);
a1->toggleGroup(a1, 1, a1->m_featureState != 0);
}