[feat] bleeding alert, separated chat is default

# Conflicts:
#	Content.Server/Body/Components/BloodstreamComponent.cs
#	Content.Server/Body/Systems/BloodstreamSystem.cs
#	Content.Shared/Alert/AlertType.cs
This commit is contained in:
rhailrake
2023-04-25 01:24:58 +06:00
committed by Remuchi
parent 2f1976a749
commit cfa31be8d4
5 changed files with 24 additions and 1 deletions

View File

@@ -104,6 +104,12 @@ public sealed class BloodstreamSystem : EntitySystem
if (!_solutionContainerSystem.ResolveSolution(uid, bloodstream.BloodSolutionName, ref bloodstream.BloodSolution, out var bloodSolution))
continue;
//WD-EDIT
if (bloodstream.IsBleeding)
_alertsSystem.ShowAlert(uid, AlertType.Bleed);
else
_alertsSystem.ClearAlert(uid, AlertType.Bleed);
//WD-EDIT
// Adds blood to their blood level if it is below the maximum; Blood regeneration. Must be alive.
if (bloodSolution.Volume < bloodSolution.MaxVolume && !_mobStateSystem.IsDead(uid))