mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -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 {
|
fun triggerChoice(civ: Civilization): Boolean {
|
||||||
var success = false
|
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
|
if (UniqueTriggerActivation.triggerUnique(unique, civ)) success = true
|
||||||
return success
|
return success
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user