Skip to content

Commit

Permalink
death to eorg (#598)
Browse files Browse the repository at this point in the history
Co-authored-by: deltanedas <@deltanedas:kde.org>
  • Loading branch information
deltanedas authored Dec 29, 2023
1 parent 985b2f9 commit fe526b7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Content.Server/DeltaV/RoundEnd/RoundEndSystem.Pacified.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Server.Emp;
using Content.Server.Explosion.Components;
using Content.Server.Flash.Components;
using Content.Server.GameTicking;
using Content.Server.Popups;
using Content.Server.Store.Components;
Expand Down Expand Up @@ -38,19 +38,25 @@ private void OnRoundEnded(RoundEndTextAppendEvent ev)
var harmQuery = EntityQueryEnumerator<CombatModeComponent>();
while (harmQuery.MoveNext(out var uid, out var _))
{
_entityManager.EnsureComponent<PacifiedComponent>(uid);
EnsureComp<PacifiedComponent>(uid);
}

var grenadeQuery = EntityQueryEnumerator<ExplodeOnTriggerComponent>();
var explosiveQuery = EntityQueryEnumerator<ExplosiveComponent>();
while (explosiveQuery.MoveNext(out var uid, out var _))
{
RemComp<ExplosiveComponent>(uid);
}

var grenadeQuery = EntityQueryEnumerator<OnUseTimerTriggerComponent>();
while (grenadeQuery.MoveNext(out var uid, out var _))
{
_entityManager.RemoveComponent<ExplodeOnTriggerComponent>(uid);
RemComp<OnUseTimerTriggerComponent>(uid);
}

var empQuery = EntityQueryEnumerator<EmpOnTriggerComponent>();
while (empQuery.MoveNext(out var uid, out var _))
var flashQuery = EntityQueryEnumerator<FlashComponent>();
while (flashQuery.MoveNext(out var uid, out var _))
{
_entityManager.RemoveComponent<EmpOnTriggerComponent>(uid);
RemComp<FlashComponent>(uid);
}

var uplinkQuery = EntityQueryEnumerator<StoreComponent>();
Expand Down

0 comments on commit fe526b7

Please sign in to comment.