//
// GameManager::setPlayerColor2 from 0x32087c to 0x3208ae (50 bytes)
//
// 3 xrefs:
// > GameManager::resetAllIcons @ 0x32333e
// > GameManager::checkUsedIcons @ 0x3259b8
// > GameManager::dataLoaded @ 0x328704
//
// 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 GameManager::setPlayerColor2(GameManager *a1, int a2)
{
int v4; // s15
a1->m_playerColor2.value = a2;
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_playerColor2.seed = v4;
a1->m_playerColor2.random = v4 + a2;
}