fixooooo
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ namespace Content.Shared.Alert
|
|||||||
HumanCrit,
|
HumanCrit,
|
||||||
HumanDead,
|
HumanDead,
|
||||||
HumanHealth,
|
HumanHealth,
|
||||||
|
Bleeding,
|
||||||
BorgBattery,
|
BorgBattery,
|
||||||
BorgBatteryNone,
|
BorgBatteryNone,
|
||||||
PilotingShuttle,
|
PilotingShuttle,
|
||||||
|
|||||||
Reference in New Issue
Block a user