mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -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>()
|
val statMap = HashMap<String, Float>()
|
||||||
statMap["Base happiness"] = civInfo.getDifficulty().baseHappiness.toFloat()
|
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
|
var happinessPerUniqueLuxury = 4f + civInfo.getDifficulty().extraHappinessPerLuxury
|
||||||
if (civInfo.policies.isAdopted("Protectionism")) happinessPerUniqueLuxury += 1
|
if (civInfo.policies.isAdopted("Protectionism")) happinessPerUniqueLuxury += 1
|
||||||
statMap["Luxury resources"]= civInfo.getCivResources().map { it.resource }
|
statMap["Luxury resources"]= civInfo.getCivResources().map { it.resource }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user