Only show the Uplink to players with Uplink Accounts (#6080)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user