From b63038898447a1f65b32e5993466dfdfe17d77b3 Mon Sep 17 00:00:00 2001 From: OptimizedForDensity <105244635+OptimizedForDensity@users.noreply.github.com> Date: Sun, 7 Aug 2022 10:37:11 -0400 Subject: [PATCH] Add unit type to Civilopedia (#7620) --- android/assets/jsons/translations/template.properties | 2 +- core/src/com/unciv/models/ruleset/unit/BaseUnit.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index f3b3d11a88..4b277f0f6b 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -1392,7 +1392,7 @@ Start year: [comment] = Pillaging this improvement yields [stats] = Pillaging this improvement yields approximately [stats] = Needs removal of terrain features to be built = - +Unit type = # Policies diff --git a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt index a4a1e9db8f..9409acf6e1 100644 --- a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt +++ b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt @@ -111,6 +111,7 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction { override fun getCivilopediaTextLines(ruleset: Ruleset): List { val textList = ArrayList() + textList += FormattedLine("{Unit type}: ${unitType.tr()}") val stats = ArrayList() if (strength != 0) stats += "$strength${Fonts.strength}"