mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Added mutually exclusive policy branches :)
This commit is contained in:
parent
18f4d4e53e
commit
0cba94dbcf
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user