Респрайты алертов (#526)

* bleed alert respire + remove hardcoded shit from bloodstreamSystem

* resprite thirst icons

* ensnared alert meme resprite
This commit is contained in:
ThereDrD0
2024-08-01 06:57:26 +03:00
committed by GitHub
parent 3140e7b9e9
commit 567afd55c1
27 changed files with 101 additions and 24 deletions

View File

@@ -413,7 +413,13 @@ public sealed class BloodstreamSystem : EntitySystem
_alertsSystem.ClearAlert(uid, AlertType.Bleed);
else
{
var severity = (short) Math.Clamp(Math.Round(component.BleedAmount, MidpointRounding.ToZero), 0, 10);
if (!_prototypeManager.TryIndex<AlertPrototype>(component.BloodAlertPrototypeID, out var alertPrototype))
return false;
var severity = (short) Math.Clamp(Math.Round(component.BleedAmount, MidpointRounding.ToZero),
alertPrototype.MinSeverity,
alertPrototype.MaxSeverity);
_alertsSystem.ShowAlert(uid, AlertType.Bleed, severity);
}