]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add admin logs for drawing with syringe. (#23333)
authorTrevor Day <tday93@users.noreply.github.com>
Tue, 2 Jan 2024 18:47:31 +0000 (10:47 -0800)
committerGitHub <noreply@github.com>
Tue, 2 Jan 2024 18:47:31 +0000 (13:47 -0500)
Add logs for drawing with syringe.

Content.Server/Chemistry/EntitySystems/ChemistrySystem.Injector.cs

index 5f7427eacc68cacbec4dd9383d604b987df135bb..4f149db83621a8cdab069b9fdb464022774cfa6e 100644 (file)
@@ -254,6 +254,11 @@ public sealed partial class ChemistrySystem
                 _adminLogger.Add(LogType.ForceFeed,
                     $"{EntityManager.ToPrettyString(user):user} is attempting to inject {EntityManager.ToPrettyString(target):target} with a solution {SolutionContainerSystem.ToPrettyString(solution):solution}");
             }
+            else
+            {
+                _adminLogger.Add(LogType.ForceFeed,
+                    $"{EntityManager.ToPrettyString(user):user} is attempting to draw {injector.Comp.TransferAmount.ToString()} units from {EntityManager.ToPrettyString(target):target}");
+            }
         }
         else
         {
@@ -261,7 +266,15 @@ public sealed partial class ChemistrySystem
             actualDelay /= 2;
 
             if (injector.Comp.ToggleState == SharedInjectorComponent.InjectorToggleMode.Inject)
-                _adminLogger.Add(LogType.Ingestion, $"{EntityManager.ToPrettyString(user):user} is attempting to inject themselves with a solution {SolutionContainerSystem.ToPrettyString(solution):solution}.");
+            {
+                _adminLogger.Add(LogType.Ingestion,
+                    $"{EntityManager.ToPrettyString(user):user} is attempting to inject themselves with a solution {SolutionContainerSystem.ToPrettyString(solution):solution}.");
+            }
+            else
+            {
+                _adminLogger.Add(LogType.ForceFeed,
+                    $"{EntityManager.ToPrettyString(user):user} is attempting to draw {injector.Comp.TransferAmount.ToString()} units from themselves.");
+            }
         }
 
         _doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, user, actualDelay, new InjectorDoAfterEvent(), injector.Owner, target: target, used: injector.Owner)