Damage masks (#9402)

This commit is contained in:
metalgearsloth
2022-07-06 17:58:14 +10:00
committed by GitHub
parent 0bbdd0c1a3
commit a2a5df1990
55 changed files with 1160 additions and 930 deletions

View File

@@ -1,6 +1,5 @@
using System.Linq;
using Content.Server.AI.Components;
using Content.Server.MobState.States;
using Content.Shared.CCVar;
using Content.Shared.MobState;
using JetBrains.Annotations;
@@ -121,11 +120,11 @@ namespace Content.Server.AI.EntitySystems
{
switch (args.CurrentMobState)
{
case NormalMobState:
case DamageState.Alive:
component.Awake = true;
break;
case CriticalMobState:
case DeadMobState:
case DamageState.Critical:
case DamageState.Dead:
component.Awake = false;
break;
}