2020-12-07 14:52:55 +01:00
|
|
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
2020-08-29 13:20:37 +02:00
|
|
|
|
using Content.Shared.GameObjects.Components.Mobs.State;
|
|
|
|
|
|
using Robust.Client.GameObjects;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-29 13:20:37 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.Components.Mobs.State
|
|
|
|
|
|
{
|
2020-12-07 14:52:55 +01:00
|
|
|
|
public class NormalMobState : SharedNormalMobState
|
2020-08-29 13:20:37 +02:00
|
|
|
|
{
|
|
|
|
|
|
public override void EnterState(IEntity entity)
|
|
|
|
|
|
{
|
2020-12-07 14:52:55 +01:00
|
|
|
|
base.EnterState(entity);
|
|
|
|
|
|
|
2020-08-29 13:20:37 +02:00
|
|
|
|
if (entity.TryGetComponent(out AppearanceComponent appearance))
|
|
|
|
|
|
{
|
|
|
|
|
|
appearance.SetData(DamageStateVisuals.State, DamageState.Alive);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|