mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 02:09:21 +07:00
Percentage increases from buildings displayed in tech picking screen
This commit is contained in:
@ -49,7 +49,7 @@
|
|||||||
policies:[
|
policies:[
|
||||||
{
|
{
|
||||||
name:"Collective Rule",
|
name:"Collective Rule",
|
||||||
description:"Training of settlers increaed +50% in capital, recieve a new settler near capital",
|
description:"Training of settlers increased +50% in capital, recieve a new settler near capital",
|
||||||
row:1,
|
row:1,
|
||||||
column:1
|
column:1
|
||||||
},
|
},
|
||||||
|
@ -51,6 +51,10 @@ class Building : NamedStats(), IConstruction{
|
|||||||
val infoList= mutableListOf<String>()
|
val infoList= mutableListOf<String>()
|
||||||
val str = getStats(hashSetOf()).toString()
|
val str = getStats(hashSetOf()).toString()
|
||||||
if(str.isNotEmpty()) infoList += str
|
if(str.isNotEmpty()) infoList += str
|
||||||
|
if(percentStatBonus!=null){
|
||||||
|
for(stat in percentStatBonus!!.toHashMap())
|
||||||
|
if(stat.value!=0f) infoList+="+${stat.value.toInt()}% ${stat.key}"
|
||||||
|
}
|
||||||
val improvedResources = GameBasics.TileResources.values.filter { it.building==name }.map { it.name.tr() }
|
val improvedResources = GameBasics.TileResources.values.filter { it.building==name }.map { it.name.tr() }
|
||||||
if(improvedResources.isNotEmpty()){
|
if(improvedResources.isNotEmpty()){
|
||||||
// buildings that improve resources
|
// buildings that improve resources
|
||||||
|
Reference in New Issue
Block a user