Damage masks (#9402)
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Linq;
|
||||
using Content.Shared.Damage.Prototypes;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.MobState;
|
||||
using Content.Shared.MobState.Components;
|
||||
using Content.Shared.Radiation.Events;
|
||||
using Robust.Shared.GameStates;
|
||||
@@ -256,7 +257,7 @@ namespace Content.Shared.Damage
|
||||
int ent1DeadState = 0;
|
||||
foreach (var state in oldstate._highestToLowestStates)
|
||||
{
|
||||
if (state.Value.IsDead())
|
||||
if (state.Value == DamageState.Dead)
|
||||
{
|
||||
ent1DeadState = state.Key;
|
||||
}
|
||||
@@ -265,7 +266,7 @@ namespace Content.Shared.Damage
|
||||
int ent2DeadState = 0;
|
||||
foreach (var state in newstate._highestToLowestStates)
|
||||
{
|
||||
if (state.Value.IsDead())
|
||||
if (state.Value == DamageState.Dead)
|
||||
{
|
||||
ent2DeadState = state.Key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user