// // RandTriggerGameObject::getTotalChance from 0x4e8e38 to 0x4e8e50 (24 bytes) // // 3 xrefs: // > RandTriggerGameObject::getRandomGroupID @ 0x4e8e58 // > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x65bb46 // > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x65bb7e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:07 +0000 // int __fastcall RandTriggerGameObject::getTotalChance(RandTriggerGameObject *this) { int v1; // r2 int v2; // r3 int result; // r0 int v4; // r1 v1 = *((_DWORD *)this + 413); v2 = *((_DWORD *)this + 412); result = 0; while ( v2 != v1 ) { v4 = *(_DWORD *)(v2 + 8); v2 += 16; result += v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source