AIs no longer double-pick the same policy...
This commit is contained in:
parent
8974e02290
commit
b0ef219c84
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ class PolicyManager {
|
|||
fun isAdopted(policyName: String): Boolean = adoptedPolicies.contains(policyName)
|
||||
|
||||
fun isAdoptable(policy: Policy): Boolean {
|
||||
if(isAdopted(policy.name)) return false
|
||||
if (policy.name.endsWith("Complete")) return false
|
||||
if (!getAdoptedPolicies().containsAll(policy.requires!!)) return false
|
||||
if (policy.getBranch().era > civInfo.getEra()) return false
|
||||
|
|
Loading…
Reference in a new issue