mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
All unit uniques displayed in tech tree
Unit bonus/penalty uniques are now translated
This commit is contained in:
@ -2688,6 +2688,8 @@
|
|||||||
Dutch:"Gelimiteerd zicht"
|
Dutch:"Gelimiteerd zicht"
|
||||||
Spanish:"Visibilidad limitada"
|
Spanish:"Visibilidad limitada"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Old Great Person translations (for reference only)
|
||||||
"Can start an 8-turn golden age or construct a Landmark (+6 culture)":{
|
"Can start an 8-turn golden age or construct a Landmark (+6 culture)":{
|
||||||
Italian:"Può iniziare un'Età dell'Oro da 8 turni o costruire un Gran Monunento (+6 cultura)"
|
Italian:"Può iniziare un'Età dell'Oro da 8 turni o costruire un Gran Monunento (+6 cultura)"
|
||||||
Russian:"Может начать золотой век на 8 ходов или построить памятник (+6 культура)"
|
Russian:"Может начать золотой век на 8 ходов или построить памятник (+6 культура)"
|
||||||
@ -2723,10 +2725,25 @@
|
|||||||
German:"Kann die Bauzeit eines Wunders verkürzen oder eine Fabrik (+4 Produktion) bauen"
|
German:"Kann die Bauzeit eines Wunders verkürzen oder eine Fabrik (+4 Produktion) bauen"
|
||||||
Dutch:"Kan de produtie van een wonder versnellen, of kan een Fabriek (+4 productie) bouwen"
|
Dutch:"Kan de produtie van een wonder versnellen, of kan een Fabriek (+4 productie) bouwen"
|
||||||
Spanish:"Puede acelerar la construción de una Maravilla o construir una Fábrica (+4 producción)"
|
Spanish:"Puede acelerar la construción de una Maravilla o construir una Fábrica (+4 producción)"
|
||||||
}
|
}*/
|
||||||
|
|
||||||
"May create improvements on water resources":{
|
"May create improvements on water resources":{
|
||||||
Italian:"Può costruire miglioramenti sulle risorse acquatiche"
|
Italian:"Può costruire miglioramenti sulle risorse acquatiche"
|
||||||
}
|
}
|
||||||
|
"Can start an 8-turn golden age":{}
|
||||||
|
"Can build improvement: Landmark":{}
|
||||||
|
"Can discover a technology":{}
|
||||||
|
"Can build improvement: Academy":{}
|
||||||
|
"Can undertake a trade mission, giving a large sum of gold":{}
|
||||||
|
"Can build improvement: Customs House":{}
|
||||||
|
"Can speed up construction of a wonder":{}
|
||||||
|
"Can build improvement: Manufactory":{}
|
||||||
|
|
||||||
|
"Cannot enter ocean tiles":{}
|
||||||
|
"Cannot enter ocean tiles until Astronomy":{}
|
||||||
|
"+1 Visibility Range":{}
|
||||||
|
"Double movement in coast":{}
|
||||||
|
|
||||||
|
|
||||||
// Policy picker screen
|
// Policy picker screen
|
||||||
"You have entered the [newEra] era!":{
|
"You have entered the [newEra] era!":{
|
||||||
|
@ -37,7 +37,15 @@ class BaseUnit : INamed, IConstruction, ICivilopedia {
|
|||||||
|
|
||||||
fun getShortDescription(): String {
|
fun getShortDescription(): String {
|
||||||
val infoList= mutableListOf<String>()
|
val infoList= mutableListOf<String>()
|
||||||
infoList += uniques.map { it.tr() }
|
for(unique in uniques){
|
||||||
|
val regexResult = Regex("""(Bonus|Penalty) vs (.*) (\d*)%""").matchEntire(unique)
|
||||||
|
if(regexResult==null) infoList += unique.tr()
|
||||||
|
else{
|
||||||
|
val start = regexResult.groups[1]!!.value+" vs ["+regexResult.groups[2]!!.value+"]"
|
||||||
|
val translatedUnique = start.tr() + " "+ regexResult.groups[3]!!.value+"%"
|
||||||
|
infoList+=translatedUnique
|
||||||
|
}
|
||||||
|
}
|
||||||
if(strength!=0) infoList += "{Strength}: $strength".tr()
|
if(strength!=0) infoList += "{Strength}: $strength".tr()
|
||||||
if(rangedStrength!=0) infoList += "{Ranged strength}: $rangedStrength".tr()
|
if(rangedStrength!=0) infoList += "{Ranged strength}: $rangedStrength".tr()
|
||||||
if(movement!=2) infoList+="{Movement}: $movement".tr()
|
if(movement!=2) infoList+="{Movement}: $movement".tr()
|
||||||
|
Reference in New Issue
Block a user