//
// SetupRandTriggerPopup::updateChance from 0x1005e6790 to 0x1005e6808 (120 bytes)
//
// 0 xrefs:
//
// 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 __fastcall SetupRandTriggerPopup::updateChance(SetupRandTriggerPopup *a1)
{
EffectGameObject *m_gameObject; // rax
unsigned int v2; // r14d
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_duration = a1->m_chancePercent;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v2 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v2++) + 1452) = a1->m_chancePercent;
while ( v2 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}