Skip to content

Commit

Permalink
repeat researching items for events
Browse files Browse the repository at this point in the history
  • Loading branch information
Finnik723 committed Jun 30, 2024
1 parent 28076b5 commit f837148
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Savegame/SavedGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1928,6 +1928,12 @@ void SavedGame::getAvailableResearchProjects(std::vector<RuleResearch *> &projec
{
// This research topic still has one or more undiscovered non-disabled "protected unlocks", keep it!
}
else if (isFtAGame()
&& research->needItem()
&& (!research->getRandomEvents().empty() || !research->getSpawnedEvent().empty()))
{
// FtA logic: also let the player research items that can spawn events on being researched.
}
else
{
// This topic can't give you anything else anymore, ignore it!
Expand Down

0 comments on commit f837148

Please sign in to comment.