diff --git a/android/assets/jsons/Civ V - Gods & Kings/Beliefs.json b/android/assets/jsons/Civ V - Gods & Kings/Beliefs.json index 11ebf89964..20a4ddca44 100644 --- a/android/assets/jsons/Civ V - Gods & Kings/Beliefs.json +++ b/android/assets/jsons/Civ V - Gods & Kings/Beliefs.json @@ -60,7 +60,7 @@ { "name": "Goddess of Protection", "type": "Pantheon", - "uniques": ["[+30]% attacking Strength for cities"] + "uniques": ["[+30]% Strength for cities "] }, { "name": "Goddess of the Hunt", diff --git a/core/src/com/unciv/ui/utils/TextSimilarity.kt b/core/src/com/unciv/ui/utils/TextSimilarity.kt index e51c13d2fd..303b30f29b 100644 --- a/core/src/com/unciv/ui/utils/TextSimilarity.kt +++ b/core/src/com/unciv/ui/utils/TextSimilarity.kt @@ -37,6 +37,10 @@ fun getTextDistance(text1: String, text2: String): Int { if (char1 == char2) { i1++ i2++ + } else if (char1.lowercaseChar() == char2.lowercaseChar()) { + dist++ + i1++ + i2++ } else { val firstMatchIndex1 = (i1..text1.lastIndex).firstOrNull { text1[it] == char2 } val firstMatchIndex2 = (i2..text2.lastIndex).firstOrNull { text2[it] == char1 }