This commit is contained in:
Remuchi
2024-01-10 21:14:43 +07:00
parent e52d533b2c
commit 31979e68df
2 changed files with 3 additions and 10 deletions

View File

@@ -106,9 +106,9 @@ public sealed class BloodstreamSystem : EntitySystem
continue; continue;
//WD-EDIT //WD-EDIT
if (bloodstream.IsBleeding) if (bloodstream.IsBleeding)
_alertsSystem.ShowAlert(uid, AlertType.Bleed); _alertsSystem.ShowAlert(uid, AlertType.Bleeding);
else else
_alertsSystem.ClearAlert(uid, AlertType.Bleed); _alertsSystem.ClearAlert(uid, AlertType.Bleeding);
//WD-EDIT //WD-EDIT
// Adds blood to their blood level if it is below the maximum; Blood regeneration. Must be alive. // 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 += amount;
component.BleedAmount = Math.Clamp(component.BleedAmount, 0, component.MaxBleedAmount); 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; return true;
} }

View File

@@ -22,6 +22,7 @@ namespace Content.Shared.Alert
HumanCrit, HumanCrit,
HumanDead, HumanDead,
HumanHealth, HumanHealth,
Bleeding,
BorgBattery, BorgBattery,
BorgBatteryNone, BorgBatteryNone,
PilotingShuttle, PilotingShuttle,