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:
Nemanja
2024-07-07 10:19:10 -04:00
committed by GitHub
parent 063c5de985
commit 0e9ed36b85
22 changed files with 338 additions and 136 deletions

View File

@@ -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");
}
}
}