From 4586e44ba6e90bd309422ad3abf11a542173125f Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Mon, 21 Jun 2021 10:00:47 +0200 Subject: [PATCH] Fixed a bug where excess food would not be converted to production for settlers (#4221) --- core/src/com/unciv/models/ruleset/unit/BaseUnit.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt index 6750cbcc75..ed6829b455 100644 --- a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt +++ b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt @@ -251,7 +251,10 @@ class BaseUnit : INamed, IConstruction { "Military", "military units" -> unitType.isMilitary() // Deprecated as of 3.15.2 "military water" -> unitType.isMilitary() && unitType.isWaterUnit() - else -> false + else -> { + if (uniques.contains(filter)) return true + return false + } } }