//
// SetupRandAdvTriggerPopup::addChance from 0x528e04 to 0x528e54 (80 bytes)
//
// 1 xrefs:
// > SetupRandAdvTriggerPopup::onAddChance @ 0x528f24
//
// 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; // r1
unsigned int i; // r4
RandTriggerGameObject *v8; // r0
m_gameObject = (RandTriggerGameObject *)a1->m_gameObject;
a1->m_performedAction = 1;
if ( m_gameObject )
{
SetupRandAdvTriggerPopup::addChanceToObject(a1, m_gameObject, a2, a3);
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )
{
v8 = (RandTriggerGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);
SetupRandAdvTriggerPopup::addChanceToObject(a1, v8, a2, a3);
}
}
SetupRandAdvTriggerPopup::updateGroupIDButtons(a1);
}