From 31979e68df8a899dae9da400867c51f7f9916e77 Mon Sep 17 00:00:00 2001 From: Remuchi Date: Wed, 10 Jan 2024 21:14:43 +0700 Subject: [PATCH] fixooooo --- Content.Server/Body/Systems/BloodstreamSystem.cs | 12 ++---------- Content.Shared/Alert/AlertType.cs | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Content.Server/Body/Systems/BloodstreamSystem.cs b/Content.Server/Body/Systems/BloodstreamSystem.cs index 345915cb27..1e9902c81e 100644 --- a/Content.Server/Body/Systems/BloodstreamSystem.cs +++ b/Content.Server/Body/Systems/BloodstreamSystem.cs @@ -106,9 +106,9 @@ public sealed class BloodstreamSystem : EntitySystem continue; //WD-EDIT if (bloodstream.IsBleeding) - _alertsSystem.ShowAlert(uid, AlertType.Bleed); + _alertsSystem.ShowAlert(uid, AlertType.Bleeding); else - _alertsSystem.ClearAlert(uid, AlertType.Bleed); + _alertsSystem.ClearAlert(uid, AlertType.Bleeding); //WD-EDIT // Adds blood to their blood level if it is below the maximum; Blood regeneration. Must be alive. @@ -386,14 +386,6 @@ public sealed class BloodstreamSystem : EntitySystem component.BleedAmount += amount; component.BleedAmount = Math.Clamp(component.BleedAmount, 0, component.MaxBleedAmount); - if (component.BleedAmount == 0) - _alertsSystem.ClearAlert(uid, AlertType.Bleed); - else - { - var severity = (short) Math.Clamp(Math.Round(component.BleedAmount, MidpointRounding.ToZero), 0, 10); - _alertsSystem.ShowAlert(uid, AlertType.Bleed, severity); - } - return true; } diff --git a/Content.Shared/Alert/AlertType.cs b/Content.Shared/Alert/AlertType.cs index 68db360231..f236e6fb09 100644 --- a/Content.Shared/Alert/AlertType.cs +++ b/Content.Shared/Alert/AlertType.cs @@ -22,6 +22,7 @@ namespace Content.Shared.Alert HumanCrit, HumanDead, HumanHealth, + Bleeding, BorgBattery, BorgBatteryNone, PilotingShuttle,