From 2700ef6963b54241fcc58a2dd71c224622249dc7 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Tue, 2 Jul 2024 10:17:06 +0300 Subject: [PATCH] Allow multiplication for event triggers --- core/src/com/unciv/models/ruleset/Event.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Event.kt b/core/src/com/unciv/models/ruleset/Event.kt index 874000ab2b..23347d11f4 100644 --- a/core/src/com/unciv/models/ruleset/Event.kt +++ b/core/src/com/unciv/models/ruleset/Event.kt @@ -57,7 +57,8 @@ class EventChoice : ICivilopediaText { fun triggerChoice(civ: Civilization): Boolean { var success = false - for (unique in triggeredUniqueObjects) + val stateForConditionals = StateForConditionals(civ) + for (unique in triggeredUniqueObjects.flatMap { it.getMultiplied(stateForConditionals) }) if (UniqueTriggerActivation.triggerUnique(unique, civ)) success = true return success }