* start work * blindness actually works now * doc * doc you too. * i desire to sneeze my lungs out * no punchie * s Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
18 lines
455 B
C#
18 lines
455 B
C#
using Content.Shared.CombatMode.Pacification;
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
|
|
|
/// <summary>
|
|
/// This handles enforced pacifism.
|
|
/// </summary>
|
|
public sealed class PacifistSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var comp in EntityQuery<PacifistComponent>())
|
|
{
|
|
EnsureComp<PacifiedComponent>(comp.Owner); // It's a status effect so just enforce it.
|
|
}
|
|
}
|
|
}
|