diff --git a/core/src/com/unciv/models/ruleset/unique/Unique.kt b/core/src/com/unciv/models/ruleset/unique/Unique.kt index eb2a5e888c..355f29e365 100644 --- a/core/src/com/unciv/models/ruleset/unique/Unique.kt +++ b/core/src/com/unciv/models/ruleset/unique/Unique.kt @@ -193,6 +193,14 @@ class Unique(val text: String, val sourceObjectType: UniqueTarget? = null, val s state.civInfo != null && state.civInfo.religionManager.religionState == ReligionState.None UniqueType.ConditionalAfterPantheon -> state.civInfo != null && state.civInfo.religionManager.religionState != ReligionState.None + UniqueType.ConditionalBeforeReligion -> + state.civInfo != null && state.civInfo.religionManager.religionState < ReligionState.Religion + UniqueType.ConditionalAfterReligion -> + state.civInfo != null && state.civInfo.religionManager.religionState >= ReligionState.Religion + UniqueType.ConditionalBeforeEnhancingReligion -> + state.civInfo != null && state.civInfo.religionManager.religionState < ReligionState.EnhancedReligion + UniqueType.ConditionalAfterEnhancingReligion -> + state.civInfo != null && state.civInfo.religionManager.religionState >= ReligionState.EnhancedReligion UniqueType.ConditionalBuildingBuilt -> state.civInfo != null && state.civInfo.cities.any { it.cityConstructions.containsBuildingOrEquivalent(condition.params[0]) } diff --git a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt index 4b20809f5d..13c7312119 100644 --- a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt +++ b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt @@ -609,6 +609,10 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags: ConditionalBeforePantheon("before founding a Pantheon", UniqueTarget.Conditional), ConditionalAfterPantheon("after founding a Pantheon", UniqueTarget.Conditional), + ConditionalBeforeReligion("before founding a religion", UniqueTarget.Conditional), + ConditionalAfterReligion("after founding a religion", UniqueTarget.Conditional), + ConditionalBeforeEnhancingReligion("before enhancing a religion", UniqueTarget.Conditional), + ConditionalAfterEnhancingReligion("after enhancing a religion", UniqueTarget.Conditional), ConditionalBuildingBuilt("if [buildingFilter] is constructed", UniqueTarget.Conditional),