Petronage covered unique buildings like burial tomb.

This commit is contained in:
Duan Tao 2019-07-17 17:48:48 +08:00 committed by Yair Morgenstern
parent 749771daf4
commit c223c16de8

View File

@ -201,7 +201,9 @@ class Building : NamedStats(), IConstruction{
if (civInfo.policies.adoptedPolicies.contains("Mercantilism")) cost *= 0.75
if (civInfo.getBuildingUniques().contains("-15% to purchasing items in cities")) cost *= 0.85
if (civInfo.policies.adoptedPolicies.contains("Patronage")
&& listOf("Monument", "Temple", "Opera House", "Museum", "Broadcast Tower").contains(name)) cost *= 0.5
&& listOf("Monument", "Temple", "Opera House", "Museum", "Broadcast Tower")
.map{civInfo.getEquivalentBuilding(it).name}.contains(name))
cost *= 0.5
}
return (cost / 10).toInt() * 10