// // SetupRandAdvTriggerPopup::addChance from 0x9b0658 to 0x9b06f4 (156 bytes) // // 2 xrefs: // > SetupRandAdvTriggerPopup::onAddChance @ 0x9b0864 // > @ 0x69990 // // 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 SetupRandAdvTriggerPopup::addChance(SetupRandAdvTriggerPopup *a1, int a2, int a3) { RandTriggerGameObject *m_gameObject; // x1 unsigned int v7; // w19 RandTriggerGameObject *v8; // x0 bool v9; // cf unsigned int v10; // w1 m_gameObject = (RandTriggerGameObject *)a1->m_gameObject; a1->m_performedAction = 1; if ( m_gameObject ) { SetupRandAdvTriggerPopup::addChanceToObject(a1, m_gameObject, a2, a3); SetupRandAdvTriggerPopup::updateGroupIDButtons(a1); } else { v7 = 0; while ( 1 ) { v9 = v7 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects); v10 = v7++; if ( v9 ) break; v8 = (RandTriggerGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v10); SetupRandAdvTriggerPopup::addChanceToObject(a1, v8, a2, a3); } SetupRandAdvTriggerPopup::updateGroupIDButtons(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source