mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-13 11:30:31 +07:00
Added "[unitTriggerTarget] is destroyed" unit triggerable
This commit is contained in:
parent
072c3786c4
commit
eadc7b24a2
@ -984,6 +984,13 @@ object UniqueTriggerActivation {
|
||||
true
|
||||
}
|
||||
}
|
||||
UniqueType.OneTimeUnitDestroyed -> {
|
||||
if (unit == null) return null
|
||||
return {
|
||||
unit.destroy()
|
||||
true
|
||||
}
|
||||
}
|
||||
UniqueType.OneTimeUnitUpgrade, UniqueType.OneTimeUnitSpecialUpgrade,
|
||||
UniqueType.OneTimeUnitUpgradeOld, UniqueType.OneTimeUnitSpecialUpgradeOld -> {
|
||||
if (unit == null) return null
|
||||
|
@ -885,6 +885,8 @@ enum class UniqueType(
|
||||
docDescription = "Statuses are temporary promotions. They do not stack, and reapplying a specific status take the highest number - so reapplying a 3-turn on a 1-turn makes it 3, but doing the opposite will have no effect. " +
|
||||
"Turns left on the status decrease at the *start of turn*, so bonuses applied for 1 turn are stll applied during other civ's turns."),
|
||||
OneTimeUnitLoseStatus("[unitTriggerTarget] loses the [promotion] status", UniqueTarget.UnitTriggerable),
|
||||
|
||||
OneTimeUnitDestroyed("[unitTriggerTarget] is destroyed", UniqueTarget.UnitTriggerable),
|
||||
//endregion
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user