From b511d8e18033a0f2a4ce1c83e8cd866901a353fc Mon Sep 17 00:00:00 2001 From: chavonadelal <156101927+chavonadelal@users.noreply.github.com> Date: Tue, 9 Jul 2024 19:11:07 +0300 Subject: [PATCH] Nozzle Direction Localization (#29849) --- Content.Server/Shuttles/Systems/ThrusterSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Shuttles/Systems/ThrusterSystem.cs b/Content.Server/Shuttles/Systems/ThrusterSystem.cs index e82235e44f..fd14963081 100644 --- a/Content.Server/Shuttles/Systems/ThrusterSystem.cs +++ b/Content.Server/Shuttles/Systems/ThrusterSystem.cs @@ -18,6 +18,7 @@ using Robust.Shared.Physics.Events; using Robust.Shared.Physics.Systems; using Robust.Shared.Timing; using Robust.Shared.Utility; +using Content.Shared.Localizations; namespace Content.Server.Shuttles.Systems; @@ -67,8 +68,9 @@ public sealed class ThrusterSystem : EntitySystem EntityManager.TryGetComponent(uid, out TransformComponent? xform) && xform.Anchored) { + var nozzleLocalization = ContentLocalizationManager.FormatDirection(xform.LocalRotation.Opposite().ToWorldVec().GetDir()).ToLower(); var nozzleDir = Loc.GetString("thruster-comp-nozzle-direction", - ("direction", xform.LocalRotation.Opposite().ToWorldVec().GetDir().ToString().ToLowerInvariant())); + ("direction", nozzleLocalization)); args.PushMarkup(nozzleDir); -- 2.51.2