2024-03-27 19:30:19 +07:00
|
|
|
|
using Content.Shared._White.Cult;
|
2024-01-27 15:19:52 +03:00
|
|
|
|
using Robust.Server.GameObjects;
|
|
|
|
|
|
using Timer = Robust.Shared.Timing.Timer;
|
|
|
|
|
|
|
2024-01-28 18:18:54 +07:00
|
|
|
|
namespace Content.Server._White.Cult.Runes.Systems;
|
2024-01-27 15:19:52 +03:00
|
|
|
|
|
|
|
|
|
|
public partial class CultSystem
|
|
|
|
|
|
{
|
|
|
|
|
|
[Dependency] private readonly AppearanceSystem _appearanceSystem = default!;
|
|
|
|
|
|
|
|
|
|
|
|
private void InitializeNarsie()
|
|
|
|
|
|
{
|
|
|
|
|
|
SubscribeLocalEvent<NarsieComponent, ComponentInit>(OnNarsieComponentInit);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void OnNarsieComponentInit(EntityUid uid, NarsieComponent component, ComponentInit args)
|
|
|
|
|
|
{
|
|
|
|
|
|
_appearanceSystem.SetData(uid, NarsieVisualState.VisualState, NarsieVisuals.Spawning);
|
|
|
|
|
|
|
|
|
|
|
|
Timer.Spawn(TimeSpan.FromSeconds(6), () =>
|
|
|
|
|
|
{
|
|
|
|
|
|
_appearanceSystem.SetData(uid, NarsieVisualState.VisualState, NarsieVisuals.Spawned);
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|