Tech cost increases with more city. (#1054)

This commit is contained in:
Yair Morgenstern 2019-09-09 23:07:43 +03:00 committed by GitHub
commit bdb049a29a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ class TechManager {
var techCost = GameBasics.Technologies[techName]!!.cost.toFloat()
techCost *= civInfo.getDifficulty().researchCostModifier
techCost *= civInfo.gameInfo.gameParameters.gameSpeed.getModifier()
techCost *= (1 + 0.02 * (civInfo.cities.size -1 )).toFloat()
return techCost.toInt()
}