Blindness, Narcolepsy, Pacifism, and uncontrollable sneezing (#11489)
* 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>
This commit is contained in:
17
Content.Server/Traits/Assorted/PacifistSystem.cs
Normal file
17
Content.Server/Traits/Assorted/PacifistSystem.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user