mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Allow multiplication for event triggers
This commit is contained in:
parent
58e58ccfec
commit
2700ef6963
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user