Fix gun clumsy (#11246)

This commit is contained in:
metalgearsloth
2022-09-13 23:52:36 +10:00
committed by GitHub
parent 6596534390
commit fed0c0c108
7 changed files with 64 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ using Content.Shared.Popups;
using Robust.Shared.Audio;
using Robust.Shared.Player;
using System.Diagnostics.CodeAnalysis;
using Content.Server.Interaction;
namespace Content.Server.Chemistry.Components
{
@@ -48,7 +49,7 @@ namespace Content.Server.Chemistry.Components
{
msgFormat = "hypospray-component-inject-self-message";
}
else if (EligibleEntity(user, _entMan) && ClumsyComponent.TryRollClumsy(user, ClumsyFailChance))
else if (EligibleEntity(user, _entMan) && _entMan.EntitySysManager.GetEntitySystem<InteractionSystem>().TryRollClumsy(user, ClumsyFailChance))
{
msgFormat = "hypospray-component-inject-self-clumsy-message";
target = user;