//
// RandTriggerGameObject::getTotalChance from 0x3eb604 to 0x3eb61c (24 bytes)
//
// 3 xrefs:
// > RandTriggerGameObject::getRandomGroupID @ 0x3eb624
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x52809a
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x52811e
//
// 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
//
int RandTriggerGameObject::getTotalChance(RandTriggerGameObject *a1)
{
ChanceObject *m_finish; // r2
ChanceObject *m_start; // r3
int result; // r0
int m_chance; // r1
m_finish = a1->m_chanceObjects.m_finish;
m_start = a1->m_chanceObjects.m_start;
result = 0;
while ( m_start != m_finish )
{
m_chance = m_start->m_chance;
++m_start;
result += m_chance;
}
return result;
}