Skip to content

Fix Civilopedia when opened for a religion-free ruleset without a loaded game #13241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SomeTroglodyte
Copy link
Collaborator

Fixes #13228, including "search scope includes hidden objects".

return false
}
/** Overload of [isHiddenFromCivilopedia] for use in actually game-agnostic parts of Civilopedia */
fun isHiddenFromCivilopedia(ruleset: Ruleset) = isHiddenFromCivilopedia(UncivGame.getGameInfoOrNull(), ruleset)

private fun gameAgnosticVisibleForReligionOrEspionage(hasFeature: Boolean, enabler: UniqueType, disabler: UniqueType): Boolean {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what this is meant to do

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said in #13228 (comment), the but is still present and not really tied to the Easter days, though the easter eggs were the easiest way to show the regression - the regression from deprecating the hiden from civilopedia uniques and then not reimplementing them for the replacement uniques in the case Civilopedia is opened without a game loaded.

This does that.

Extra function because I implemented the missing no-game no-espionage check too while at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Easter Egg breaks Civilopedia from title screen
2 participants