mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
21 lines
696 B
C#
21 lines
696 B
C#
using Content.Shared._Shitmed.StatusEffects;
|
|
using Content.Server.Teleportation;
|
|
|
|
namespace Content.Server._Shitmed.StatusEffects;
|
|
|
|
public sealed class ScrambleLocationEffectSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly TeleportSystem _teleportSys = default!;
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<ScrambleLocationEffectComponent, ComponentInit>(OnInit);
|
|
}
|
|
private void OnInit(EntityUid uid, ScrambleLocationEffectComponent component, ComponentInit args)
|
|
{
|
|
// TODO: Add the teleport component via onAdd:
|
|
var teleport = EnsureComp<RandomTeleportComponent>(uid);
|
|
_teleportSys.RandomTeleport(uid, teleport);
|
|
}
|
|
|
|
|
|
} |