feat: 添加循环效果和随机效果到事件系统

添加了循环效果和随机效果到事件系统,允许更复杂的事件逻辑。
This commit is contained in:
2025-08-16 09:16:50 +08:00
parent eed43cc6ff
commit c2be626ed5
7 changed files with 203 additions and 21 deletions

View File

@@ -216,13 +216,7 @@ namespace WulaFallenEmpire
{
if (AreConditionsMet(ce.conditions, out _))
{
if (!ce.effects.NullOrEmpty())
{
foreach (var effect in ce.effects)
{
effect.Execute(this);
}
}
ce.Execute(this);
}
}
}