// // ChallengesPage::claimItem from 0x4cd0b0 to 0x4cd18c (220 bytes) // // 1 xrefs: // > ChallengeNode::onClaimReward @ 0x4cd1c8 // // 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 ChallengesPage::claimItem(ChallengesPage *a1, ChallengeNode *a2, GJChallengeItem *a3, cocos2d::CCPoint a4) { float x; // r10 int m_position; // r9 GameStatsManager *v8; // r0 CurrencyRewardLayer *m_currencyRewardLayer; // r5 int v10; // r7 CurrencyRewardLayer *v11; // r0 GameStatsManager *v12; // r0 int v13; // [sp+4h] [bp-30h] float v14; // [sp+20h] [bp-14h] cocos2d::CCPoint v15; // [sp+24h] [bp-10h] BYREF cocos2d::CCPoint v16; // 0:r3.4,4:^0.4 x = a4.x; m_position = a3->m_position; v8 = GameStatsManager::sharedState(); GameStatsManager::completedChallenge(v8, a3); m_currencyRewardLayer = a1->m_currencyRewardLayer; v10 = a3->m_reward.random - a3->m_reward.seed; cocos2d::CCPoint::CCPoint(&v15, (const cocos2d::CCPoint *)LODWORD(x)); if ( m_currencyRewardLayer ) { v16.y = 0.0; LODWORD(v16.x) = &v15; CurrencyRewardLayer::createObjects(m_currencyRewardLayer, Star|Orb, v10, v16, *(float *)&v13); } else { v11 = CurrencyRewardLayer::create( 0, 0, 0, v10, Icon, 0, Icon, 0, (cocos2d::CCPoint)(unsigned int)&v15, (CurrencyRewardType)0, 1.0, v14); a1->m_currencyRewardLayer = v11; v11->m_delegate = &a1->CurrencyRewardDelegate; a1->addChild_0(a1, a1->m_currencyRewardLayer, 14); } ChallengesPage::exitNodeAtSlot(a1, m_position, 0.0); v12 = GameStatsManager::sharedState(); GameStatsManager::processChallengeQueue(v12, m_position); ChallengesPage::createChallengeNode(a1, m_position, 0, 0.5, 1); ChallengesPage::updateTimers(a1, 0.0); ChallengesPage::updateDots(a1); }