From c87ed50a986532b9b792354347f1a1547ed9e22a Mon Sep 17 00:00:00 2001 From: yairm210 Date: Thu, 7 Nov 2024 18:20:45 +0200 Subject: [PATCH] Resolved #12422 - Comment text is displayed on event choices --- core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt b/core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt index 4c5f7ee25b..b8152ea07a 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt @@ -6,6 +6,7 @@ import com.unciv.logic.map.mapunit.MapUnit import com.unciv.models.ruleset.Event import com.unciv.models.ruleset.EventChoice import com.unciv.models.ruleset.unique.StateForConditionals +import com.unciv.models.ruleset.unique.UniqueType import com.unciv.ui.components.UncivTooltip.Companion.addTooltip import com.unciv.ui.components.extensions.addSeparator import com.unciv.ui.components.extensions.toTextButton @@ -69,7 +70,7 @@ class RenderEvent( val lines = ( choice.civilopediaText.asSequence() - + choice.uniqueObjects.filter { it.isTriggerable } + + choice.uniqueObjects.filter { it.isTriggerable || it.type == UniqueType.Comment } .filterNot { it.isHiddenToUsers() } .map { FormattedLine(it) } ).asIterable()