From 23a9886de7250039526099081b278773f59dc987 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 17 Jul 2018 23:14:58 +0300 Subject: [PATCH] Expanded unit civilopedia description --- core/src/com/unciv/models/gamebasics/unit/Unit.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/com/unciv/models/gamebasics/unit/Unit.kt b/core/src/com/unciv/models/gamebasics/unit/Unit.kt index 19d26001..91f5f3b8 100644 --- a/core/src/com/unciv/models/gamebasics/unit/Unit.kt +++ b/core/src/com/unciv/models/gamebasics/unit/Unit.kt @@ -49,14 +49,18 @@ class Unit : INamed, IConstruction, ICivilopedia { if(baseDescription!=null) sb.appendln(baseDescription!!.tr()) if(!forPickerScreen) { if (unbuildable) sb.appendln("Unbuildable") + if(uniqueTo!=null) sb.appendln("Unique to $uniqueTo, replaces $replaces") else sb.appendln("Cost: $cost") if(requiredResource!=null) sb.appendln("Required resource: {$requiredResource}".tr()) if(requiredTech!=null) sb.appendln("Required tech: {$requiredTech}".tr()) + if(upgradesTo!=null) sb.appendln("Upgrades to $upgradesTo") + if(obsoleteTech!=null) sb.appendln("Obsolete with $obsoleteTech") } if(strength!=0){ sb.append("{Strength} $strength".tr()) if(rangedStrength!=0) sb.append(", {Ranged strength}: $rangedStrength".tr()) sb.appendln() + if(rangedStrength!=0) sb.append(", {Range}: $range".tr()) } if(uniques!=null){