// // DailyLevelPage::claimLevelReward from 0x4d56e4 to 0x4d57cc (232 bytes) // // 1 xrefs: // > DailyLevelNode::onClaimReward @ 0x4d5818 // // 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 DailyLevelPage::claimLevelReward(DailyLevelPage *a1, DailyLevelNode *a2, GJGameLevel *a3, cocos2d::CCPoint a4) { float x; // r10 GameStatsManager *v8; // r0 GJRewardItem *v9; // r0 GJRewardItem *v10; // r4 RewardUnlockLayer *v11; // r8 GameStatsManager *v12; // r0 int BonusDiamonds; // r11 CurrencyRewardLayer *v14; // r0 GameLevelManager *v15; // r0 float v16; // [sp+20h] [bp-14h] cocos2d::CCPoint v17; // [sp+24h] [bp-10h] BYREF x = a4.x; v8 = GameStatsManager::sharedState(); v9 = GameStatsManager::completedDailyLevel(v8, a3); v10 = v9; if ( v9 ) { v11 = RewardUnlockLayer::create(v9->m_rewardType, nullptr); a1->addChild_0(a1, v11, 100); RewardUnlockLayer::showCollectReward(v11, v10); } else { v12 = GameStatsManager::sharedState(); BonusDiamonds = GameStatsManager::getBonusDiamonds(v12, a3->m_stars.random - a3->m_stars.seed); cocos2d::CCPoint::CCPoint(&v17, (const cocos2d::CCPoint *)LODWORD(x)); v14 = CurrencyRewardLayer::create( 0, 0, 0, BonusDiamonds, Icon, 0, Icon, 0, (cocos2d::CCPoint)(unsigned int)&v17, (CurrencyRewardType)0, 1.0, v16); a1->addChild_0(a1, v14, 14); } DailyLevelPage::exitDailyNode(a1, a2, 0.0); v15 = GameLevelManager::sharedState(); if ( GameLevelManager::getDailyID(v15, a1->m_type) <= a3->m_dailyID.random - a3->m_dailyID.seed ) DailyLevelPage::createDailyNode(a1, nullptr, 0, 0.5, 0); else DailyLevelPage::downloadAndCreateNode(a1); }