From 0ed111d307bdee5a1b967c3490fa01c4b73d293f Mon Sep 17 00:00:00 2001 From: JesterX666 <32009105+JesterX666@users.noreply.github.com> Date: Tue, 4 Nov 2025 22:23:43 -0500 Subject: [PATCH] Log radial menu interractions for the RCD, Issue #40902 (#40986) * Log radial menu interractions, Issue #40902 * code review adjustement * Asked modifications from code review * Update Content.Shared/RCD/Systems/RCDSystem.cs Yeah, I'm old and using a very old C# syntax :D I need to update my brain Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/RCD/Systems/RCDSystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Shared/RCD/Systems/RCDSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Shared/RCD/Systems/RCDSystem.cs b/Content.Shared/RCD/Systems/RCDSystem.cs index 6cce0b6204..504576216a 100644 --- a/Content.Shared/RCD/Systems/RCDSystem.cs +++ b/Content.Shared/RCD/Systems/RCDSystem.cs @@ -1,5 +1,4 @@ using Content.Shared.Administration.Logs; -using Content.Shared.Charges.Components; using Content.Shared.Charges.Systems; using Content.Shared.Construction; using Content.Shared.Database; @@ -89,11 +88,14 @@ public sealed class RCDSystem : EntitySystem if (!component.AvailablePrototypes.Contains(args.ProtoId)) return; - if (!_protoManager.HasIndex(args.ProtoId)) + if (!_protoManager.Resolve(args.ProtoId, out var prototype)) return; // Set the current RCD prototype to the one supplied component.ProtoId = args.ProtoId; + + _adminLogger.Add(LogType.RCD, LogImpact.Low, $"{args.Actor} set RCD mode to: {prototype.Mode} : {prototype.Prototype}"); + Dirty(uid, component); }