// // GJChallengeItem::incrementCount from 0x1000736d0 to 0x100073727 (87 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 GJChallengeItem::incrementCount(GJChallengeItem *a1, int a2) { int v2; // ebx int v3; // eax int v4; // eax if ( !a1->m_canClaim ) { v2 = a2 + a1->m_count.random - a1->m_count.seed; v3 = a1->m_goal.random - a1->m_goal.seed; if ( v2 >= v3 ) { a1->m_canClaim = 1; v2 = v3; } a1->m_count.value = v2; v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); a1->m_count.seed = v4; a1->m_count.random = v4 + v2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source