Network pacifiedcomponent (#13012)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user