// // GJBaseGameLayer::getItemValue from 0x4760d8 to 0x476136 (94 bytes) // // 5 xrefs: // > GJBaseGameLayer::activateItemCompareTrigger @ 0x4762b4 // > GJBaseGameLayer::activateItemCompareTrigger @ 0x476304 // > GJBaseGameLayer::activateItemEditTrigger @ 0x48e738 // > GJBaseGameLayer::activateItemEditTrigger @ 0x48e746 // > GJBaseGameLayer::activateItemEditTrigger @ 0x48e754 // // 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 GJBaseGameLayer::getItemValue(GJBaseGameLayer *a1, int a2, int a3) { double v3; // d7 int m_points; // r3 switch ( a2 ) { case 1: return (double)GJEffectManager::countForItem(a1->m_effectManager, a3); case 2: return GJEffectManager::timeForItem(a1->m_effectManager, a3); case 3: m_points = a1->m_gameState.m_points; goto LABEL_7; case 4: return a1->m_timePlayed; case 5: m_points = a1->m_attempts; LABEL_7: v3 = (double)m_points; break; default: v3 = 0.0; break; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source