//
// RewardUnlockLayer::playRewardEffect from 0x618944 to 0x619496 (2898 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::showCollectReward @ 0x619510
// > RewardUnlockLayer::step3 @ 0x6195e4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:54:58 +0000
//
int __fastcall RewardUnlockLayer::playRewardEffect(RewardUnlockLayer *this)
{
int v2; // r2
FMODAudioEngine *v3; // r6
FMODAudioEngine *v4; // r6
MusicDownloadManager *v5; // r6
MusicDownloadManager *v6; // r0
unsigned int v7; // r0
int v8; // r0
cocos2d::CCArray *v9; // r6
int v10; // r1
_BOOL4 v11; // r5
CurrencySprite *v12; // r11
CurrencySprite *v13; // r7
unsigned int v14; // r8
GJRewardObject *v15; // r9
int v16; // r1
FMODAudioEngine *v17; // r0
_BOOL4 v18; // r9
int v19; // r0
FMODAudioEngine *v20; // r10
int v21; // r0
FMODAudioEngine *v22; // r10
FMODAudioEngine *v23; // r0
int v24; // r0
FMODAudioEngine *v25; // r10
int v26; // r0
FMODAudioEngine *v27; // r10
FMODAudioEngine *v28; // r0
int v29; // r0
FMODAudioEngine *v30; // r10
int v31; // r0
FMODAudioEngine *v32; // r10
FMODAudioEngine *v33; // r0
int v34; // r0
FMODAudioEngine *v35; // r10
int v36; // r0
FMODAudioEngine *v37; // r10
int v38; // r0
FMODAudioEngine *v39; // r10
FMODAudioEngine *v40; // r0
int v41; // r0
FMODAudioEngine *v42; // r10
const cocos2d::CCPoint *v43; // r0
int v44; // r10
cocos2d::CCDirector *v45; // r0
cocos2d::CCArray *WinSize; // r0
_BOOL4 v47; // r8
unsigned int i; // r8
_DWORD *v49; // r0
const cocos2d::CCPoint *v50; // r0
cocos2d::CCArray *v51; // r11
int v52; // r1
cocos2d::CCObject *v53; // r0
unsigned int j; // r5
cocos2d::CCObject *v55; // r1
int v56; // r1
cocos2d::CCObject *v57; // r0
cocos2d::CCObject *v58; // r0
cocos2d::CCObject *v59; // r0
cocos2d::CCObject *v60; // r0
int v61; // r10
_BYTE *v62; // r0
float *v63; // r1
signed int v64; // r6
float v65; // r1
unsigned int v66; // r8
_BYTE *v67; // r1
float v68; // s16
int v69; // r5
int v70; // r0
int v71; // r9
const cocos2d::CCPoint *v72; // r0
cocos2d::CCArray *v73; // r0
int v74; // r10
const cocos2d::CCPoint *v75; // r2
cocos2d::CCArray *v76; // r6
int v77; // r0
float v78; // s16
int v79; // r0
const cocos2d::CCPoint *v80; // r2
cocos2d::CCObject *v81; // r0
float v82; // r1
cocos2d::CCObject *v83; // r0
cocos2d::CCObject *v84; // r0
cocos2d::CCArray *v85; // r1
cocos2d::CCAction *v86; // r0
float v87; // s16
float v88; // s15
cocos2d::CCLightning *v89; // r6
void (__fastcall *v90)(cocos2d::CCLightning *, _DWORD *); // r2
cocos2d::CCSequence *v91; // r0
cocos2d::CCSequence *v92; // r7
cocos2d::CCFiniteTimeAction *v93; // r0
cocos2d::CCAction *v94; // r0
const char *v96; // [sp+40h] [bp-BCh]
int v97; // [sp+44h] [bp-B8h]
int v98; // [sp+48h] [bp-B4h]
const char *RewardCount; // [sp+4Ch] [bp-B0h]
const char *v100; // [sp+50h] [bp-ACh]
int v101; // [sp+54h] [bp-A8h]
CurrencySprite *v102; // [sp+5Ch] [bp-A0h]
cocos2d::CCArray *v103; // [sp+5Ch] [bp-A0h]
int *v104; // [sp+60h] [bp-9Ch]
int v105; // [sp+70h] [bp-8Ch]
int v106; // [sp+74h] [bp-88h]
float v107; // [sp+78h] [bp-84h] BYREF
float v108; // [sp+7Ch] [bp-80h]
_BYTE v109[8]; // [sp+80h] [bp-7Ch] BYREF
_BYTE v110[8]; // [sp+88h] [bp-74h] BYREF
_BYTE v111[8]; // [sp+90h] [bp-6Ch] BYREF
_BYTE v112[8]; // [sp+98h] [bp-64h] BYREF
_BYTE v113[8]; // [sp+A0h] [bp-5Ch] BYREF
_BYTE v114[8]; // [sp+A8h] [bp-54h] BYREF
float v115; // [sp+B0h] [bp-4Ch] BYREF
float v116; // [sp+B4h] [bp-48h]
_BYTE v117[8]; // [sp+B8h] [bp-44h] BYREF
_BYTE v118[8]; // [sp+C0h] [bp-3Ch] BYREF
_BYTE v119[8]; // [sp+C8h] [bp-34h] BYREF
_BYTE v120[8]; // [sp+D0h] [bp-2Ch] BYREF
_BYTE v121[8]; // [sp+D8h] [bp-24h] BYREF
_DWORD v122[2]; // [sp+E0h] [bp-1Ch] BYREF
int v123; // [sp+E8h] [bp-14h] BYREF
int v124; // [sp+ECh] [bp-10h]
int v125; // [sp+F0h] [bp-Ch]
v2 = *(_DWORD *)(*((_DWORD *)this + 136) + 60);
switch ( v2 )
{
case 7:
v123 = 0;
v124 = 0;
v125 = 0;
v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this);
std::string::__init(&v123, "chest07.ogg", 0xBu);
FMODAudioEngine::playEffect(v3, (int)&v123);
break;
case 8:
v123 = 0;
v124 = 0;
v125 = 0;
v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this);
std::string::__init(&v123, "chest08.ogg", 0xBu);
FMODAudioEngine::playEffect(v4, (int)&v123);
break;
case 9:
v5 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(this);
v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v5);
MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v123, v6, 0x24FEu);
v7 = rand();
FMODAudioEngine::playEffectAdvanced(
v5,
(unsigned __int8 *)&v123,
COERCE_INT((float)(vcvts_n_f32_s32(v7, 0x1Fu) * 0.2) + 0.9),
0,
1060320051,
0.0,
0,
0,
120,
0,
0,
0,
0,
0,
0,
0,
nullptr,
0,
0.0,
0);
break;
default:
goto LABEL_8;
}
std::string::~string((int)&v123);
LABEL_8:
GJChestSprite::switchToState(*((_DWORD **)this + 133), 4, 0);
v8 = *((_DWORD *)this + 136);
v9 = *(cocos2d::CCArray **)(v8 + 64);
RewardCount = (const char *)GJRewardItem::getRewardCount(v8, 7);
v100 = (const char *)GJRewardItem::getRewardCount(*((_DWORD *)this + 136), 8);
v11 = GJRewardItem::getRewardCount(*((_DWORD *)this + 136), 9) > 0;
if ( v9 )
{
v14 = 0;
v96 = nullptr;
v13 = nullptr;
while ( v14 < cocos2d::CCArray::count(v9) )
{
v15 = (GJRewardObject *)cocos2d::CCArray::objectAtIndex(v9, v14);
if ( GJRewardObject::isSpecialType(v15) )
{
if ( v13 )
{
v12 = *((CurrencySprite **)v15 + 13);
v97 = *((_DWORD *)v15 + 16);
goto LABEL_18;
}
v13 = *((CurrencySprite **)v15 + 13);
v96 = *((const char **)v15 + 16);
}
++v14;
}
v97 = 0;
v12 = nullptr;
}
else
{
v97 = 0;
v12 = nullptr;
v96 = nullptr;
v13 = nullptr;
}
LABEL_18:
v98 = CurrencySprite::rewardToSpriteType(v13, v10);
v17 = (FMODAudioEngine *)CurrencySprite::rewardToSpriteType(v12, v16);
v18 = *(_DWORD *)(*((_DWORD *)this + 136) + 60) == 3;
v101 = (int)v17;
if ( v11 )
{
v19 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v20 = (FMODAudioEngine *)v19;
std::string::__init(&v123, "reward01.ogg", 0xCu);
FMODAudioEngine::playEffect(v20, (int)&v123);
}
else if ( v98 == 16 || v17 == (FMODAudioEngine *)&word_10 )
{
v21 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v22 = (FMODAudioEngine *)v21;
std::string::__init(&v123, "gold01.ogg", 0xAu);
FMODAudioEngine::playEffect(v22, (int)&v123);
v23 = (FMODAudioEngine *)std::string::~string((int)&v123);
v24 = FMODAudioEngine::sharedEngine(v23);
v123 = 0;
v124 = 0;
v125 = 0;
v25 = (FMODAudioEngine *)v24;
std::string::__init(&v123, "goldKey.ogg", 0xBu);
FMODAudioEngine::playEffect(v25, (int)&v123);
}
else if ( v98 == 9 || v17 == (FMODAudioEngine *)byte_9 )
{
v26 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v27 = (FMODAudioEngine *)v26;
std::string::__init(&v123, "gold01.ogg", 0xAu);
FMODAudioEngine::playEffect(v27, (int)&v123);
v28 = (FMODAudioEngine *)std::string::~string((int)&v123);
v29 = FMODAudioEngine::sharedEngine(v28);
v123 = 0;
v124 = 0;
v125 = 0;
v30 = (FMODAudioEngine *)v29;
std::string::__init(&v123, "secretKey.ogg", 0xDu);
FMODAudioEngine::playEffect(v30, (int)&v123);
}
else if ( v98 )
{
v31 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v32 = (FMODAudioEngine *)v31;
std::string::__init(&v123, "magicExplosion.ogg", 0x12u);
FMODAudioEngine::playEffect(v32, (int)&v123);
v33 = (FMODAudioEngine *)std::string::~string((int)&v123);
v34 = FMODAudioEngine::sharedEngine(v33);
v123 = 0;
v124 = 0;
v125 = 0;
v35 = (FMODAudioEngine *)v34;
std::string::__init(&v123, "crystal01.ogg", 0xDu);
FMODAudioEngine::playEffect(v35, (int)&v123);
}
else if ( (int)v100 <= 0 )
{
if ( (int)RewardCount <= 0 )
goto LABEL_33;
v38 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v39 = (FMODAudioEngine *)v38;
std::string::__init(&v123, "gold01.ogg", 0xAu);
FMODAudioEngine::playEffect(v39, (int)&v123);
v40 = (FMODAudioEngine *)std::string::~string((int)&v123);
v41 = FMODAudioEngine::sharedEngine(v40);
v123 = 0;
v124 = 0;
v125 = 0;
v42 = (FMODAudioEngine *)v41;
std::string::__init(&v123, "magicExplosion.ogg", 0x12u);
FMODAudioEngine::playEffect(v42, (int)&v123);
}
else
{
v36 = FMODAudioEngine::sharedEngine(v17);
v123 = 0;
v124 = 0;
v125 = 0;
v37 = (FMODAudioEngine *)v36;
std::string::__init(&v123, "gold02.ogg", 0xAu);
FMODAudioEngine::playEffect(v37, (int)&v123);
}
std::string::~string((int)&v123);
LABEL_33:
v43 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 133) + 96))(*((_DWORD *)this + 133));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v43);
v44 = CurrencyRewardLayer::create(
(int)RewardCount,
0,
0,
(int)v100,
v98,
(int)v96,
v101,
v97,
(const cocos2d::CCPoint *)v122,
v18,
*((float *)this + 140),
1.0);
if ( v11 )
{
for ( i = 0; i < cocos2d::CCArray::count(v9); ++i )
{
v49 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v9, i);
if ( v49[13] == 9 )
{
LOWORD(v105) = -20561;
BYTE2(v105) = -81;
v102 = (CurrencySprite *)GJItemIcon::create(v49[14], v49[15], v105, 255, 0, 0, 1);
v50 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 133) + 96))(*((_DWORD *)this + 133));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v50);
CurrencyRewardLayer::createUnlockObject(*(float *)&v44, v102, (const cocos2d::CCPoint *)v122, 0.4);
}
}
}
v45 = (cocos2d::CCDirector *)(*(int (__fastcall **)(RewardUnlockLayer *, int, int))(*(_DWORD *)this + 232))(
this,
v44,
100);
*(_DWORD *)(v44 + 316) = (char *)this + 520;
cocos2d::CCDirector::sharedDirector(v45);
WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v107);
v47 = (int)v12 > 0;
if ( (int)v13 > 0 && (int)v12 > 0 && v13 == v12 )
{
v47 = 0;
v96 += v97;
}
v51 = (cocos2d::CCArray *)cocos2d::CCArray::create(WinSize);
v103 = (cocos2d::CCArray *)cocos2d::CCArray::create(v51);
if ( v11 )
{
for ( j = 0; j < cocos2d::CCArray::count(v9); ++j )
{
v55 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v9, j);
if ( *((_DWORD *)v55 + 13) == 9 )
{
cocos2d::CCArray::addObject(v103, v55);
v57 = cocos2d::CCInteger::create(nullptr, v56);
cocos2d::CCArray::addObject(v51, v57);
}
}
}
if ( (int)RewardCount > 0 )
{
v53 = cocos2d::CCInteger::create((cocos2d::CCInteger *)((char *)&dword_0 + 1), v52);
cocos2d::CCArray::addObject(v51, v53);
}
if ( (int)v100 > 0 )
{
v58 = cocos2d::CCInteger::create((cocos2d::CCInteger *)((char *)&dword_0 + 3), v52);
cocos2d::CCArray::addObject(v51, v58);
}
if ( (int)v13 > 0 )
{
v59 = cocos2d::CCInteger::create((cocos2d::CCInteger *)((char *)&stru_270C.st_name + 2), v52);
cocos2d::CCArray::addObject(v51, v59);
}
if ( v47 )
{
v60 = cocos2d::CCInteger::create((cocos2d::CCInteger *)((char *)&stru_270C.st_name + 3), v52);
cocos2d::CCArray::addObject(v51, v60);
}
v61 = cocos2d::CCArray::count(v51);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v115, v107 * 0.5, (float)(v108 * 0.5) + 68.0);
if ( v61 == 1 )
{
v62 = v109;
v63 = &v115;
}
else
{
if ( v61 == 2 )
{
v115 = v115 - 45.0;
cocos2d::CCPoint::operator=(v109, &v115);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 90.0, 0.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
v62 = v110;
}
else if ( v61 == 3 )
{
v115 = v115 - 75.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -10.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v109, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 75.0, 10.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v110, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 150.0, -10.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
v62 = v111;
}
else
{
v116 = v116 - 5.0;
v115 = v115 - 109.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -15.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v109, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 73.0, 15.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v110, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 146.0, 15.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v111, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 219.0, -15.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v112, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 219.0, -70.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
cocos2d::CCPoint::operator=(v113, v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -70.0);
cocos2d::CCPoint::operator+(v122, &v115, v121);
v62 = v114;
}
v63 = (float *)v122;
}
v64 = 0;
cocos2d::CCPoint::operator=(v62, v63);
v66 = 0;
while ( v64 < v61 )
{
v69 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v51, v64) + 52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121);
switch ( v64 )
{
case 0:
v67 = v109;
break;
case 1:
v67 = v110;
break;
case 2:
v67 = v111;
break;
case 3:
v67 = v112;
break;
case 4:
v67 = v113;
break;
default:
v67 = v114;
break;
}
cocos2d::CCPoint::operator=(v121, v67);
v68 = (float)((float)v64 * 0.2) + 0.5;
switch ( v69 )
{
case 1:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)v121);
RewardUnlockLayer::playLabelEffect(
(int)this,
RewardCount,
v69,
nullptr,
(int)v122,
COERCE_COCOS2D_CCDELAYTIME_((float)((float)v64 * 0.2) + 0.5));
break;
case 3:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)v121);
RewardUnlockLayer::playLabelEffect(
(int)this,
v100,
v69,
nullptr,
(int)v122,
COERCE_COCOS2D_CCDELAYTIME_((float)((float)v64 * 0.2) + 0.5));
break;
case 9998:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)v121);
RewardUnlockLayer::playLabelEffect(
(int)this,
v96,
v98,
nullptr,
(int)v122,
COERCE_COCOS2D_CCDELAYTIME_((float)((float)v64 * 0.2) + 0.5));
break;
case 9999:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)v121);
RewardUnlockLayer::playLabelEffect(
(int)this,
(const char *)v97,
v101,
nullptr,
(int)v122,
COERCE_COCOS2D_CCDELAYTIME_((float)((float)v64 * 0.2) + 0.5));
break;
case 0:
v70 = cocos2d::CCArray::objectAtIndex(v103, v66);
LOWORD(v106) = -20561;
BYTE2(v106) = -81;
++v66;
v104 = GJItemIcon::create(*(_DWORD *)(v70 + 56), *(_DWORD *)(v70 + 60), v106, 255, 0, 0, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)v121);
if ( v61 < 2 )
v68 = 2.2;
RewardUnlockLayer::playLabelEffect(
(int)this,
(_BYTE *)&dword_0 + 1,
0,
(const cocos2d::CCPoint *)v104,
(int)v122,
(cocos2d::CCDelayTime *)LODWORD(v68));
break;
}
++v64;
}
if ( *(int *)(*((_DWORD *)this + 136) + 60) > 5 )
{
v71 = 0;
v72 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 115) + 96))(*((_DWORD *)this + 115));
v73 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, v72);
v74 = *(_DWORD *)(*((_DWORD *)this + 136) + 60);
v76 = (cocos2d::CCArray *)cocos2d::CCArray::create(v73);
while ( v71 < v74 )
{
v77 = rand();
++v71;
v78 = (float)((float)v77 * 4.6566e-10) + (float)((float)v77 * 4.6566e-10);
v79 = rand();
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v121,
(float)(v78 - 1.0) * (float)((float)((float)v74 * 0.1) + 3.0),
(float)((float)((float)((float)v79 * 4.6566e-10) + (float)((float)v79 * 4.6566e-10)) - 1.0)
* (float)((float)((float)v74 * 0.1) + 3.0));
cocos2d::CCPoint::operator+(v122, v117, v121);
v81 = (cocos2d::CCObject *)cocos2d::CCMoveTo::create(nullptr, COERCE_FLOAT(v122), v80);
cocos2d::CCArray::addObject(v76, v81);
v83 = (cocos2d::CCObject *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3CF5C28F, v82);
cocos2d::CCArray::addObject(v76, v83);
}
v84 = (cocos2d::CCObject *)cocos2d::CCMoveTo::create(nullptr, COERCE_FLOAT(v117), v75);
cocos2d::CCArray::addObject(v76, v84);
v86 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v76, v85);
cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 115), v86);
if ( *(_DWORD *)(*((_DWORD *)this + 136) + 60) == 8 )
{
v87 = v107;
v88 = vcvts_n_f32_s32(rand(), 0x1Fu);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v118,
(float)(v87 * 0.5) + (float)((float)((float)(v88 + v88) - 1.0) * 50.0),
v108 + 5.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, v107 * 0.5, v108 * 0.5);
cocos2d::CCPoint::operator-(v120, v119, v118);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, (const cocos2d::CCPoint *)v120);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (const cocos2d::CCPoint *)&unk_D2CA50);
v89 = cocos2d::CCLightning::lightningWithStrikePoint(
(const cocos2d::CCPoint *)v121,
(const cocos2d::CCPoint *)v122,
1056964608);
(*(void (__fastcall **)(cocos2d::CCLightning *, _BYTE *))(*(_DWORD *)v89 + 92))(v89, v118);
v90 = *(void (__fastcall **)(cocos2d::CCLightning *, _DWORD *))(*(_DWORD *)v89 + 488);
LOWORD(v122[0]) = 255;
BYTE2(v122[0]) = -1;
v90(v89, v122);
*((float *)v89 + 76) = 5.0;
*((_BYTE *)v89 + 308) = 1;
*((_BYTE *)v89 + 309) = 1;
(*(void (__fastcall **)(_DWORD, cocos2d::CCLightning *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v89,
3);
}
}
v91 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3FC00000, v65);
v122[1] = 0;
v122[0] = RewardUnlockLayer::showCloseButton;
v92 = v91;
v93 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, RewardUnlockLayer::showCloseButton, 0);
v94 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v92, v93, 0);
return cocos2d::CCNode::runAction(this, v94);
}