From b0ef219c848268049a9ebf8941f688f1f24d7049 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 13 Jun 2019 14:36:18 +0300 Subject: [PATCH] AIs no longer double-pick the same policy... --- core/src/com/unciv/logic/civilization/PolicyManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/logic/civilization/PolicyManager.kt b/core/src/com/unciv/logic/civilization/PolicyManager.kt index c48424b6b6..1ad274d06b 100644 --- a/core/src/com/unciv/logic/civilization/PolicyManager.kt +++ b/core/src/com/unciv/logic/civilization/PolicyManager.kt @@ -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