Compare commits

...

4 Commits

Author SHA1 Message Date
Redrover1760 6ec6c68fb9 Merge branch 'main' into anomaly-crit 2026-03-18 13:27:50 -04:00
UnicornOnLSD 1f113e3ff0 Merge branch 'main' into anomaly-crit 2026-03-05 12:52:18 +01:00
Redrover1760 617f00a0d9 waaw 2026-03-01 01:48:35 -05:00
Redrover1760 6e04c303d7 supercrit anomalies no longer gib, instead they deal 250 rad and 50 genetic 2026-03-01 01:39:17 -05:00
@@ -17,6 +17,8 @@ using Robust.Shared.Audio.Systems;
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;
@@ -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 },
}
};
public override void Initialize()
{
base.Initialize();
@@ -135,7 +157,10 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
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
}
private void OnSeverityChanged(Entity<InnerBodyAnomalyComponent> ent, ref AnomalySeverityChangedEvent args)