//
// EffectGameObject::triggerObject from 0x100385310 to 0x100386464 (4436 bytes)
//
// 31 xrefs:
// > RandTriggerGameObject::triggerObject @ 0x100389aa4
// > CountTriggerGameObject::triggerObject @ 0x100390a00
// > TransformTriggerGameObject::triggerObject @ 0x1003914f8
// > CameraTriggerGameObject::triggerObject @ 0x100392c14
// > TimerTriggerGameObject::triggerObject @ 0x10039420c
// > ItemTriggerGameObject::triggerObject @ 0x100394d44
// > ??> @ 0x1007f5e28
// > ??> @ 0x1007f6620
// > ??> @ 0x1007f6e18
// > ??> @ 0x1007f7610
// > ??> @ 0x1007fa658
// > ??> @ 0x1007fae68
// > ??> @ 0x1007fb678
// > ??> @ 0x1007fbe88
// > ??> @ 0x1007fc698
// > ??> @ 0x1007fcea8
// > ??> @ 0x1007fd6b8
// > ??> @ 0x1007fdec8
// > ??> @ 0x1007fe6d8
// > ??> @ 0x1007feee8
// > ??> @ 0x1007ff710
// > ??> @ 0x100800fb8
// > ??> @ 0x1008017e0
// > ??> @ 0x100804048
// > ??> @ 0x100806088
// > ??> @ 0x100806898
// > ??> @ 0x1008078b8
// > ??> @ 0x1008080c8
// > ??> @ 0x1008090e8
// > ??> @ 0x1008098f8
// > ??> @ 0x10080a108
//
// 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 EffectGameObject::triggerObject(
EffectGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
__int64 m_targetGroupID; // x22
_BOOL8 m_activateGroup; // x23
int m_collectiblePoints; // w1
int m_objectID; // w8
PlayLayer *v11; // x0
float v12; // s0
__int64 v13; // x8
int v14; // w22
float v15; // s0
PlayLayer *m_playLayer; // x0
GJEffectManager *m_effectManager; // x20
int v18; // w22
bool v19; // w23
__int64 v20; // x22
PlayLayer *v21; // x0
PlayLayer *v22; // x0
GJEffectManager *v23; // x20
int v24; // w22
bool m_touchHoldMode; // w23
TouchTriggerType m_touchToggleMode; // w24
TouchTriggerControl m_touchPlayerMode; // w25
bool m_isDualMode; // w26
PulseEffectType v29; // w3
GJEffectManager *v30; // x20
int v31; // w23
bool m_triggerOnExit; // w22
bool v33; // w24
float m_duration; // s0
float m_shakeStrength; // s1
__int64 v36; // x22
int v37; // w1
int m_itemID; // w22
__int64 v39; // x8
GJEffectManager *v40; // x23
int v41; // w24
int m_itemID2; // w25
bool v43; // w26
bool v44; // w27
GJEffectManager *v45; // x20
int v46; // w22
int v47; // w23
bool v48; // w24
bool v49; // w25
__int64 v50; // [xsp+0h] [xbp-80h]
__int64 v51; // [xsp+0h] [xbp-80h]
std::vector __p; // [xsp+18h] [xbp-68h] BYREF
if ( a1->m_objectType == Collectible )
{
if ( a1->m_collectibleIsPickupItem )
GJBaseGameLayer::collectedObject(a2, a1);
if ( a1->m_collectibleIsToggleTrigger )
{
m_targetGroupID = (unsigned int)a1->m_targetGroupID;
m_activateGroup = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
((void (__fastcall *)(GJBaseGameLayer *, __int64, _BOOL8, std::vector *, _QWORD, _QWORD))a2->toggleGroupTriggered)(
a2,
m_targetGroupID,
m_activateGroup,
&__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
}
m_collectiblePoints = a1->m_collectiblePoints;
if ( m_collectiblePoints )
GJBaseGameLayer::addPoints(a2, m_collectiblePoints);
return;
}
m_objectID = a1->m_objectID;
if ( m_objectID <= 2899 )
{
if ( m_objectID > 1005 )
{
if ( m_objectID <= 1813 )
{
if ( m_objectID <= 1346 )
{
if ( m_objectID > 1328 )
{
switch ( m_objectID )
{
case 1329:
LABEL_147:
v20 = (unsigned int)a1->m_targetGroupID;
if ( (int)v20 < 1 )
return;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
goto LABEL_217;
case 1334:
LABEL_93:
v15 = 0.9;
if ( m_objectID > 202 )
{
if ( m_objectID == 203 )
v15 = 1.3;
else
v15 = 1.6;
}
else if ( m_objectID == 200 )
{
v15 = 0.7;
}
else if ( m_objectID == 202 )
{
v15 = 1.1;
}
GJBaseGameLayer::updateTimeMod(a2, v15, 0, a1->m_hasNoEffects);
GameObject::playShineEffect(a1);
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->addToSpeedObjects)(a2, a1);
return;
case 1346:
GJBaseGameLayer::triggerRotateCommand(a2, (EnhancedTriggerObject *)a1);
break;
}
}
else
{
switch ( m_objectID )
{
case 1006:
if ( a1->m_pulseMode )
v29 = Hsv;
else
v29 = 2;
GJEffectManager::runPulseEffect(
a2->m_effectManager,
a1->m_targetGroupID,
a1->m_pulseTargetType == 1,
a1->m_fadeInDuration,
a1->m_holdDuration,
a1->m_fadeOutDuration,
v29,
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_triggerTargetColor.r
| (a1->m_triggerTargetColor.b << 16)),
a1->m_hsvValue,
a1->m_copyColorID,
*(_DWORD *)&a1->m_pulseMainOnly,
SBYTE1(*(_DWORD *)&a1->m_pulseMainOnly),
SBYTE2(*(_DWORD *)&a1->m_pulseMainOnly),
SHIBYTE(*(_DWORD *)&a1->m_pulseMainOnly),
a1->m_uniqueID,
a1->m_controlID);
break;
case 1007:
GJEffectManager::runOpacityActionOnGroup(
a2->m_effectManager,
a1->m_targetGroupID,
a1->m_duration,
a1->m_opacity,
a1->m_uniqueID,
a1->m_controlID);
break;
case 1049:
GJBaseGameLayer::toggleGroup(a2, a1->m_targetGroupID, a1->m_activateGroup);
break;
}
}
}
else if ( m_objectID <= 1594 )
{
switch ( m_objectID )
{
case 1347:
GJEffectManager::createFollowCommand(
a2->m_effectManager,
a1->m_followXMod,
a1->m_followYMod,
a1->m_duration,
a1->m_targetGroupID,
a1->m_centerGroupID,
a1->m_uniqueID,
a1->m_controlID);
break;
case 1520:
m_duration = a1->m_duration;
if ( m_duration > 0.0 )
{
m_shakeStrength = a1->m_shakeStrength;
if ( m_shakeStrength > 0.0 )
GJBaseGameLayer::shakeCamera(a2, m_duration, m_shakeStrength, a1->m_shakeInterval);
}
break;
case 1585:
GJBaseGameLayer::playAnimationCommand(a2, a1->m_animationID, a1->m_targetGroupID);
break;
}
}
else if ( m_objectID > 1612 )
{
if ( m_objectID == 1613 )
{
GJBaseGameLayer::togglePlayerVisibility(a2, 1);
return;
}
if ( m_objectID == 1812 && !a1->m_editorEnabled )
{
m_effectManager = GameManager::sharedState()->m_playLayer->m_effectManager;
v18 = a1->m_targetGroupID;
v19 = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::runDeathTrigger(m_effectManager, v18, v19, &__p, a1->m_uniqueID, a1->m_controlID);
goto LABEL_218;
}
}
else
{
if ( m_objectID == 1595 )
{
v23 = a2->m_effectManager;
v24 = a1->m_targetGroupID;
m_touchHoldMode = a1->m_touchHoldMode;
m_touchToggleMode = a1->m_touchToggleMode;
m_touchPlayerMode = a1->m_touchPlayerMode;
m_isDualMode = a1->m_isDualMode;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::runTouchTriggerCommand(
v23,
v24,
m_touchHoldMode,
m_touchToggleMode,
m_touchPlayerMode,
m_isDualMode,
&__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_218;
}
if ( m_objectID == 1612 )
GJBaseGameLayer::togglePlayerVisibility(a2, 0);
}
}
else if ( m_objectID > 1916 )
{
if ( m_objectID <= 1933 )
{
switch ( m_objectID )
{
case 1917:
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->reverseDirection)(a2, a1);
break;
case 1931:
((void (__fastcall *)(GJBaseGameLayer *, _QWORD, bool, bool))a2->activateEndTrigger)(
a2,
(unsigned int)a1->m_targetGroupID,
a1->m_endReversed,
a1->m_lockToPlayerY);
break;
case 1932:
GJBaseGameLayer::activatePlayerControlTrigger(a2, (PlayerControlGameObject *)a1);
break;
}
}
else if ( m_objectID > 2065 )
{
if ( m_objectID == 2066 )
{
GJBaseGameLayer::triggerGravityChange(a2, a1, a3);
}
else if ( m_objectID == 2899 )
{
GJBaseGameLayer::processOptionsTrigger(a2, (GameOptionsTrigger *)a1);
}
}
else if ( m_objectID == 1934 )
{
GJBaseGameLayer::activateSongTrigger(a2, (SongTriggerGameObject *)a1);
}
else if ( m_objectID == 1935 )
{
GJBaseGameLayer::queueTimeWarp(a2, a1->m_timeWarpTimeMod);
}
}
else if ( m_objectID <= 1818 )
{
if ( m_objectID == 1814 )
{
GJEffectManager::createPlayerFollowCommand(
a2->m_effectManager,
a1->m_followYSpeed,
a1->m_followYDelay,
a1->m_followYOffset,
a1->m_followYMaxSpeed,
a1->m_duration,
a1->m_targetGroupID,
a1->m_uniqueID,
a1->m_controlID);
return;
}
if ( m_objectID == 1815 )
{
if ( a1->m_followCPP )
{
v30 = a2->m_effectManager;
v31 = a1->m_targetGroupID;
m_triggerOnExit = a1->m_triggerOnExit;
v33 = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::registerCollisionTrigger(
v30,
v31,
10000,
10001,
m_triggerOnExit,
v33,
&__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_218;
}
if ( a1->m_targetPlayer1 )
{
m_itemID = 10000;
}
else if ( a1->m_targetPlayer2 )
{
m_itemID = 10001;
}
else
{
m_itemID = a1->m_itemID;
}
v40 = a2->m_effectManager;
v41 = a1->m_targetGroupID;
m_itemID2 = a1->m_itemID2;
v43 = a1->m_triggerOnExit;
v44 = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::registerCollisionTrigger(
v40,
v41,
m_itemID,
m_itemID2,
v43,
v44,
&__p,
a1->m_uniqueID,
a1->m_controlID);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
if ( a1->m_targetPlayer1 && a1->m_targetPlayer2 )
{
v45 = a2->m_effectManager;
v46 = a1->m_targetGroupID;
v47 = a1->m_itemID2;
v48 = a1->m_triggerOnExit;
v49 = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::registerCollisionTrigger(
v45,
v46,
10001,
v47,
v48,
v49,
&__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_218;
}
}
else if ( m_objectID == 1818 && !a1->m_editorEnabled )
{
m_playLayer = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleBGEffectVisibility(m_playLayer, 1);
}
}
else if ( m_objectID > 1912 )
{
if ( m_objectID == 1913 )
{
GJBaseGameLayer::updateZoom(
a2,
a1->m_zoomValue,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_uniqueID,
a1->m_controlID);
return;
}
if ( m_objectID == 1915 )
goto LABEL_71;
}
else
{
if ( m_objectID != 1819 )
{
if ( m_objectID != 1912 )
return;
v12 = GameToolbox::fast_rand_0_1();
v13 = 1464;
if ( (float)(v12 * 100.0) > a1->m_duration )
v13 = 1468;
v14 = *(_DWORD *)((char *)&a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v13);
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJBaseGameLayer::spawnGroupTriggered(a2, v14, 0.0, 0, &__p, a1->m_uniqueID, a1->m_controlID);
goto LABEL_218;
}
if ( !a1->m_editorEnabled )
{
v22 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleBGEffectVisibility(v22, 0);
}
}
}
else
{
if ( m_objectID <= 104 )
{
if ( m_objectID > 31 )
{
if ( (unsigned int)(m_objectID - 55) >= 5 )
{
if ( m_objectID == 32 )
{
if ( !a1->m_editorEnabled )
{
v21 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleGhostEffect(v21, 1);
}
}
else if ( m_objectID == 33 && !a1->m_editorEnabled )
{
v11 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleGhostEffect(v11, 0);
}
return;
}
LABEL_71:
GJBaseGameLayer::updateActiveEnterEffect(a2, (EnterEffectObject *)a1);
return;
}
if ( (unsigned int)(m_objectID - 22) < 7 )
goto LABEL_71;
if ( (unsigned int)(m_objectID - 29) >= 2 )
return;
goto LABEL_120;
}
if ( m_objectID <= 743 )
{
if ( (unsigned int)(m_objectID - 200) >= 4 )
{
if ( m_objectID != 105 )
{
if ( m_objectID != 142 )
return;
goto LABEL_147;
}
goto LABEL_120;
}
goto LABEL_93;
}
if ( m_objectID <= 900 )
{
if ( (unsigned int)(m_objectID - 899) >= 2 && m_objectID != 744 )
return;
goto LABEL_120;
}
if ( m_objectID == 901 )
{
GJBaseGameLayer::triggerMoveCommand(a2, a1);
return;
}
if ( m_objectID == 915 )
{
LABEL_120:
LODWORD(v50) = a1->m_uniqueID;
HIDWORD(v50) = a1->m_controlID;
((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, _QWORD, bool, cocos2d::ccHSVValue *, _QWORD, bool, EffectGameObject *, float, float, __int64))a2->updateColor)(
a2,
&a1->m_triggerTargetColor,
(unsigned int)a1->m_targetColor,
a1->m_usesBlending,
&a1->m_hsvValue,
(unsigned int)a1->m_copyColorID,
a1->m_copyOpacity,
a1,
a1->m_duration,
a1->m_opacity,
v50);
if ( a1->m_objectID == 29 && a1->m_tintGround )
{
LODWORD(v51) = a1->m_uniqueID;
HIDWORD(v51) = a1->m_controlID;
((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, __int64, _QWORD, cocos2d::ccHSVValue *, _QWORD, bool, EffectGameObject *, float, float, __int64))a2->updateColor)(
a2,
&a1->m_triggerTargetColor,
1001,
0,
&a1->m_hsvValue,
(unsigned int)a1->m_copyColorID,
a1->m_copyOpacity,
a1,
a1->m_duration,
1.0,
v51);
}
return;
}
}
return;
}
if ( m_objectID <= 3005 )
{
if ( (unsigned int)(m_objectID - 2901) <= 0x17 )
{
if ( ((1 << (m_objectID - 85)) & 0xFDFF58) != 0 )
{
GJBaseGameLayer::triggerShaderCommand(a2, (ShaderGameObject *)a1);
return;
}
if ( m_objectID == 2901 )
{
if ( a1->m_moveTargetMode == YOnly
|| (GJBaseGameLayer::updateGameplayOffsetX(a2, (int)a1->m_moveOffset.x, a1->m_lockToPlayerX),
a1->m_moveTargetMode != XOnly) )
{
GJBaseGameLayer::updateGameplayOffsetY(a2, (int)a1->m_moveOffset.y, a1->m_lockToPlayerY);
}
return;
}
if ( m_objectID == 2903 )
{
GJBaseGameLayer::triggerGradientCommand(a2, (GradientTriggerObject *)a1);
return;
}
}
if ( m_objectID == 2900 )
{
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->rotateGameplay)(a2, a1);
}
else if ( m_objectID == 2999 )
{
GJBaseGameLayer::updateMGOffsetY(
a2,
a1->m_moveOffset.y,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_uniqueID,
a1->m_controlID);
}
return;
}
if ( m_objectID <= 3021 )
{
if ( (unsigned int)(m_objectID - 3006) < 0xA )
{
GJBaseGameLayer::triggerAreaEffect(a2, (EnterEffectObject *)a1);
return;
}
if ( (unsigned int)(m_objectID - 3017) >= 5 )
{
GJBaseGameLayer::triggerAdvancedFollowCommand(a2, (AdvancedFollowTriggerObject *)a1);
return;
}
goto LABEL_71;
}
if ( m_objectID <= 3607 )
{
if ( m_objectID > 3601 )
{
if ( m_objectID > 3604 )
{
if ( m_objectID == 3605 )
{
GJBaseGameLayer::activateSongEditTrigger(a2, (SongTriggerGameObject *)a1);
}
else if ( m_objectID == 3606 )
{
GJBaseGameLayer::updateBGArtSpeed(a2, a1->m_moveModX, a1->m_moveModY);
}
}
else if ( m_objectID == 3602 )
{
GJBaseGameLayer::activateSFXTrigger(a2, (SFXTriggerGameObject *)a1);
}
else if ( m_objectID == 3603 )
{
GJBaseGameLayer::activateSFXEditTrigger(a2, (SFXTriggerGameObject *)a1);
}
}
else
{
if ( m_objectID <= 3023 )
{
if ( m_objectID == 3022 )
GJBaseGameLayer::teleportPlayer(a2, (TeleportPortalObject *)a1, nullptr);
else
GJBaseGameLayer::stopCustomEnterEffect_1(a2, (EnterEffectObject *)a1);
return;
}
if ( m_objectID == 3024 )
{
GJBaseGameLayer::controlAreaEffectWithID(a2, a1->m_targetGroupID, -1, Stop);
return;
}
if ( m_objectID == 3033 )
{
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJBaseGameLayer::playKeyframeAnimation(a2, (KeyframeAnimTriggerObject *)a1, &__p);
goto LABEL_218;
}
}
return;
}
if ( m_objectID > 3639 )
{
if ( (unsigned int)(m_objectID - 3660) < 2 )
{
GJBaseGameLayer::triggerAdvancedFollowEditCommand(a2, (AdvancedFollowEditObject *)a1);
}
else if ( m_objectID == 3640 )
{
v36 = (unsigned int)a1->m_targetGroupID;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, std::vector *, _QWORD, _QWORD, double))a2->spawnGroup)(
a2,
v36,
0,
&__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
0.0);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
GJBaseGameLayer::registerStateObject(a2, a1);
}
else if ( m_objectID == 3655 )
{
GJBaseGameLayer::activateObjectControlTrigger(a2, (ObjectControlGameObject *)a1);
}
return;
}
if ( m_objectID > 3611 )
{
if ( m_objectID == 3612 )
{
GJBaseGameLayer::updateMGArtSpeed(a2, a1->m_moveModX, a1->m_moveModY);
}
else if ( m_objectID == 3618 )
{
GJBaseGameLayer::activateResetTrigger(a2, a1);
}
return;
}
if ( m_objectID == 3608 )
{
GJBaseGameLayer::spawnParticleTrigger_1(a2, (SpawnParticleGameObject *)a1);
return;
}
if ( m_objectID == 3609 )
{
if ( a1->m_followCPP )
{
if ( !GJBaseGameLayer::checkCollision(a2, 10000, 10001) )
{
LABEL_212:
v39 = 1468;
LABEL_213:
v20 = *(unsigned int *)((char *)&a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v39);
if ( *(&a1->m_unk6f5 + 1) )
{
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
}
else
{
memset(&__p, 0, sizeof(__p));
}
LABEL_217:
((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, std::vector *, _QWORD, _QWORD, double))a2->spawnGroup)(
a2,
v20,
0,
&__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
0.0);
LABEL_218:
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
return;
}
}
else
{
if ( a1->m_targetPlayer1 )
{
v37 = 10000;
}
else if ( a1->m_targetPlayer2 )
{
v37 = 10001;
}
else
{
v37 = a1->m_itemID;
}
if ( !GJBaseGameLayer::checkCollision(a2, v37, a1->m_itemID2)
&& (!a1->m_targetPlayer1 || !a1->m_targetPlayer2 || !GJBaseGameLayer::checkCollision(a2, 10001, a1->m_itemID2)) )
{
goto LABEL_212;
}
}
v39 = 1464;
goto LABEL_213;
}
}