Add unit type to Civilopedia (#7620)

This commit is contained in:
OptimizedForDensity 2022-08-07 10:37:11 -04:00 committed by GitHub
parent f1a69744cb
commit b630388984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -111,6 +111,7 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
val textList = ArrayList<FormattedLine>()
textList += FormattedLine("{Unit type}: ${unitType.tr()}")
val stats = ArrayList<String>()
if (strength != 0) stats += "$strength${Fonts.strength}"