Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
using Robust.Shared.Physics.Events;
using Robust.Shared.Prototypes;
using Robust.Server.GameObjects; // Frontier
using Content.Shared.Damage; // Mono
using Content.Shared.Damage.Prototypes; // Mono

namespace Content.Server.Anomaly.Effects;

Expand All @@ -35,9 +37,29 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
[Dependency] private readonly StunSystem _stun = default!;
[Dependency] private readonly TransformSystem _transform = default!; // Frontier
[Dependency] private readonly SharedAnomalyCoreSystem _anomalyCore = default!; // Frontier
[Dependency] DamageableSystem _damageable = default!; // Mono

private readonly Color _messageColor = Color.FromSrgb(new Color(201, 22, 94));

private readonly DamageSpecifier _superCriticalDamage = new() // Mono
{
DamageDict = new()
{
{ "Radiation", 250 },
{ "Caustic", 300 },
{ "Heat", 100 },
}
};

private readonly DamageSpecifier _superCriticalGeneticDamage = new() // Mono
{
DamageDict = new()
{
{ "Cellular", 50 },
}
};
Comment on lines +44 to +60
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be in the anomaly component



public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -135,7 +157,10 @@ private void OnAnomalySupercritical(Entity<InnerBodyAnomalyComponent> ent, ref A
if (!TryComp<BodyComponent>(ent, out var body))
return;

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

_damageable.TryChangeDamage(ent, _superCriticalDamage, true);
_damageable.TryChangeDamage(ent, _superCriticalGeneticDamage, false); // to ensure we don't deal genetic damage to IPCs
Comment on lines +162 to +163
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't believe this is needed

}

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