* Borg hands & hand whitelisting * yaml linted * yaml linted (x2) * yaml linted (x3) * my storage tests so pass * no need for SetCount * ok new stuff you can get fixed too * oops * staque * what if we addressed feedback * my place so holder * what if we addresesd feedback * what if i did it correctly * terminating or deleted
16 lines
452 B
C#
16 lines
452 B
C#
using Content.Shared.Hands.Components;
|
|
using Content.Shared.Whitelist;
|
|
|
|
namespace Content.Shared.Hands.EntitySystems;
|
|
|
|
public abstract partial class SharedHandsSystem
|
|
{
|
|
private bool CheckWhitelists(Entity<HandsComponent?> ent, string handId, EntityUid toTest)
|
|
{
|
|
if (!TryGetHand(ent, handId, out var hand))
|
|
return false;
|
|
|
|
return _entityWhitelist.CheckBoth(toTest, hand.Value.Blacklist, hand.Value.Whitelist);
|
|
}
|
|
}
|