// // GameStatsManager::awardSecretKey from 0x1401f19f0 to 0x1401f1aaa (186 bytes) // // 3 xrefs: // > PlayLayer::levelComplete @ 0x1403a857f // > PlayLayer::destroyPlayer @ 0x1403b4374 // > @ 0x1406cc6c0 // // 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 // bool GameStatsManager::awardSecretKey(GameStatsManager *a1) { int Stat; // eax int v3; // ebx int v5; // ebx float v6; // xmm0_4 Stat = GameStatsManager::getStat(a1, "22"); v3 = a1->m_bonusKey.random - a1->m_bonusKey.seed; if ( floorf((float)Stat / 500.0) <= (float)v3 ) return 0; v5 = v3 + 1; a1->m_bonusKey.value = v5; v6 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_bonusKey.seed = (int)v6; a1->m_bonusKey.random = v5 + (int)v6; GameStatsManager::incrementStat(a1, (const char *)&word_140543238, 1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source