diff --git a/Content.Server/DeltaV/NPC/Roboisseur/RoboisseurSystem.cs b/Content.Server/DeltaV/NPC/Roboisseur/RoboisseurSystem.cs index 0d28fb55b98..aa939a1ee73 100644 --- a/Content.Server/DeltaV/NPC/Roboisseur/RoboisseurSystem.cs +++ b/Content.Server/DeltaV/NPC/Roboisseur/RoboisseurSystem.cs @@ -1,3 +1,4 @@ +using Content.Server.Administration.Logs; using Content.Shared.Interaction; using Content.Shared.Mobs.Components; using Content.Server.Chat.Systems; @@ -7,6 +8,7 @@ using Content.Shared.Kitchen; using Robust.Server.GameObjects; using Content.Server.Materials; +using Content.Shared.Database; using Robust.Shared.Player; using Robust.Shared.Timing; @@ -20,6 +22,7 @@ public sealed partial class RoboisseurSystem : EntitySystem [Dependency] private readonly MaterialStorageSystem _material = default!; [Dependency] private readonly AppearanceSystem _appearance = default!; [Dependency] private readonly IGameTiming _timing = default!; + [Dependency] private readonly IAdminLogManager _adminLog = default!; public override void Initialize() { @@ -127,6 +130,10 @@ private void OnInteractUsing(EntityUid uid, RoboisseurComponent component, Inter message = Loc.GetString(_random.Pick(component.RewardMessagesTier2)); _chat.TrySendInGameICMessage(uid, message, InGameICChatType.Speak, true); + _adminLog.Add(LogType.InteractHand, + LogImpact.Medium, + $"{ToPrettyString(args.User):player} sold {ToPrettyString(args.Used)} to {ToPrettyString(uid)}."); + RewardServicer(args.User, component, tier); if (nextItem) diff --git a/Content.Server/Nyanotrasen/Research/Oracle/OracleSystem.cs b/Content.Server/Nyanotrasen/Research/Oracle/OracleSystem.cs index 148598fe2c3..084b666a754 100644 --- a/Content.Server/Nyanotrasen/Research/Oracle/OracleSystem.cs +++ b/Content.Server/Nyanotrasen/Research/Oracle/OracleSystem.cs @@ -1,4 +1,5 @@ using System.Linq; +using Content.Server.Administration.Logs; using Content.Server.Botany; using Content.Server.Chat.Managers; using Content.Server.Chat.Systems; @@ -10,6 +11,7 @@ using Content.Shared.Chemistry.Components; using Content.Shared.Chemistry.EntitySystems; using Content.Shared.Chemistry.Reagent; +using Content.Shared.Database; using Content.Shared.Interaction; using Content.Shared.Mobs.Components; using Content.Shared.Psionics.Glimmer; @@ -30,6 +32,7 @@ public sealed class OracleSystem : EntitySystem [Dependency] private readonly SolutionContainerSystem _solutionSystem = default!; [Dependency] private readonly GlimmerSystem _glimmerSystem = default!; [Dependency] private readonly PuddleSystem _puddleSystem = default!; + [Dependency] private readonly IAdminLogManager _adminLog = default!; public override void Update(float frameTime) { @@ -132,6 +135,10 @@ private void OnInteractUsing(EntityUid uid, OracleComponent component, InteractU EntityManager.QueueDeleteEntity(args.Used); + _adminLog.Add(LogType.InteractHand, + LogImpact.Medium, + $"{ToPrettyString(args.User):player} sold {ToPrettyString(args.Used)} to {ToPrettyString(uid)}."); + EntityManager.SpawnEntity("ResearchDisk5000", Transform(args.User).Coordinates); DispenseLiquidReward(uid, component);