Files
crystall-punk-14/Content.Client/MobState/States/DeadMobState.cs
Vera Aguilera Puerto e5c062559a MobStates use EntityUid
2021-11-09 12:15:12 +01:00

22 lines
629 B
C#

using Content.Shared.MobState;
using Content.Shared.MobState.State;
using Content.Shared.Standing;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.MobState.States
{
public class DeadMobState : SharedDeadMobState
{
public override void EnterState(EntityUid uid, IEntityManager entityManager)
{
base.EnterState(uid, entityManager);
if (entityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
{
appearance.SetData(DamageStateVisuals.State, DamageState.Dead);
}
}
}
}