mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Add unit type to Civilopedia (#7620)
This commit is contained in:
parent
f1a69744cb
commit
b630388984
@ -1392,7 +1392,7 @@ Start year: [comment] =
|
|||||||
Pillaging this improvement yields [stats] =
|
Pillaging this improvement yields [stats] =
|
||||||
Pillaging this improvement yields approximately [stats] =
|
Pillaging this improvement yields approximately [stats] =
|
||||||
Needs removal of terrain features to be built =
|
Needs removal of terrain features to be built =
|
||||||
|
Unit type =
|
||||||
|
|
||||||
# Policies
|
# Policies
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
|
|||||||
|
|
||||||
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
|
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
|
||||||
val textList = ArrayList<FormattedLine>()
|
val textList = ArrayList<FormattedLine>()
|
||||||
|
textList += FormattedLine("{Unit type}: ${unitType.tr()}")
|
||||||
|
|
||||||
val stats = ArrayList<String>()
|
val stats = ArrayList<String>()
|
||||||
if (strength != 0) stats += "$strength${Fonts.strength}"
|
if (strength != 0) stats += "$strength${Fonts.strength}"
|
||||||
|
Loading…
Reference in New Issue
Block a user