//
// GJChallengeItem::incrementCount from 0x412d10 to 0x412d36 (38 bytes)
//
// 1 xrefs:
// > GameStatsManager::incrementChallenge @ 0x412d90
//
// 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 GJChallengeItem::incrementCount(GJChallengeItem *a1, int a2)
{
int v2; // r1
if ( !a1->m_canClaim )
{
v2 = a2 + a1->m_count.random - a1->m_count.seed;
if ( v2 >= a1->m_goal.random - a1->m_goal.seed )
{
v2 = a1->m_goal.random - a1->m_goal.seed;
a1->m_canClaim = 1;
}
GJChallengeItem::setCount(a1, v2);
}
}