Allow IdentityBlocker partial coverage (#24741)

* Allow IdentityBlocker partial coverage

* rename to TotalCoverage
This commit is contained in:
themias
2024-01-30 22:49:19 -05:00
committed by GitHub
parent bd46d7cc8a
commit d75f6c3db4
5 changed files with 35 additions and 6 deletions

View File

@@ -23,7 +23,11 @@ public abstract class SharedIdentitySystem : EntitySystem
private void OnSeeIdentity(EntityUid uid, IdentityBlockerComponent component, SeeIdentityAttemptEvent args)
{
if (component.Enabled)
args.Cancel();
{
args.TotalCoverage |= component.Coverage;
if(args.TotalCoverage == IdentityBlockerCoverage.FULL)
args.Cancel();
}
}
protected virtual void OnComponentInit(EntityUid uid, IdentityComponent component, ComponentInit args)