mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
Added a conditional for WLTKD (#7830)
This commit is contained in:
parent
77a1f4a6c1
commit
14d253fe24
@ -17,8 +17,9 @@ class GlobalUniques: RulesetObject() {
|
||||
UniqueType.ConditionalGoldenAge -> "Golden Age"
|
||||
UniqueType.ConditionalHappy -> "Happiness"
|
||||
UniqueType.ConditionalBetweenHappiness, UniqueType.ConditionalBelowHappiness -> "Unhappiness"
|
||||
UniqueType.ConditionalWLTKD -> "We Love The King Day"
|
||||
else -> "Global Effect"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,6 +157,8 @@ class Unique(val text: String, val sourceObjectType: UniqueTarget? = null, val s
|
||||
state.civInfo != null && state.civInfo.happinessForNextTurn < condition.params[0].toInt()
|
||||
UniqueType.ConditionalGoldenAge ->
|
||||
state.civInfo != null && state.civInfo.goldenAges.isGoldenAge()
|
||||
UniqueType.ConditionalWLTKD ->
|
||||
state.cityInfo != null && state.cityInfo.isWeLoveTheKingDayActive()
|
||||
UniqueType.ConditionalBeforeEra ->
|
||||
state.civInfo != null && state.civInfo.getEraNumber() < ruleset().eras[condition.params[0]]!!.eraNumber
|
||||
UniqueType.ConditionalStartingFromEra ->
|
||||
|
@ -602,6 +602,7 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags:
|
||||
ConditionalWar("when at war", UniqueTarget.Conditional),
|
||||
ConditionalNotWar("when not at war", UniqueTarget.Conditional),
|
||||
ConditionalGoldenAge("during a Golden Age", UniqueTarget.Conditional),
|
||||
ConditionalWLTKD("during We Love The King Day", UniqueTarget.Conditional),
|
||||
|
||||
ConditionalHappy("while the empire is happy", UniqueTarget.Conditional),
|
||||
ConditionalBetweenHappiness("when between [amount] and [amount] Happiness", UniqueTarget.Conditional),
|
||||
|
Loading…
Reference in New Issue
Block a user