Damage masks (#9402)
This commit is contained in:
@@ -4,7 +4,6 @@ using Content.Server.Popups;
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.CharacterAppearance.Components;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.MobState;
|
||||
using Content.Shared.MobState.Components;
|
||||
using Content.Shared.Tag;
|
||||
@@ -12,8 +11,6 @@ using Robust.Shared.Audio;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Player;
|
||||
using System.Threading;
|
||||
using Content.Shared.MobState.State;
|
||||
using Content.Shared.Doors.Components;
|
||||
|
||||
namespace Content.Server.Dragon
|
||||
{
|
||||
@@ -24,7 +21,6 @@ namespace Content.Server.Dragon
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly BloodstreamSystem _bloodstreamSystem = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _containerSystem = default!;
|
||||
[Dependency] private readonly TagSystem _tagSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -127,8 +123,8 @@ namespace Content.Server.Dragon
|
||||
{
|
||||
switch (targetState.CurrentState)
|
||||
{
|
||||
case SharedCriticalMobState:
|
||||
case SharedDeadMobState:
|
||||
case DamageState.Critical:
|
||||
case DamageState.Dead:
|
||||
component.CancelToken = new CancellationTokenSource();
|
||||
|
||||
_doAfterSystem.DoAfter(new DoAfterEventArgs(uid, component.DevourTime, component.CancelToken.Token, target)
|
||||
|
||||
Reference in New Issue
Block a user