Only show the Uplink to players with Uplink Accounts (#6080)

This commit is contained in:
E F R
2022-01-09 08:02:07 +00:00
committed by GitHub
parent d2420e6520
commit e5cb3f74d7
2 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.Stacks;
using Content.Shared.Traitor.Uplink;
using Robust.Shared.GameObjects;
@@ -28,6 +29,8 @@ namespace Content.Server.Traitor.Uplink.Account
return _accounts.Add(acc);
}
public bool HasAccount(EntityUid holder) =>
_accounts.Any(acct => acct.AccountHolder == holder);
/// <summary>
/// Add TC to uplinks account balance