Skip to content

Commit

Permalink
keep organs after gib
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShuEd committed Sep 12, 2024
1 parent ea1a059 commit 7e74eae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ private void AddAnomalyToBody(Entity<InnerBodyAnomalyComponent> ent)

private void OnAnomalyPulse(Entity<InnerBodyAnomalyComponent> ent, ref AnomalyPulseEvent args)
{
_stun.TryParalyze(ent, TimeSpan.FromSeconds(ent.Comp.StunDuration / 2), true);
_jitter.DoJitter(ent, TimeSpan.FromSeconds(ent.Comp.StunDuration / 2), true);
_stun.TryParalyze(ent, TimeSpan.FromSeconds(ent.Comp.StunDuration / 2 * args.Severity), true);
_jitter.DoJitter(ent, TimeSpan.FromSeconds(ent.Comp.StunDuration / 2 * args.Severity), true);
}

private void OnAnomalySupercritical(Entity<InnerBodyAnomalyComponent> ent, ref AnomalySupercriticalEvent args)
{
if (!TryComp<BodyComponent>(ent, out var body))
return;

_body.GibBody(ent, body: body);
_body.GibBody(ent, true, body, splatModifier: 5f);
}

private void OnSeverityChanged(Entity<InnerBodyAnomalyComponent> ent, ref AnomalySeverityChangedEvent args)
Expand Down

0 comments on commit 7e74eae

Please sign in to comment.