//
// RandTriggerGameObject::getTotalChance from 0x100389918 to 0x10038994c (52 bytes)
//
// 2 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x10002efcc
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x10002f02c
//
// 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 __fastcall RandTriggerGameObject::getTotalChance(RandTriggerGameObject *a1)
{
std::__vector_base::pointer begin; // x8
std::__vector_base::pointer end; // x9
int result; // w0
begin = a1->m_chanceObjects.__begin_;
end = a1->m_chanceObjects.__end_;
if ( begin == end )
return 0;
result = 0;
do
{
result += begin->m_chance;
++begin;
}
while ( begin != end );
return result;
}