diff --git a/Content.Shared/NPC/Systems/NpcFactionSystem.cs b/Content.Shared/NPC/Systems/NpcFactionSystem.cs
index 98f14afe2a..0d684de80b 100644
--- a/Content.Shared/NPC/Systems/NpcFactionSystem.cs
+++ b/Content.Shared/NPC/Systems/NpcFactionSystem.cs
@@ -81,6 +81,24 @@ public sealed partial class NpcFactionSystem : EntitySystem
return ent.Comp.Factions.Contains(faction);
}
+ ///
+ /// Returns whether an entity is a member of any listed faction.
+ /// If the list is empty this returns false.
+ ///
+ public bool IsMemberOfAny(Entity ent, IEnumerable> factions)
+ {
+ if (!Resolve(ent, ref ent.Comp, false))
+ return false;
+
+ foreach (var faction in factions)
+ {
+ if (ent.Comp.Factions.Contains(faction))
+ return true;
+ }
+
+ return false;
+ }
+
///
/// Adds this entity to the particular faction.
///