mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Deprecated PolicyManager.legalismState
This commit is contained in:
parent
183b94702e
commit
9c1248b741
@ -34,9 +34,6 @@ class PolicyManager {
|
|||||||
@Deprecated("Deprecated since 3.15")
|
@Deprecated("Deprecated since 3.15")
|
||||||
var autocracyCompletedTurns = 0
|
var autocracyCompletedTurns = 0
|
||||||
|
|
||||||
@Deprecated("Deprecated since 3.14.17") // Replaced with cultureBuildingsAdded
|
|
||||||
var legalismState = HashMap<String, String>() // Maps cities to buildings
|
|
||||||
|
|
||||||
|
|
||||||
fun clone(): PolicyManager {
|
fun clone(): PolicyManager {
|
||||||
val toReturn = PolicyManager()
|
val toReturn = PolicyManager()
|
||||||
@ -49,7 +46,6 @@ class PolicyManager {
|
|||||||
toReturn.specificBuildingsAdded.putAll(specificBuildingsAdded)
|
toReturn.specificBuildingsAdded.putAll(specificBuildingsAdded)
|
||||||
|
|
||||||
// Deprecated since 3.15 left for backwards compatibility
|
// Deprecated since 3.15 left for backwards compatibility
|
||||||
toReturn.legalismState.putAll(cultureBuildingsAdded)
|
|
||||||
toReturn.autocracyCompletedTurns = autocracyCompletedTurns
|
toReturn.autocracyCompletedTurns = autocracyCompletedTurns
|
||||||
//
|
//
|
||||||
return toReturn
|
return toReturn
|
||||||
@ -74,12 +70,6 @@ class PolicyManager {
|
|||||||
//
|
//
|
||||||
for (policyName in adoptedPolicies)
|
for (policyName in adoptedPolicies)
|
||||||
addPolicyToTransients(getPolicyByName(policyName))
|
addPolicyToTransients(getPolicyByName(policyName))
|
||||||
// Deprecated since 3.14.17, left for backwards compatibility
|
|
||||||
if (cultureBuildingsAdded.isEmpty() && legalismState.isNotEmpty()) {
|
|
||||||
cultureBuildingsAdded.putAll(legalismState)
|
|
||||||
legalismState.clear()
|
|
||||||
}
|
|
||||||
//
|
|
||||||
|
|
||||||
// Deprecated since 3.15.2, left for backwards compatibility
|
// Deprecated since 3.15.2, left for backwards compatibility
|
||||||
if (autocracyCompletedTurns != 0) {
|
if (autocracyCompletedTurns != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user