Deprecated "Can start an [amount]-turn golden age" unique

This commit is contained in:
Yair Morgenstern
2023-06-16 11:07:48 +03:00
parent bc0965e73e
commit 7748b3f358
2 changed files with 2 additions and 12 deletions

View File

@ -363,8 +363,6 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags:
MayFoundReligion("May found a religion", UniqueTarget.Unit),
MayEnhanceReligion("May enhance a religion", UniqueTarget.Unit),
@Deprecated("as of 4.5.3", ReplaceWith("Empire enters a [amount]-turn Golden Age <by consuming this unit>"))
StartGoldenAge("Can start an [amount]-turn golden age", UniqueTarget.Unit),
AddInCapital("Can be added to [comment] in the Capital", UniqueTarget.Unit),
PreventSpreadingReligion("Prevents spreading of religion to the city it is next to", UniqueTarget.Unit),
RemoveOtherReligions("Removes other religions when spreading religion", UniqueTarget.Unit),
@ -807,6 +805,8 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags:
// region DEPRECATED AND REMOVED
@Deprecated("as of 4.5.3", ReplaceWith("Empire enters a [amount]-turn Golden Age <by consuming this unit>"), DeprecationLevel.ERROR)
StartGoldenAge("Can start an [amount]-turn golden age", UniqueTarget.Unit),
@Deprecated("as of 4.5.2", ReplaceWith("Can instantly construct a [improvementName] improvement <by consuming this unit>"), DeprecationLevel.ERROR)
ConstructImprovementConsumingUnit("Can construct [improvementName]", UniqueTarget.Unit),
@Deprecated("as of 4.3.9", ReplaceWith("Costs [amount] [stats] per turn when in your territory"), DeprecationLevel.ERROR)

View File

@ -26,16 +26,6 @@ object UnitActionsGreatPerson {
&& !unit.civ.tech.currentTechnology()!!.hasUnique(UniqueType.CannotBeHurried) }
)
}
UniqueType.StartGoldenAge -> {
val turnsToGoldenAge = unique.params[0].toInt()
actionList += UnitAction(
UnitActionType.StartGoldenAge,
action = {
unit.civ.goldenAges.enterGoldenAge(turnsToGoldenAge)
unit.consume()
}.takeIf { unit.currentTile.getOwner() != null && unit.currentTile.getOwner() == unit.civ }
)
}
UniqueType.CanSpeedupWonderConstruction -> {
val canHurryWonder =
if (!tile.isCityCenter()) false