//
// GJBaseGameLayer::triggerGravityChange from 0x470cbc to 0x470d06 (74 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x3edcc2
//
// 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 GJBaseGameLayer::triggerGravityChange(GJBaseGameLayer *a1, EffectGameObject *a2, int a3)
{
PlayerObject *m_player1; // r3
float m_gravityValue; // r2
if ( a2->m_followCPP )
{
if ( a3 == 1 )
{
m_player1 = a1->m_player1;
m_gravityValue = a2->m_gravityValue;
LABEL_10:
m_player1->m_gravityMod = m_gravityValue;
return;
}
if ( a3 != 2 )
return;
LABEL_9:
m_player1 = a1->m_player2;
m_gravityValue = a2->m_gravityValue;
goto LABEL_10;
}
if ( !a2->m_targetPlayer2 )
a1->m_player1->m_gravityMod = a2->m_gravityValue;
if ( !a2->m_targetPlayer1 )
goto LABEL_9;
}