Add unlocking Phazer research in plus and free

fix-squashed-planets
Fiftytwo 2023-05-07 15:33:17 +02:00
parent 5f9b14f43d
commit 8f11fc0126
1 changed files with 6 additions and 0 deletions

View File

@ -3777,6 +3777,12 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
m_build |= m_playerProfile->GetFreeGameBuildUnlock();
}
if (~m_researchDone[0] & RESEARCH_PHAZER && (m_levelCategory == LevelCategory::FreeGame || m_levelCategory == LevelCategory::GamePlus) && m_playerProfile->GetLevelPassed(LevelCategory::Missions, 9, 0))
{
m_build |= BUILD_RESEARCH;
m_researchEnable |= RESEARCH_PHAZER;
}
m_researchEnable |= m_researchDone[0];
if (!resetObject)