mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Ensure that each uniquetype specified returns a value =- thank you amazing Kotlin compiler :)
This commit is contained in:
parent
3a7401a939
commit
fc6d913204
@ -855,7 +855,7 @@ object UniqueTriggerActivation {
|
|||||||
|
|
||||||
UniqueType.OneTimeUnitHeal -> {
|
UniqueType.OneTimeUnitHeal -> {
|
||||||
if (unit == null) return null
|
if (unit == null) return null
|
||||||
if (unit.health == 100)
|
if (unit.health == 100) return null
|
||||||
return {
|
return {
|
||||||
unit.healBy(unique.params[0].toInt())
|
unit.healBy(unique.params[0].toInt())
|
||||||
if (notification != null)
|
if (notification != null)
|
||||||
@ -926,9 +926,8 @@ object UniqueTriggerActivation {
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> {}
|
else -> return null
|
||||||
}
|
}
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getNotificationText(notification: String?, triggerNotificationText: String?, effectNotificationText: String): String? {
|
private fun getNotificationText(notification: String?, triggerNotificationText: String?, effectNotificationText: String): String? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user