Add condition support to entity tables (#36819)

This commit is contained in:
Nemanja
2025-05-02 04:37:14 -04:00
committed by GitHub
parent 25108234ea
commit 26ebf06b81
5 changed files with 109 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ public sealed partial class GroupSelector : EntityTableSelector
var children = new Dictionary<EntityTableSelector, float>(Children.Count);
foreach (var child in Children)
{
// Don't include invalid groups
if (!child.CheckConditions(entMan, proto))
continue;
children.Add(child, child.Weight);
}