Fixing MobState issues (#13465)
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com> Fixes https://github.com/space-wizards/space-station-14/issues/13461
This commit is contained in:
@@ -16,6 +16,12 @@ public abstract class AlertsSystem : EntitySystem
|
||||
: null;
|
||||
}
|
||||
|
||||
public short GetSeverityRange(AlertType alertType)
|
||||
{
|
||||
var minSeverity = _typeToAlert[alertType].MinSeverity;
|
||||
return (short)MathF.Min(minSeverity,_typeToAlert[alertType].MaxSeverity - minSeverity);
|
||||
}
|
||||
|
||||
public short GetMaxSeverity(AlertType alertType)
|
||||
{
|
||||
return _typeToAlert[alertType].MaxSeverity;
|
||||
|
||||
Reference in New Issue
Block a user