Damage masks (#9402)
This commit is contained in:
19
Content.Server/MobState/MobStateSystem.Dead.cs
Normal file
19
Content.Server/MobState/MobStateSystem.Dead.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Shared.Alert;
|
||||
using Content.Shared.StatusEffect;
|
||||
|
||||
namespace Content.Server.MobState;
|
||||
|
||||
public sealed partial class MobStateSystem
|
||||
{
|
||||
public override void EnterDeadState(EntityUid uid)
|
||||
{
|
||||
base.EnterDeadState(uid);
|
||||
|
||||
Alerts.ShowAlert(uid, AlertType.HumanDead);
|
||||
|
||||
if (HasComp<StatusEffectsComponent>(uid))
|
||||
{
|
||||
Status.TryRemoveStatusEffect(uid, "Stun");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user