From d638ad421aa4abb079f36995708d0a8141327969 Mon Sep 17 00:00:00 2001 From: Theomund <34360334+Theomund@users.noreply.github.com> Date: Sun, 1 Jan 2023 14:42:21 -0500 Subject: [PATCH] Add recipient to air gush message and change pop-up type (#13262) --- Content.Server/Doors/Systems/DoorSystem.cs | 2 +- Content.Server/Doors/Systems/FirelockSystem.cs | 5 +++-- Content.Shared/Doors/DoorEvents.cs | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Content.Server/Doors/Systems/DoorSystem.cs b/Content.Server/Doors/Systems/DoorSystem.cs index 5a89a26752..d9c6c25886 100644 --- a/Content.Server/Doors/Systems/DoorSystem.cs +++ b/Content.Server/Doors/Systems/DoorSystem.cs @@ -190,7 +190,7 @@ public sealed class DoorSystem : SharedDoorSystem return true; } - var modEv = new DoorGetPryTimeModifierEvent(); + var modEv = new DoorGetPryTimeModifierEvent(user); RaiseLocalEvent(target, modEv, false); door.BeingPried = true; diff --git a/Content.Server/Doors/Systems/FirelockSystem.cs b/Content.Server/Doors/Systems/FirelockSystem.cs index 11029857b1..2597ca943f 100644 --- a/Content.Server/Doors/Systems/FirelockSystem.cs +++ b/Content.Server/Doors/Systems/FirelockSystem.cs @@ -11,6 +11,7 @@ using Content.Shared.Atmos.Monitor; using Content.Shared.Doors; using Content.Shared.Doors.Components; using Content.Shared.Doors.Systems; +using Content.Shared.Popups; using Microsoft.Extensions.Options; using Robust.Server.GameObjects; using Robust.Shared.Map.Components; @@ -144,12 +145,12 @@ namespace Content.Server.Doors.Systems if (state.Fire) { _popupSystem.PopupEntity(Loc.GetString("firelock-component-is-holding-fire-message"), - uid); + uid, args.User, PopupType.MediumCaution); } else if (state.Pressure) { _popupSystem.PopupEntity(Loc.GetString("firelock-component-is-holding-pressure-message"), - uid); + uid, args.User, PopupType.MediumCaution); } if (state.Fire || state.Pressure) diff --git a/Content.Shared/Doors/DoorEvents.cs b/Content.Shared/Doors/DoorEvents.cs index 591013d7fe..22c684c75a 100644 --- a/Content.Shared/Doors/DoorEvents.cs +++ b/Content.Shared/Doors/DoorEvents.cs @@ -68,7 +68,13 @@ namespace Content.Shared.Doors /// public sealed class DoorGetPryTimeModifierEvent : EntityEventArgs { + public readonly EntityUid User; public float PryTimeModifier = 1.0f; + + public DoorGetPryTimeModifierEvent(EntityUid user) + { + User = user; + } } ///