mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Try to fix a potentially miscapitalized/broken policy cost unique. (#6016)
* Try to fix a potentially miscapitalized/broken policy cost unique. * Deprecate old capitalization.
This commit is contained in:
parent
da748a96f9
commit
8461032a52
@ -166,7 +166,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Free Religion",
|
"name": "Free Religion",
|
||||||
"uniques": ["[-10]% Culture cost of adopting new policies"],
|
"uniques": ["[-10]% Culture cost of adopting new Policies"],
|
||||||
"requires": ["Mandate Of Heaven", "Reformation"],
|
"requires": ["Mandate Of Heaven", "Reformation"],
|
||||||
"row": 3,
|
"row": 3,
|
||||||
"column": 4
|
"column": 4
|
||||||
|
@ -91,7 +91,7 @@ class PolicyManager {
|
|||||||
for (unique in civInfo.getMatchingUniques(UniqueType.LessPolicyCostDeprecated))
|
for (unique in civInfo.getMatchingUniques(UniqueType.LessPolicyCostDeprecated))
|
||||||
policyCultureCost *= 1 - unique.params[0].toFloat() / 100
|
policyCultureCost *= 1 - unique.params[0].toFloat() / 100
|
||||||
//
|
//
|
||||||
for (unique in civInfo.getMatchingUniques(UniqueType.LessPolicyCost))
|
for (unique in civInfo.getMatchingUniques(UniqueType.LessPolicyCost) + civInfo.getMatchingUniques(UniqueType.LessPolicyCostDeprecated2))
|
||||||
policyCultureCost *= unique.params[0].toPercent()
|
policyCultureCost *= unique.params[0].toPercent()
|
||||||
if (civInfo.isPlayerCivilization())
|
if (civInfo.isPlayerCivilization())
|
||||||
policyCultureCost *= civInfo.getDifficulty().policyCostModifier
|
policyCultureCost *= civInfo.getDifficulty().policyCostModifier
|
||||||
|
@ -205,9 +205,11 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags:
|
|||||||
@Deprecated("As of 3.18.17", ReplaceWith("[+amount] Happiness from each type of luxury resource"))
|
@Deprecated("As of 3.18.17", ReplaceWith("[+amount] Happiness from each type of luxury resource"))
|
||||||
BonusHappinessFromLuxuryDeprecated("+[amount] happiness from each type of luxury resource", UniqueTarget.Global),
|
BonusHappinessFromLuxuryDeprecated("+[amount] happiness from each type of luxury resource", UniqueTarget.Global),
|
||||||
LessPolicyCostFromCities("Each city founded increases culture cost of policies [amount]% less than normal", UniqueTarget.Global),
|
LessPolicyCostFromCities("Each city founded increases culture cost of policies [amount]% less than normal", UniqueTarget.Global),
|
||||||
LessPolicyCost("[amount]% Culture cost of adopting new policies", UniqueTarget.Global),
|
LessPolicyCost("[amount]% Culture cost of adopting new Policies", UniqueTarget.Global),
|
||||||
@Deprecated("As of 3.18.17", ReplaceWith("[amount]% Culture cost of adopting new policies"))
|
@Deprecated("As of 3.18.17", ReplaceWith("[amount]% Culture cost of adopting new Policies"))
|
||||||
LessPolicyCostDeprecated("Culture cost of adopting new Policies reduced by [amount]%", UniqueTarget.Global),
|
LessPolicyCostDeprecated("Culture cost of adopting new Policies reduced by [amount]%", UniqueTarget.Global),
|
||||||
|
@Deprecated("As of 3.19.1", ReplaceWith("[amount]% Culture cost of adopting new Policies"))
|
||||||
|
LessPolicyCostDeprecated2("[amount]% Culture cost of adopting new policies", UniqueTarget.Global),
|
||||||
|
|
||||||
EnablesOpenBorders("Enables Open Borders agreements", UniqueTarget.Global),
|
EnablesOpenBorders("Enables Open Borders agreements", UniqueTarget.Global),
|
||||||
// Should the 'R' in 'Research agreements' be capitalized?
|
// Should the 'R' in 'Research agreements' be capitalized?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user