Added mutually exclusive policy branches :)

This commit is contained in:
Yair Morgenstern 2021-01-28 14:36:39 +02:00
parent 18f4d4e53e
commit 0cba94dbcf

View File

@ -101,6 +101,7 @@ class PolicyManager {
if (policy.name.endsWith("Complete")) return false
if (!getAdoptedPolicies().containsAll(policy.requires!!)) return false
if (civInfo.gameInfo.ruleSet.getEraNumber(policy.branch.era) > civInfo.getEraNumber()) return false
if (policy.uniqueObjects.any { it.placeholderText=="Incompatible with []" && adoptedPolicies.contains(it.params[0]) }) return false
return true
}