Network pacifiedcomponent (#13012)
This commit is contained in:
@@ -28,9 +28,10 @@ namespace Content.Shared.CombatMode.Pacification
|
|||||||
if (combatMode.CanDisarm != null)
|
if (combatMode.CanDisarm != null)
|
||||||
combatMode.CanDisarm = false;
|
combatMode.CanDisarm = false;
|
||||||
|
|
||||||
|
combatMode.IsInCombatMode = false;
|
||||||
|
|
||||||
if (combatMode.CombatToggleAction != null)
|
if (combatMode.CombatToggleAction != null)
|
||||||
{
|
{
|
||||||
combatMode.IsInCombatMode = false;
|
|
||||||
_actionsSystem.SetEnabled(combatMode.CombatToggleAction, false);
|
_actionsSystem.SetEnabled(combatMode.CombatToggleAction, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
using Robust.Shared.GameStates;
|
||||||
|
|
||||||
namespace Content.Shared.CombatMode.Pacification
|
namespace Content.Shared.CombatMode.Pacification
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Status effect that disables combat mode.
|
/// Status effect that disables combat mode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent, NetworkedComponent]
|
||||||
public sealed class PacifiedComponent : Component
|
public sealed class PacifiedComponent : Component
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user