mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 16:28:40 +07:00
Deprecated "Can start an [amount]-turn golden age" unique
This commit is contained in:
@ -363,8 +363,6 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags:
|
|||||||
MayFoundReligion("May found a religion", UniqueTarget.Unit),
|
MayFoundReligion("May found a religion", UniqueTarget.Unit),
|
||||||
MayEnhanceReligion("May enhance 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),
|
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),
|
PreventSpreadingReligion("Prevents spreading of religion to the city it is next to", UniqueTarget.Unit),
|
||||||
RemoveOtherReligions("Removes other religions when spreading religion", 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
|
// 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)
|
@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),
|
ConstructImprovementConsumingUnit("Can construct [improvementName]", UniqueTarget.Unit),
|
||||||
@Deprecated("as of 4.3.9", ReplaceWith("Costs [amount] [stats] per turn when in your territory"), DeprecationLevel.ERROR)
|
@Deprecated("as of 4.3.9", ReplaceWith("Costs [amount] [stats] per turn when in your territory"), DeprecationLevel.ERROR)
|
||||||
|
@ -26,16 +26,6 @@ object UnitActionsGreatPerson {
|
|||||||
&& !unit.civ.tech.currentTechnology()!!.hasUnique(UniqueType.CannotBeHurried) }
|
&& !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 -> {
|
UniqueType.CanSpeedupWonderConstruction -> {
|
||||||
val canHurryWonder =
|
val canHurryWonder =
|
||||||
if (!tile.isCityCenter()) false
|
if (!tile.isCityCenter()) false
|
||||||
|
Reference in New Issue
Block a user