// // ChallengesPage::claimItem from 0x100032c88 to 0x100032db8 (304 bytes) // // 1 xrefs: // > ChallengeNode::onClaimReward @ 0x100033ae4 // // 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 ChallengesPage::claimItem( ChallengesPage *a1, ChallengeNode *a2, GJChallengeItem *a3, cocos2d::CCPoint a4) { __int64 *v4; // x3 __int64 *v5; // x22 int m_position; // w20 GameStatsManager *v9; // x0 CurrencyRewardLayer *m_currencyRewardLayer; // x23 int v11; // w21 float v12; // s2 float v13; // s3 CurrencyRewardLayer *v14; // x0 GameStatsManager *v15; // x0 float v16; // s0 __int64 v17; // [xsp+18h] [xbp-38h] BYREF cocos2d::CCPoint v18; // 0:s0.4,4:s1.4 v5 = v4; m_position = a3->m_position; v9 = GameStatsManager::sharedState(); GameStatsManager::completedChallenge(v9, a3); m_currencyRewardLayer = a1->m_currencyRewardLayer; v11 = a3->m_reward.random - a3->m_reward.seed; sub_1000229B8(&v17, v5); v18.x = 0.0; if ( m_currencyRewardLayer ) { CurrencyRewardLayer::createObjects(m_currencyRewardLayer, Star|Orb, v11, v18, v12); } else { v18.y = 1.0; v14 = CurrencyRewardLayer::create(0, 0, 0, v11, Icon, 0, Icon, 0, v18, (CurrencyRewardType)&v17, v12, v13); a1->m_currencyRewardLayer = v14; v14->m_delegate = &a1->CurrencyRewardDelegate; ((void (__fastcall *)(ChallengesPage *, CurrencyRewardLayer *, __int64))a1->addChild_0)(a1, v14, 14); } ChallengesPage::exitNodeAtSlot(a1, m_position, 0.0); v15 = GameStatsManager::sharedState(); GameStatsManager::processChallengeQueue(v15, m_position); ChallengesPage::createChallengeNode(a1, m_position, 0, 0.5, 1); ChallengesPage::updateTimers(a1, v16); ChallengesPage::updateDots(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source