]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Nozzle Direction Localization (#29849)
authorchavonadelal <156101927+chavonadelal@users.noreply.github.com>
Tue, 9 Jul 2024 16:11:07 +0000 (19:11 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2024 16:11:07 +0000 (18:11 +0200)
Content.Server/Shuttles/Systems/ThrusterSystem.cs

index e82235e44f5bac56bdb783b1927fab177e23efc8..fd149630814c16f711503ed3ce673ff6364e3d3f 100644 (file)
@@ -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);