Intercom buffs and fixes (#29580)
* Intercom buffs and fixes * remove unused bui state * mild sec intercom buff * reinforce sec intercoms
This commit is contained in:
@@ -31,6 +31,7 @@ public sealed partial class EncryptionKeySystem : EntitySystem
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly SharedHandsSystem _hands = default!;
|
||||
[Dependency] private readonly SharedWiresSystem _wires = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -150,7 +151,7 @@ public sealed partial class EncryptionKeySystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
if (TryComp<WiresPanelComponent>(uid, out var panel) && !panel.Open)
|
||||
if (!_wires.IsPanelOpen(uid))
|
||||
{
|
||||
_popup.PopupClient(Loc.GetString("encryption-keys-panel-locked"), uid, args.User);
|
||||
return;
|
||||
@@ -184,8 +185,15 @@ public sealed partial class EncryptionKeySystem : EntitySystem
|
||||
|
||||
if (component.Channels.Count > 0)
|
||||
{
|
||||
args.PushMarkup(Loc.GetString("examine-encryption-channels-prefix"));
|
||||
AddChannelsExamine(component.Channels, component.DefaultChannel, args, _protoManager, "examine-encryption-channel");
|
||||
using (args.PushGroup(nameof(EncryptionKeyComponent)))
|
||||
{
|
||||
args.PushMarkup(Loc.GetString("examine-encryption-channels-prefix"));
|
||||
AddChannelsExamine(component.Channels,
|
||||
component.DefaultChannel,
|
||||
args,
|
||||
_protoManager,
|
||||
"examine-encryption-channel");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user