* init * fax translate * translate * translate cargo panel * road map translate * Fix cargo panel | fix bot craft translate * fix, steal objectives translate * do not break my not localized fax! * fix * radio guide translate * Better DefaultRules * Translate Criminal Records * Space luw fully translate excluding CrimeList(need to rework) * Some Guidebook translate * Перевод глоссария, некоторые термины были переписанны под РУ комьюнити игры, некоторые к сожелению остались прежними * Fix * fix, translate * Обновил структуру SpeakOnUIClosed, пофиксил перевод автоматов * update and fix * fully translate * fix * not fail but warn * fix * fix2 * фикс уже переведённого дерьма от корвахов * Добавил термин подов в глоссарий * roles translate fix * Сикей в глоссарий * Delete Resources/Locale/ru-RU/_sunrise/info/character-info.ftl * remove cluster from pool * new translation * fully translate borgs * some fixes * Mr.Chang moment * upd * upd * upd * hotfix * big fix * fix some hardcode lang * oh no shitcode language * some translation * some actions| admin commands translate start * some new translation * fully translate commands | figurines | chat-repo * upd * second upd * upd * start translating items * some fixes * translate wackpack Из-за игры слов, я не смог нормально интерпритировать это дерьмо, так что пусть будет так, да теряется смысл и смешинка, но извините, я не смог как-то придумать игру слов * translate * debug translate * upd * Актуализация всего перевода * fix * fix * upd * some fixes | guns to his folders * upd * upd * upd * upd * upd * upd * Перевод меток атмоса * Последние коррективы * fix * some hardcode localization fix * fix * some fixes * stats entry fully translate * upd * some fixes * translate server side stats entry * fix * fix * fix2 * fix * upd * upd * fix * holly shit * fix * totaly feed * upd * upd * fix * upd * init * upd * upd * access in prototypes * Sunrise comments on code * my bad * я даун
34 lines
1 KiB
C#
34 lines
1 KiB
C#
using Content.Shared.Examine;
|
|
using Content.Shared.Ghost;
|
|
using Robust.Shared.Localization; //Sunrise-Edit
|
|
|
|
namespace Content.Server.Warps;
|
|
|
|
public sealed class WarpPointSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<WarpPointComponent, ExaminedEvent>(OnWarpPointExamine);
|
|
}
|
|
|
|
private void OnWarpPointExamine(EntityUid uid, WarpPointComponent component, ExaminedEvent args)
|
|
{
|
|
if (!HasComp<GhostComponent>(args.Examiner))
|
|
return;
|
|
|
|
//Sunrise-Start
|
|
var locationKey = component.Location;
|
|
|
|
if (locationKey != null)
|
|
{
|
|
var loc = Loc.GetString($"location-{locationKey.Replace(" ", "-")}");
|
|
args.PushText(Loc.GetString("warp-point-component-on-examine-success", ("location", loc)));
|
|
}
|
|
else
|
|
{
|
|
args.PushText(Loc.GetString("warp-point-component-on-examine-success", ("location", "<null>")));
|
|
}
|
|
//Sunrise-End
|
|
}
|
|
}
|