// // RewardUnlockLayer::playRewardEffect from 0x1403cede0 to 0x1403d0478 (5784 bytes) // // 16 xrefs: // > DailyLevelPage::claimLevelReward @ 0x1400d1c03 // > FollowRewardPage::onSpecialItem @ 0x14013cfed // > GauntletSelectLayer::onPlay @ 0x1401faf0c // > GJPathRewardPopup::onClaim @ 0x14028a5b6 // > GJShopLayer::dialogClosed @ 0x1402ae939 // > RewardUnlockLayer::showCollectReward @ 0x1403ceb95 // > RewardUnlockLayer::step3 @ 0x1403cedce // > SecretRewardsLayer::onSelectItem @ 0x1403d660e // > SecretRewardsLayer::onSpecialItem @ 0x1403d6eb4 // > SecretRewardsLayer::onGoldChest @ 0x1403d7669 // > SecretLayer3::onChest01 @ 0x1403eb651 // > SecretLayer3::onChest02 @ 0x1403eb7d1 // > SecretLayer4::onChest01 @ 0x1403f0d34 // > SecretLayer5::claimOnlineReward @ 0x1403f69a8 // > SupportLayer::onGetReward @ 0x1404c9aa5 // > @ 0x1406d7c40 // // 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 // // Hidden C++ exception states: #wind=18 void RewardUnlockLayer::playRewardEffect(RewardUnlockLayer *a1) { float v1; // xmm3_4 GJRewardType m_rewardType; // ecx int v4; // esi int v5; // ecx MusicDownloadManager *v6; // rax _QWORD *v7; // rdi __int64 v8; // rbx int v9; // eax GJRewardItem *m_rewardItem; // rdi cocos2d::CCArray *m_rewardObjects; // r13 int v12; // r15d unsigned int v13; // ebx struct cocos2d::CCObject *v14; // rax GJRewardItem *v15; // rdi cocos2d::CCArray *v16; // rcx int v17; // r14d unsigned int v18; // ebx struct cocos2d::CCObject *v19; // rax GJRewardItem *v20; // rdi cocos2d::CCArray *v21; // rcx unsigned int v22; // ebx struct cocos2d::CCObject *v23; // rax int v24; // edi unsigned int v25; // ebx struct cocos2d::CCObject *v26; // rax float v27; // ecx CurrencySpriteType v28; // edi CurrencySpriteType v29; // eax CurrencyRewardType v30; // ebx int v31; // ecx int v32; // ecx __int128 *v33; // rdx int v34; // ecx int v35; // ecx int v36; // ecx FMODAudioEngine *v37; // rax FMODAudioEngine_vtbl *v38; // rdx cocos2d::CCPoint v39; // rax CurrencyRewardLayer *v40; // rdi unsigned int v41; // ebx struct cocos2d::CCObject *v42; // rax int m_uID; // esi UnlockType v44; // r14d GJItemIcon *v45; // r15 cocos2d::CCPoint v46; // rax __int64 v47; // rcx cocos2d::CCDirector *v48; // rax __int64 v49; // rcx int v50; // ebx CurrencyRewardLayer *v51; // rdi __int64 v52; // rcx unsigned int v53; // esi unsigned int v54; // ebx cocos2d::CCArray *v55; // rsi struct cocos2d::CCObject *v56; // rax struct cocos2d::CCInteger *v57; // rax struct cocos2d::CCInteger *v58; // rax struct cocos2d::CCInteger *v59; // rax struct cocos2d::CCInteger *v60; // rax struct cocos2d::CCInteger *v61; // rax int v62; // ebx double v63; // xmm0_8 signed int v64; // r13d double v65; // xmm0_8 double v66; // xmm0_8 double v67; // xmm0_8 double v68; // xmm0_8 double v69; // xmm0_8 double v70; // xmm0_8 double v71; // xmm0_8 double v72; // xmm0_8 int v73; // ebx cocos2d::CCPoint *v74; // rdx float v75; // xmm6_4 cocos2d::CCPoint v76; // rax cocos2d::CCPoint v77; // rax cocos2d::CCPoint v78; // rax cocos2d::CCPoint v79; // rax struct cocos2d::CCObject *v80; // rax int v81; // esi UnlockType v82; // r14d GJItemIcon *v83; // r15 cocos2d::CCPoint v84; // rax double v85; // xmm0_8 __int64 v86; // rdi float v87; // xmm7_4 __int64 v88; // rcx cocos2d::CCArray *v89; // rbx int v90; // eax struct cocos2d::CCMoveTo *v91; // rax struct cocos2d::CCDelayTime *v92; // rax struct cocos2d::CCMoveTo *v93; // rax struct cocos2d::CCSequence *v94; // rax cocos2d::ccColor3B *v95; // r8 int v96; // eax double v97; // xmm0_8 cocos2d::CCPoint v98; // rax cocos2d::CCPoint v99; // rbx cocos2d::CCPoint v100; // rax cocos2d::CCLightning *v101; // rbx __int64 v102; // rbx struct cocos2d::CCDelayTime *v103; // rax struct cocos2d::CCSequence *v104; // rax cocos2d::ccColor3B *v105; // r8 float v106; // [rsp+28h] [rbp-100h] bool v107; // [rsp+38h] [rbp-F0h] cocos2d::ccColor3B *v108; // [rsp+48h] [rbp-E0h] float v109; // [rsp+A8h] [rbp-80h] BYREF float v110; // [rsp+ACh] [rbp-7Ch] cocos2d::ccColor3B v111[5]; // [rsp+B8h] [rbp-70h] BYREF cocos2d::CCPoint v112; // [rsp+C8h] [rbp-60h] BYREF __int128 v113; // [rsp+D0h] [rbp-58h] BYREF __int64 v114; // [rsp+E0h] [rbp-48h] __int64 v115; // [rsp+E8h] [rbp-40h] int v116; // [rsp+F0h] [rbp-38h] __int128 v117; // [rsp+F8h] [rbp-30h] BYREF __int64 v118; // [rsp+108h] [rbp-20h] __int64 v119; // [rsp+110h] [rbp-18h] int v120; // [rsp+118h] [rbp-10h] int v121; // [rsp+11Ch] [rbp-Ch] int v122; // [rsp+120h] [rbp-8h] cocos2d::CCArray *v123; // [rsp+128h] [rbp+0h] float v124; // [rsp+130h] [rbp+8h] CurrencySpriteType v125; // [rsp+138h] [rbp+10h] cocos2d::CCPoint v126; // [rsp+140h] [rbp+18h] BYREF CurrencyRewardLayer *v127; // [rsp+148h] [rbp+20h] BYREF cocos2d::CCPoint v128; // [rsp+150h] [rbp+28h] BYREF CurrencySpriteType v129; // [rsp+158h] [rbp+30h] cocos2d::CCPoint v130; // [rsp+160h] [rbp+38h] BYREF cocos2d::CCPoint v131; // [rsp+168h] [rbp+40h] BYREF cocos2d::CCPoint v132; // [rsp+170h] [rbp+48h] BYREF cocos2d::CCPoint v133; // [rsp+178h] [rbp+50h] BYREF cocos2d::CCPoint v134; // [rsp+180h] [rbp+58h] BYREF GJItemIcon *v135; // [rsp+188h] [rbp+60h] BYREF cocos2d::CCPoint v136; // [rsp+190h] [rbp+68h] BYREF cocos2d::CCPoint v137; // [rsp+198h] [rbp+70h] BYREF GJItemIcon *v138; // [rsp+1A0h] [rbp+78h] BYREF cocos2d::CCPoint v139[17]; // [rsp+1A8h] [rbp+80h] BYREF __int128 *v140; // [rsp+278h] [rbp+150h] BYREF FMODAudioEngine *v141; // [rsp+280h] [rbp+158h] BYREF FMODAudioEngine *v142; // [rsp+288h] [rbp+160h] BYREF int v143; // [rsp+290h] [rbp+168h] BYREF m_rewardType = a1->m_rewardItem->m_rewardType; v4 = 0; switch ( m_rewardType ) { case Key50Treasure: v140 = &v113; v114 = 11; v115 = 15; *(_QWORD *)&v113 = 0x2E37307473656863LL; *((_QWORD *)&v113 + 1) = 6776687; v5 = qword_1406C2E88; if ( !qword_1406C2E88 ) goto LABEL_6; goto LABEL_7; case Key100Treasure: v140 = &v113; v114 = 11; v115 = 15; *(_QWORD *)&v113 = 0x2E38307473656863LL; *((_QWORD *)&v113 + 1) = 6776687; v5 = qword_1406C2E88; if ( !qword_1406C2E88 ) { LABEL_6: v141 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v141); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v5 = qword_1406C2E88; } LABEL_7: FMODAudioEngine::playEffect_1(v5, (__int64)&v113); break; case Gold: v140 = &v117; v6 = MusicDownloadManager::sharedState(); v7 = MusicDownloadManager::pathForSFX((__int64)v6, &v117, 0x24FEu); v8 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v141 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v141); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v8 = qword_1406C2E88; } v9 = rand(); v1 = 0.0; FMODAudioEngine::playEffectAdvanced( v8, v7, (float)((float)((float)v9 / 32767.0) * 0.2) + 0.89999998, 0.0, 0.69999999, 0.0, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0); break; } GJChestSprite::switchToState(a1->m_chestSprite, Opened, 0); m_rewardItem = a1->m_rewardItem; m_rewardObjects = m_rewardItem->m_rewardObjects; v12 = 0; v122 = 0; if ( m_rewardObjects ) { v13 = 0; if ( cocos2d::CCArray::count(m_rewardObjects) ) { do { v14 = cocos2d::CCArray::objectAtIndex(m_rewardItem->m_rewardObjects, v13); if ( LODWORD(v14[1].__vftable) == 7 ) v12 += v14[1].m_nLuaID; ++v13; } while ( v13 < cocos2d::CCArray::count(m_rewardItem->m_rewardObjects) ); v122 = v12; } } v15 = a1->m_rewardItem; v16 = v15->m_rewardObjects; v17 = 0; v121 = 0; if ( v16 ) { v18 = 0; if ( cocos2d::CCArray::count(v16) ) { do { v19 = cocos2d::CCArray::objectAtIndex(v15->m_rewardObjects, v18); if ( LODWORD(v19[1].__vftable) == 8 ) v17 += v19[1].m_nLuaID; ++v18; } while ( v18 < cocos2d::CCArray::count(v15->m_rewardObjects) ); v121 = v17; } } v20 = a1->m_rewardItem; v21 = v20->m_rewardObjects; LODWORD(v123) = 0; if ( v21 ) { v22 = 0; if ( cocos2d::CCArray::count(v21) ) { do { v23 = cocos2d::CCArray::objectAtIndex(v20->m_rewardObjects, v22); if ( LODWORD(v23[1].__vftable) == 9 ) v4 += v23[1].m_nLuaID; ++v22; } while ( v22 < cocos2d::CCArray::count(v20->m_rewardObjects) ); LODWORD(v123) = v4; } } v24 = 0; v143 = 0; v112.x = 0.0; LODWORD(v141) = 0; v120 = 0; if ( m_rewardObjects ) { v25 = 0; if ( cocos2d::CCArray::count(m_rewardObjects) ) { while ( 2 ) { v26 = cocos2d::CCArray::objectAtIndex(m_rewardObjects, v25); switch ( LODWORD(v26[1].__vftable) ) { case 1: case 2: case 3: case 4: case 5: case 6: case 0xA: case 0xB: case 0xC: case 0xD: case 0xE: case 0xF: v27 = *(float *)&v26[1].m_nLuaID; if ( !v24 ) { v24 = (int)v26[1].__vftable; v143 = v24; *(float *)&v141 = v27; goto LABEL_35; } v112.x = *(float *)&v26[1].__vftable; v120 = LODWORD(v27); break; default: LABEL_35: if ( ++v25 < cocos2d::CCArray::count(m_rewardObjects) ) continue; break; } break; } } } v28 = CurrencySprite::rewardToSpriteType(v24); v129 = v28; v29 = CurrencySprite::rewardToSpriteType(SLODWORD(v112.x)); v125 = v29; v30 = a1->m_rewardItem->m_rewardType == SmallTreasure; if ( v4 > 0 ) { v140 = &v113; v114 = 12; v115 = 15; strcpy((char *)&v113, "reward01.ogg"); BYTE13(v113) = 0; HIWORD(v113) = 0; v31 = qword_1406C2E88; if ( qword_1406C2E88 ) { LABEL_67: v33 = &v113; LABEL_68: FMODAudioEngine::playEffect_1(v31, (__int64)v33); goto LABEL_69; } LABEL_66: v142 = (FMODAudioEngine *)operator new(0x888u); v37 = FMODAudioEngine::FMODAudioEngine(v142); v38 = v37->__vftable; qword_1406C2E88 = (__int64)v37; v38->init(v37); v31 = qword_1406C2E88; goto LABEL_67; } if ( v28 == 16 || v29 == 16 ) { v140 = &v117; *((_QWORD *)&v117 + 1) = 26471; v118 = 10; v119 = 15; *(_QWORD *)&v117 = 0x6F2E3130646C6F67LL; v36 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v142 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v36 = qword_1406C2E88; } FMODAudioEngine::playEffect_1(v36, (__int64)&v117); v140 = &v113; v114 = 11; v115 = 15; *(_QWORD *)&v113 = 0x2E79654B646C6F67LL; *((_QWORD *)&v113 + 1) = 6776687; v31 = qword_1406C2E88; if ( qword_1406C2E88 ) goto LABEL_67; goto LABEL_66; } if ( v28 == DemonKey || v29 == DemonKey ) { v140 = &v117; *((_QWORD *)&v117 + 1) = 26471; v118 = 10; v119 = 15; *(_QWORD *)&v117 = 0x6F2E3130646C6F67LL; v35 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v142 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v35 = qword_1406C2E88; } FMODAudioEngine::playEffect_1(v35, (__int64)&v117); v140 = &v113; v114 = 13; v115 = 15; strcpy((char *)&v113, "secretKey.ogg"); HIWORD(v113) = 0; v31 = qword_1406C2E88; if ( qword_1406C2E88 ) goto LABEL_67; goto LABEL_66; } if ( v28 ) { v140 = &v117; v117 = 0; v118 = 0; v119 = 15; *(_QWORD *)&v117 = sub_14003AA10(0x20u); v118 = 18; v119 = 31; strcpy((char *)v117, "magicExplosion.ogg"); v32 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v142 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v32 = qword_1406C2E88; } FMODAudioEngine::playEffect_1(v32, (__int64)&v117); v140 = &v113; v114 = 13; v115 = 15; strcpy((char *)&v113, "crystal01.ogg"); HIWORD(v113) = 0; v31 = qword_1406C2E88; if ( qword_1406C2E88 ) goto LABEL_67; goto LABEL_66; } if ( v17 > 0 ) { v140 = &v117; *((_QWORD *)&v117 + 1) = 26471; v118 = 10; v119 = 15; *(_QWORD *)&v117 = 0x6F2E3230646C6F67LL; v31 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v142 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v31 = qword_1406C2E88; } v33 = &v117; goto LABEL_68; } if ( v12 > 0 ) { v140 = &v117; *((_QWORD *)&v117 + 1) = 26471; v118 = 10; v119 = 15; *(_QWORD *)&v117 = 0x6F2E3130646C6F67LL; v34 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v142 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v34 = qword_1406C2E88; } FMODAudioEngine::playEffect_1(v34, (__int64)&v117); v140 = &v113; v113 = 0; v114 = 0; v115 = 15; *(_QWORD *)&v113 = sub_14003AA10(0x20u); v114 = 18; v115 = 31; strcpy((char *)v113, "magicExplosion.ogg"); v31 = qword_1406C2E88; if ( qword_1406C2E88 ) goto LABEL_67; goto LABEL_66; } LABEL_69: a1->m_chestSprite->getPosition_0(a1->m_chestSprite); cocos2d::CCPoint::CCPoint(&v134); v40 = CurrencyRewardLayer::create(v12, 0, 0, v17, v28, (int)v141, v125, v120, v39, v30, a1->m_unkFloat, 1.0); v127 = v40; if ( v4 > 0 ) { v41 = 0; v116 = 0; if ( cocos2d::CCArray::count(m_rewardObjects) ) { do { v42 = cocos2d::CCArray::objectAtIndex(m_rewardObjects, v41); if ( LODWORD(v42[1].__vftable) == 9 ) { LOWORD(v140) = -20561; m_uID = v42[1].m_uID; v44 = HIDWORD(v42[1].__vftable); v45 = (GJItemIcon *)operator new(0x278u); v135 = v45; cocos2d::CCSprite::CCSprite(v45); v45->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)&GJItemIcon::`vftable'; v45->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJItemIcon::`vftable'; v45->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJItemIcon::`vftable'; v45->m_player = nullptr; v45->m_iconRequestID = 0; cocos2d::CCSize::CCSize(&v45->m_playerSize); v45->m_isIcon = 0; *(_QWORD *)&v45->m_unlockID = 0; LOWORD(v142) = -1; BYTE2(v142) = -1; *(_WORD *)&v111[0].r = (_WORD)v140; v111[0].b = -81; if ( GJItemIcon::init(v45, v44, m_uID, v111, (cocos2d::ccColor3B *)&v142, 0, v107, 1, v108) ) { cocos2d::CCObject::autorelease(v45); } else { ((void (__fastcall *)(GJItemIcon *, __int64))v45->~GJItemIcon)(v45, 1); v45 = nullptr; } a1->m_chestSprite->getPosition_0(a1->m_chestSprite); cocos2d::CCPoint::CCPoint(&v136); cocos2d::CCPoint::CCPoint(&v137); v40 = v127; CurrencyRewardLayer::createObjectsFull(v127, Icon, 1, v45, v46, 0.40000001); v41 = v116; } v116 = ++v41; } while ( v41 < cocos2d::CCArray::count(m_rewardObjects) ); v4 = (int)v123; v17 = v121; v12 = v122; } } a1->addChild_0(a1, v40, 100); v40->m_delegate = &a1->CurrencyRewardDelegate; v48 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v47); cocos2d::CCDirector::getWinSize(v48); LOBYTE(v140) = SLODWORD(v112.x) > 0; v50 = v143; if ( v143 > 0 && SLODWORD(v112.x) > 0 && v143 == LODWORD(v112.x) ) { LOBYTE(v140) = 0; LODWORD(v141) = v120 + (_DWORD)v141; } v51 = (CurrencyRewardLayer *)cocos2d::CCArray::create(v49); v127 = v51; v123 = (cocos2d::CCArray *)cocos2d::CCArray::create(v52); if ( v4 <= 0 ) goto LABEL_89; v53 = 0; v54 = 0; if ( cocos2d::CCArray::count(m_rewardObjects) ) { v55 = v123; do { v56 = cocos2d::CCArray::objectAtIndex(m_rewardObjects, v54); if ( LODWORD(v56[1].__vftable) == 9 ) { cocos2d::CCArray::addObject(v55, v56); v57 = cocos2d::CCInteger::create(0); cocos2d::CCArray::addObject((cocos2d::CCArray *)v51, v57); } ++v54; } while ( v54 < cocos2d::CCArray::count(m_rewardObjects) ); v50 = v143; LABEL_89: v53 = 0; goto LABEL_90; } v50 = v143; LABEL_90: if ( v12 > 0 ) { v58 = cocos2d::CCInteger::create(1); cocos2d::CCArray::addObject((cocos2d::CCArray *)v51, v58); } if ( v17 > 0 ) { v59 = cocos2d::CCInteger::create(3); cocos2d::CCArray::addObject((cocos2d::CCArray *)v51, v59); } if ( v50 > 0 ) { v60 = cocos2d::CCInteger::create(9998); cocos2d::CCArray::addObject((cocos2d::CCArray *)v51, v60); } if ( (_BYTE)v140 ) { v61 = cocos2d::CCInteger::create(9999); cocos2d::CCArray::addObject((cocos2d::CCArray *)v51, v61); } v62 = cocos2d::CCArray::count((cocos2d::CCArray *)v51); v116 = v62; cocos2d::CCPoint::CCPoint(&v126); cocos2d::CCPoint::CCPoint(&v128); cocos2d::CCPoint::CCPoint(&v130); cocos2d::CCPoint::CCPoint(&v133); cocos2d::CCPoint::CCPoint(&v132); v63 = cocos2d::CCPoint::CCPoint(&v131); cocos2d::CCPoint::CCPoint(*(float *)&v63, v124 * 0.5); switch ( v62 ) { case 1: cocos2d::CCPoint::operator=(&v126, &v109); v143 = 0; v64 = 0; break; case 2: v109 = v109 + -45.0; v65 = cocos2d::CCPoint::operator=(&v126, &v109); cocos2d::CCPoint::CCPoint(*(float *)&v65, 90.0); cocos2d::CCPoint::operator+(&v109, &v140); cocos2d::CCPoint::operator=(&v128, &v140); v143 = 0; v64 = 0; break; case 3: v109 = v109 + -75.0; cocos2d::CCPoint::CCPoint(v109, 0.0); cocos2d::CCPoint::operator+(&v109, &v140); v66 = cocos2d::CCPoint::operator=(&v126, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v66, 75.0); cocos2d::CCPoint::operator+(&v109, &v140); v67 = cocos2d::CCPoint::operator=(&v128, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v67, 150.0); cocos2d::CCPoint::operator+(&v109, &v140); cocos2d::CCPoint::operator=(&v130, &v140); v143 = 0; v64 = 0; break; default: v110 = v110 + -5.0; v109 = v109 + -109.5; cocos2d::CCPoint::CCPoint(v110, 0.0); cocos2d::CCPoint::operator+(&v109, &v140); v68 = cocos2d::CCPoint::operator=(&v126, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v68, 73.0); cocos2d::CCPoint::operator+(&v109, &v140); v69 = cocos2d::CCPoint::operator=(&v128, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v69, 146.0); cocos2d::CCPoint::operator+(&v109, &v140); v70 = cocos2d::CCPoint::operator=(&v130, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v70, 219.0); cocos2d::CCPoint::operator+(&v109, &v140); v71 = cocos2d::CCPoint::operator=(&v133, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v71, 219.0); cocos2d::CCPoint::operator+(&v109, &v140); v72 = cocos2d::CCPoint::operator=(&v132, &v140); cocos2d::CCPoint::CCPoint(*(float *)&v72, 0.0); cocos2d::CCPoint::operator+(&v109, &v140); cocos2d::CCPoint::operator=(&v131, &v140); v143 = 0; v64 = 0; if ( v62 <= 0 ) goto LABEL_133; break; } do { v73 = (int)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v51, v64)[1].__vftable; cocos2d::CCPoint::CCPoint(&v112); if ( v64 ) { switch ( v64 ) { case 1: v74 = &v128; break; case 2: v74 = &v130; break; case 3: v74 = &v133; break; case 4: v74 = &v132; break; default: v74 = &v131; break; } } else { v74 = &v126; } cocos2d::CCPoint::operator=(&v112, v74); v75 = (float)((float)v64 * 0.2) + 0.5; switch ( v73 ) { case 1: cocos2d::CCPoint::CCPoint(&v137); RewardUnlockLayer::playLabelEffect(a1, v12, 1, nullptr, v76, v75); break; case 3: cocos2d::CCPoint::CCPoint(&v136); RewardUnlockLayer::playLabelEffect(a1, v17, 3, nullptr, v77, v75); break; case 9998: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135); RewardUnlockLayer::playLabelEffect(a1, (int)v141, v129, nullptr, v78, v75); break; case 9999: cocos2d::CCPoint::CCPoint(&v134); RewardUnlockLayer::playLabelEffect(a1, v120, v125, nullptr, v79, v75); break; case 0: v80 = cocos2d::CCArray::objectAtIndex(v123, v53); LOWORD(v140) = -20561; v81 = v80[1].m_uID; v82 = HIDWORD(v80[1].__vftable); v83 = (GJItemIcon *)operator new(0x278u); v138 = v83; cocos2d::CCSprite::CCSprite(v83); v83->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)&GJItemIcon::`vftable'; v83->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJItemIcon::`vftable'; v83->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJItemIcon::`vftable'; v83->m_player = nullptr; v83->m_iconRequestID = 0; cocos2d::CCSize::CCSize(&v83->m_playerSize); v83->m_isIcon = 0; *(_QWORD *)&v83->m_unlockID = 0; LOWORD(v142) = -1; BYTE2(v142) = -1; *(_WORD *)&v111[0].r = (_WORD)v140; v111[0].b = -81; if ( GJItemIcon::init(v83, v82, v81, v111, (cocos2d::ccColor3B *)&v142, 0, v107, 1, v108) ) { cocos2d::CCObject::autorelease(v83); } else { ((void (__fastcall *)(GJItemIcon *, __int64))v83->~GJItemIcon)(v83, 1); v83 = nullptr; } if ( v116 <= 1 ) v75 = 2.2; cocos2d::CCPoint::CCPoint(v139); RewardUnlockLayer::playLabelEffect(a1, 1, 0, v83, v84, v75); v53 = ++v143; v51 = v127; v17 = v121; v12 = v122; break; } ++v64; } while ( v64 < v116 ); LABEL_133: if ( a1->m_rewardItem->m_rewardType > Key10Treasure ) { a1->m_mainLayer->getPosition_0(a1->m_mainLayer); v85 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v141); v86 = (unsigned int)a1->m_rewardItem->m_rewardType; v87 = (float)((float)a1->m_rewardItem->m_rewardType * 0.1) + 3.0; v89 = (cocos2d::CCArray *)cocos2d::CCArray::create(v88); if ( (int)v86 > 0 ) { do { rand(); v90 = rand(); cocos2d::CCPoint::CCPoint( *(float *)&v85, (float)((float)((float)((float)v90 / 32767.0) + (float)((float)v90 / 32767.0)) - 1.0) * v87); cocos2d::CCPoint::operator+(&v141, &v140); v91 = cocos2d::CCMoveTo::create(0.0, (const struct cocos2d::CCPoint *)&v140); cocos2d::CCArray::addObject(v89, v91); LODWORD(v85) = 1022739087; v92 = cocos2d::CCDelayTime::create(0.029999999); cocos2d::CCArray::addObject(v89, v92); --v86; } while ( v86 ); } v93 = cocos2d::CCMoveTo::create(0.0, (const struct cocos2d::CCPoint *)&v141); cocos2d::CCArray::addObject(v89, v93); v94 = cocos2d::CCSequence::create(v89); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v94, v95, v1, v106); if ( a1->m_rewardItem->m_rewardType == Key100Treasure ) { v96 = rand(); v97 = cocos2d::CCPoint::CCPoint( v124 * 0.5, (float)((float)((float)((float)((float)v96 / 32767.0) + (float)((float)v96 / 32767.0)) - 1.0) * 50.0) + (float)(v124 * 0.5)); cocos2d::CCPoint::CCPoint(*(float *)&v97, v124 * 0.5); cocos2d::CCPoint::operator-(&v143, &v127, &v142); cocos2d::CCPoint::CCPoint(v139); v99 = v98; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138); v101 = cocos2d::CCLightning::lightningWithStrikePoint(v100, v99, 0.5); v101->setPosition_0(v101, (const cocos2d::CCPoint *)&v142); LOWORD(v140) = 255; BYTE2(v140) = -1; v101->setColor(&v101->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v140); v101->m_lineWidth = 5.0; *(_WORD *)&v101->m_unkBool = 257; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v101, 3); } } v102 = cocos2d::CCCallFunc::create(a1, RewardUnlockLayer::showCloseButton); v103 = cocos2d::CCDelayTime::create(1.5); v104 = cocos2d::CCSequence::create(v103, v102, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v104, v105, v1, v106); }
GD Web Decomp Icon

GD Web Decomp

Raw Source