feat: 添加循环效果和随机效果到事件系统
添加了循环效果和随机效果到事件系统,允许更复杂的事件逻辑。
This commit is contained in:
@@ -36,13 +36,7 @@ namespace WulaFallenEmpire
|
||||
string reason;
|
||||
if (AreConditionsMet(conditionalEffect.conditions, out reason))
|
||||
{
|
||||
if (!conditionalEffect.effects.NullOrEmpty())
|
||||
{
|
||||
foreach (var effect in conditionalEffect.effects)
|
||||
{
|
||||
effect.Execute(null);
|
||||
}
|
||||
}
|
||||
conditionalEffect.Execute(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user