//
// GJBaseGameLayer::collectedObject from 0x1001fb698 to 0x1001fb6f0 (88 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10038535c
//
// 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::collectedObject(GJBaseGameLayer *a1, EffectGameObject *a2)
{
_BOOL4 m_subtractCount; // w8
GJEffectManager *m_effectManager; // x0
int m_itemID; // w1
int v7; // w2
int v8; // w19
int v9; // w2
m_subtractCount = a2->m_subtractCount;
m_effectManager = a1->m_effectManager;
m_itemID = a2->m_itemID;
if ( m_subtractCount )
v7 = -1;
else
v7 = 1;
GJEffectManager::addCountToItem(m_effectManager, m_itemID, v7);
v8 = a2->m_itemID;
v9 = GJEffectManager::countForItem(a1->m_effectManager, v8);
GJBaseGameLayer::updateCounters(a1, v8, v9);
}