// // GJBaseGameLayer::addPickupTrigger from 0x9ec9b8 to 0x9eca9c (228 bytes) // // 2 xrefs: // > CountTriggerGameObject::triggerObject @ 0x89918c // > @ 0x5ffc8 // // 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:59:03 +0000 // __int64 __fastcall GJBaseGameLayer::addPickupTrigger(GJEffectManager **this, CountTriggerGameObject *a2) { int v4; // w0 int v5; // w19 int v6; // w0 int v8; // w0 float v9; // s1 int v10; // w0 v4 = *((_DWORD *)a2 + 461); v5 = *((_DWORD *)a2 + 420); if ( v4 == 1 ) { v10 = GJEffectManager::countForItem(*(this + 269), v5); GJEffectManager::updateCountForItem(*(this + 269), v5, llroundf((float)v10 * *((float *)a2 + 463))); } else if ( v4 == 2 ) { v8 = GJEffectManager::countForItem(*(this + 269), v5); v9 = *((float *)a2 + 463); if ( v9 != 0.0 ) GJEffectManager::updateCountForItem(*(this + 269), v5, llroundf((float)v8 / v9)); } else if ( *((_BYTE *)a2 + 1849) ) { GJEffectManager::updateCountForItem(*(this + 269), v5, *((_DWORD *)a2 + 460)); } else { GJEffectManager::addCountToItem(*(this + 269), v5, *((_DWORD *)a2 + 460)); } v6 = GJEffectManager::countForItem(*(this + 269), v5); return GJBaseGameLayer::updateCounters((GJBaseGameLayer *)this, v5, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source