Hiding and clearing department prototype code (#28114)

This commit is contained in:
Tornado Tech
2024-06-02 09:49:34 +10:00
committed by GitHub
parent ad1fc0cdba
commit 07dfefc4a2
4 changed files with 49 additions and 28 deletions

View File

@@ -147,7 +147,7 @@ public sealed partial class BanPanel : DefaultWindow
var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
foreach (var proto in prototypeManager.EnumeratePrototypes<DepartmentPrototype>())
{
CreateRoleGroup(proto.ID, proto.Roles, proto.Color);
CreateRoleGroup(proto.ID, proto.Roles.Select(p => p.Id), proto.Color);
}
CreateRoleGroup("Antagonist", prototypeManager.EnumeratePrototypes<AntagPrototype>().Select(p => p.ID), Color.Red);