Network pacifiedcomponent (#13012)

This commit is contained in:
metalgearsloth
2022-12-14 04:02:02 +11:00
committed by GitHub
parent 1a63172554
commit 5a756a0094
2 changed files with 5 additions and 2 deletions

View File

@@ -28,9 +28,10 @@ namespace Content.Shared.CombatMode.Pacification
if (combatMode.CanDisarm != null)
combatMode.CanDisarm = false;
combatMode.IsInCombatMode = false;
if (combatMode.CombatToggleAction != null)
{
combatMode.IsInCombatMode = false;
_actionsSystem.SetEnabled(combatMode.CombatToggleAction, false);
}
}

View File

@@ -1,9 +1,11 @@
using Robust.Shared.GameStates;
namespace Content.Shared.CombatMode.Pacification
{
/// <summary>
/// Status effect that disables combat mode.
/// </summary>
[RegisterComponent]
[RegisterComponent, NetworkedComponent]
public sealed class PacifiedComponent : Component
{