mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 16:48:10 +03:00
* Уэээээээ * Почти настрадались * Скоро конец.... * СКОРО * Мышки плакали, кололись, но продолжали упорно жрать кактус * Все ближе! * Это такой конец? * Книжка говна * фиксики * ОНО ЖИВОЕ * Телепорт * разное * Added byond * ивенты теперь работают * Разфикс телепорта * Свет мой зеркальце скажи, да всю правду доложи - Я ль робастней всех на свете? * Разное * Еще многа всего * Многа разнава * Скоро конец.... * ЭТО КОНЕЦ * Фикс линтера (ну, или я на это надеюсь) * Еще один фикс линтера * Победа! * фиксики * пу пу пу * Фикс подмастерья * Мисклик * Высокочастотный меч * Неймспейсы * Пул способностей мага
24 lines
808 B
C#
24 lines
808 B
C#
using Content.Server._Shitcode.Teleportation.Components;
|
|
using Content.Server._Shitcode.Teleportation.Systems;
|
|
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);
|
|
}
|
|
|
|
|
|
}
|