mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
Update CivInfoStats.kt
This commit is contained in:
parent
e5732449b0
commit
2f849a57e0
@ -101,6 +101,7 @@ class CivInfoStats(val civInfo: CivilizationInfo){
|
||||
val statMap = HashMap<String, Float>()
|
||||
statMap["Base happiness"] = civInfo.getDifficulty().baseHappiness.toFloat()
|
||||
|
||||
// TODO - happinessPerUnique should be difficulty-dependent, 5 on Settler and Chieftian and 4 on other difficulties (should be parameter, not in code)
|
||||
var happinessPerUniqueLuxury = 4f + civInfo.getDifficulty().extraHappinessPerLuxury
|
||||
if (civInfo.policies.isAdopted("Protectionism")) happinessPerUniqueLuxury += 1
|
||||
statMap["Luxury resources"]= civInfo.getCivResources().map { it.resource }
|
||||
@ -134,4 +135,4 @@ class CivInfoStats(val civInfo: CivilizationInfo){
|
||||
return statMap
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user