//
// GJBaseGameLayer::triggerGravityChange from 0x10013c810 to 0x10013c879 (105 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x1001b9b97
//
// 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 GJBaseGameLayer::triggerGravityChange(GJBaseGameLayer *a1, EffectGameObject *a2, int a3)
{
__int64 v3; // rax
if ( a2->m_followCPP )
{
if ( a3 == 1 )
{
v3 = 3232;
goto LABEL_10;
}
if ( a3 == 2 )
{
v3 = 3240;
LABEL_10:
HIDWORD((*(GJBaseGameLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v3))[1].updateDebugDraw) = LODWORD(a2->m_gravityValue);
}
}
else
{
if ( !a2->m_targetPlayer2 )
a1->m_player1->m_gravityMod = a2->m_gravityValue;
v3 = 3240;
if ( !a2->m_targetPlayer1 )
goto LABEL_10;
}
}