From 93efa6c3b82ab02650cfd72d74f9cc16cf26db89 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 15 Aug 2022 14:23:23 +1000 Subject: [PATCH] Fix some unneeded debug logs (#10485) 2 data definitions + NPCs. --- Content.Server/AI/EntitySystems/NPCSystem.cs | 1 + .../Polymorph/Systems/PolymorphableSystem.cs | 12 +++++------- .../Ranged/Systems/SharedGunSystem.Interactions.cs | 6 +----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Content.Server/AI/EntitySystems/NPCSystem.cs b/Content.Server/AI/EntitySystems/NPCSystem.cs index 966ab5a31e..878a929d1d 100644 --- a/Content.Server/AI/EntitySystems/NPCSystem.cs +++ b/Content.Server/AI/EntitySystems/NPCSystem.cs @@ -40,6 +40,7 @@ namespace Content.Server.AI.EntitySystems #endif _sawmill = Logger.GetSawmill("npc"); + _sawmill.Level = LogLevel.Info; InitializeUtility(); SubscribeLocalEvent(OnMobStateChange); SubscribeLocalEvent(OnNPCInit); diff --git a/Content.Server/Polymorph/Systems/PolymorphableSystem.cs b/Content.Server/Polymorph/Systems/PolymorphableSystem.cs index 2c50bbfcb7..34b953cb84 100644 --- a/Content.Server/Polymorph/Systems/PolymorphableSystem.cs +++ b/Content.Server/Polymorph/Systems/PolymorphableSystem.cs @@ -184,7 +184,10 @@ namespace Content.Server.Polymorph.Systems var act = new InstantAction() { - Event = new PolymorphActionEvent(polyproto), + Event = new PolymorphActionEvent() + { + Prototype = polyproto, + }, Name = Loc.GetString("polymorph-self-action-name", ("target", entproto.Name)), Description = Loc.GetString("polymorph-self-action-description", ("target", entproto.Name)), Icon = new SpriteSpecifier.EntityPrototype(polyproto.Entity), @@ -224,11 +227,6 @@ namespace Content.Server.Polymorph.Systems /// The polymorph prototype containing all the information about /// the specific polymorph. /// - public readonly PolymorphPrototype Prototype; - - public PolymorphActionEvent(PolymorphPrototype prototype) - { - Prototype = prototype; - } + public PolymorphPrototype Prototype = default!; }; } diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs index 0f4ba1f2ee..56d3d31f53 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs @@ -84,14 +84,10 @@ public abstract partial class SharedGunSystem SelectFire(component, nextMode, user); } + // TODO: Actions need doing for guns anyway. private sealed class CycleModeEvent : InstantActionEvent { public SelectiveFire Mode; - - public CycleModeEvent(SelectiveFire mode) - { - Mode = mode; - } } private void OnCycleMode(EntityUid uid, GunComponent component, CycleModeEvent args)