//
// GJBaseGameLayer::getBumpMod from 0x99f0c0 to 0x99f170 (176 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x9c2410
// > ??> @ 0x8cce0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:06 +0000
//
float __fastcall GJBaseGameLayer::getBumpMod(GJBaseGameLayer *this, PlayerObject *a2, int a3)
{
if ( a3 == 9 )
{
if ( *((_BYTE *)a2 + 2417) )
{
return 0.35;
}
else if ( *((_BYTE *)a2 + 2418) )
{
return 0.4;
}
else if ( *((_BYTE *)a2 + 2419) || *((_BYTE *)a2 + 2422) )
{
return 0.7;
}
else
{
return 0.65;
}
}
else if ( a3 == 34 )
{
if ( *((_BYTE *)a2 + 2417) )
{
if ( *((float *)a2 + 618) < 1.0 )
return 0.95;
else
return 0.63;
}
else if ( *((_BYTE *)a2 + 2418) )
{
if ( *((float *)a2 + 618) < 1.0 )
return 0.98;
else
return 0.6;
}
else
{
return 1.25;
}
}
else
{
return 1.0;
}
}