2021-11-22 23:22:59 -08:00
|
|
|
using Content.Shared.MobState;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.MobState.State;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-29 13:20:37 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.MobState.States
|
2020-08-29 13:20:37 +02:00
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class DeadMobState : SharedDeadMobState
|
2020-08-29 13:20:37 +02:00
|
|
|
{
|
2021-11-09 12:15:12 +01:00
|
|
|
public override void EnterState(EntityUid uid, IEntityManager entityManager)
|
2020-08-29 13:20:37 +02:00
|
|
|
{
|
2021-11-09 12:15:12 +01:00
|
|
|
base.EnterState(uid, entityManager);
|
2020-12-07 14:52:55 +01:00
|
|
|
|
2021-11-09 12:15:12 +01:00
|
|
|
if (entityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
|
2020-08-29 13:20:37 +02:00
|
|
|
{
|
|
|
|
|
appearance.SetData(DamageStateVisuals.State, DamageState.Dead);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|