Network pacifiedcomponent (#13012)
This commit is contained in:
parent
1a63172554
commit
5a756a0094
|
|
@ -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
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue