From: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com> Date: Sun, 12 Feb 2023 12:42:28 +0000 (-0600) Subject: add filter change logs for gas filters (#13950) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5df6c307e162bf717367329652765e1bb77d1703;p=space-station-14.git add filter change logs for gas filters (#13950) --- diff --git a/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs b/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs index b1efbda7cd..3cdbfa08ca 100644 --- a/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs +++ b/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs @@ -161,6 +161,8 @@ namespace Content.Server.Atmos.Piping.Trinary.EntitySystems if (Enum.TryParse(args.ID.ToString(), true, out var parsedGas)) { filter.FilteredGas = parsedGas; + _adminLogger.Add(LogType.AtmosFilterChanged, LogImpact.Medium, + $"{ToPrettyString(args.Session.AttachedEntity!.Value):player} set the filter on {ToPrettyString(uid):device} to {parsedGas.ToString()}"); DirtyUI(uid, filter); } else @@ -171,6 +173,8 @@ namespace Content.Server.Atmos.Piping.Trinary.EntitySystems else { filter.FilteredGas = null; + _adminLogger.Add(LogType.AtmosFilterChanged, LogImpact.Medium, + $"{ToPrettyString(args.Session.AttachedEntity!.Value):player} set the filter on {ToPrettyString(uid):device} to none"); DirtyUI(uid, filter); } }