//
// GJBaseGameLayer::getItemValue from 0x1001fb9f4 to 0x1001fba70 (124 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbcc
// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbe0
// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbf4
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbef4
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbfbc
//
// 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
//
double __fastcall GJBaseGameLayer::getItemValue(GJBaseGameLayer *a1, int a2, int a3)
{
double result; // d0
result = 0.0;
if ( a2 <= 2 )
{
if ( a2 == 1 )
{
return (double)GJEffectManager::countForItem(a1->m_effectManager, a3);
}
else if ( a2 == 2 )
{
return GJEffectManager::timeForItem(a1->m_effectManager, a3);
}
}
else
{
switch ( a2 )
{
case 3:
return (double)a1->m_gameState.m_points;
case 4:
return a1->m_timePlayed;
case 5:
return (double)a1->m_attempts;
}
}
return result;
}