mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Fixed Coastal Raider image
Puppet cities no longer increase policy costs
This commit is contained in:
parent
5c9baaf15a
commit
47db4dce31
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@ -25,7 +25,7 @@ class PolicyManager {
|
|||||||
// round down to nearest 5
|
// round down to nearest 5
|
||||||
fun getCultureNeededForNextPolicy(): Int {
|
fun getCultureNeededForNextPolicy(): Int {
|
||||||
var policyCultureCost = 25 + (numberOfAdoptedPolicies * 6).toDouble().pow(1.7)
|
var policyCultureCost = 25 + (numberOfAdoptedPolicies * 6).toDouble().pow(1.7)
|
||||||
var cityModifier = 0.3 * (civInfo.cities.size - 1)
|
var cityModifier = 0.3 * (civInfo.cities.count { !it.isPuppet } - 1)
|
||||||
|
|
||||||
if (isAdopted("Representation")) cityModifier *= (2 / 3f).toDouble()
|
if (isAdopted("Representation")) cityModifier *= (2 / 3f).toDouble()
|
||||||
if (isAdopted("Piety Complete")) policyCultureCost *= 0.9
|
if (isAdopted("Piety Complete")) policyCultureCost *= 0.9
|
||||||
|
Loading…
x
Reference in New Issue
Block a user