// // GJBaseGameLayer::activateProgressTrigger from 0x100107a00 to 0x100107acf (207 bytes) // // 1 xrefs: // > EffectGameObject::triggerObject @ 0x10019a52d // // This function is hookable on this platform (idp: pc, 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:21:32 +0000 // __int64 __fastcall GJBaseGameLayer::activateProgressTrigger(__int64 a1, __int64 a2) { __int64 result; // rax __int64 v5; // rdi int v6; // r15d int v7; // eax int v8; // ecx __int64 v9; // rsi unsigned int v10; // eax unsigned int v11; // r14d unsigned int v12; // eax if ( *(_BYTE *)(a1 + 12238) == 1 ) { v5 = *(_QWORD *)(a1 + 2152); v6 = *(_DWORD *)(v5 + 832); if ( *(_BYTE *)(a2 + 1845) == 1 ) { v7 = GJEffectManager::countForItem(v5, *(unsigned int *)(a2 + 1668)); v5 = *(_QWORD *)(a1 + 2152); } else { v7 = *(_DWORD *)(a2 + 1840); } v8 = 0; if ( v7 > 0 ) v8 = v7; v9 = 99; if ( v8 < 99 ) v9 = (unsigned int)v8; v10 = v9 + v6; if ( v6 > (int)v9 ) v9 = (unsigned int)v6; if ( *(_BYTE *)(a2 + 1844) ) v9 = v10; result = sub_1002D5530(v5, v9); v11 = *(_DWORD *)(a2 + 1680); if ( (int)v11 > 0 ) { GJEffectManager::updateCountForItem( *(_QWORD *)(a1 + 2152), v11, *(unsigned int *)(*(_QWORD *)(a1 + 2152) + 832LL)); v12 = GJEffectManager::countForItem(*(_QWORD *)(a1 + 2152), v11); return GJBaseGameLayer::updateCounters(a1, v11, v12); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source