Files
wwdpublic/Content.Server/_Shitmed/StatusEffects/ScramEffectSystem.cs
Spatison 2a10c02eb5 No spead merge (#475)
* Revert "[GoobPort] WIZ REAL (#465)"

This reverts commit 091a8ff433.

* fix local
2025-04-26 10:50:32 +03:00

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);
}
}