Moves muted to shared (#25374)

* moves muted to shared

* fixes usings

* Update MutedComponent.cs

funny webedit

* Update MutedComponent.cs

oops using statement webedit

(cherry picked from commit 046c874daeb60609d8880fe27617836d37de1a94)
This commit is contained in:
keronshb
2024-02-21 21:53:46 +01:00
committed by Debug
parent 38268dcd3f
commit fd4445253d
7 changed files with 17 additions and 8 deletions

View File

@@ -10,7 +10,8 @@ using Content.Shared.Physics;
using Robust.Shared.Containers;
using Robust.Shared.Map;
using Robust.Shared.Timing;
using Content.Shared.Abilities.Psionics; //Nyano - Summary: Makes Mime psionic.
using Content.Shared.Abilities.Psionics; //Nyano - Summary: Makes Mime psionic.
using Content.Shared.Speech.Muting;
namespace Content.Server.Abilities.Mime
{
@@ -57,7 +58,7 @@ namespace Content.Server.Abilities.Mime
EnsureComp<MutedComponent>(uid);
_alertsSystem.ShowAlert(uid, AlertType.VowOfSilence);
_actionsSystem.AddAction(uid, ref component.InvisibleWallActionEntity, component.InvisibleWallAction, uid);
//Nyano - Summary: Add Psionic Ability to Mime.
//Nyano - Summary: Add Psionic Ability to Mime.
if (TryComp<PsionicComponent>(uid, out var psionic) && psionic.PsionicAbility == null)
psionic.PsionicAbility = component.InvisibleWallActionEntity;
}

View File

@@ -7,6 +7,7 @@ using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Robust.Server.Console;
using Robust.Shared.Player;
using Content.Shared.Speech.Muting;
namespace Content.Server.Mobs;

View File

@@ -1,6 +1,7 @@
using Content.Server.Chat.Systems;
using Content.Server.Speech.Muting;
using Content.Shared.Mobs;
using Content.Shared.Speech.Muting;
using Robust.Shared.Prototypes;
namespace Content.Server.Mobs;

View File

@@ -5,6 +5,7 @@ using Content.Shared.Puppet;
using Content.Server.Speech.Muting;
using Content.Shared.CombatMode;
using Content.Shared.Hands;
using Content.Shared.Speech.Muting;
namespace Content.Server.Puppet
{

View File

@@ -1,6 +0,0 @@
namespace Content.Server.Speech.Muting
{
[RegisterComponent]
public sealed partial class MutedComponent : Component
{}
}

View File

@@ -6,6 +6,7 @@ using Content.Server.Speech.EntitySystems;
using Content.Shared.Chat.Prototypes;
using Content.Shared.Puppet;
using Content.Shared.Speech;
using Content.Shared.Speech.Muting;
namespace Content.Server.Speech.Muting
{

View File

@@ -0,0 +1,10 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Speech.Muting
{
[RegisterComponent, NetworkedComponent]
public sealed partial class MutedComponent : Component
{
}
}