Респрайты алертов (#526)
* bleed alert respire + remove hardcoded shit from bloodstreamSystem * resprite thirst icons * ensnared alert meme resprite
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user