From c223c16de80d66f22c9c7a6af1788dbf6ccf9bb1 Mon Sep 17 00:00:00 2001 From: Duan Tao Date: Wed, 17 Jul 2019 17:48:48 +0800 Subject: [PATCH] Petronage covered unique buildings like burial tomb. --- core/src/com/unciv/models/gamebasics/Building.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/gamebasics/Building.kt b/core/src/com/unciv/models/gamebasics/Building.kt index c96b0e4b04..dbf374b187 100644 --- a/core/src/com/unciv/models/gamebasics/Building.kt +++ b/core/src/com/unciv/models/gamebasics/Building.kt @@ -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