Skip to content

Commit

Permalink
Nozzle Direction Localization (#29849)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavonadelal authored Jul 9, 2024
1 parent c9be1ef commit b511d8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Server/Shuttles/Systems/ThrusterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using Robust.Shared.Physics.Systems;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
using Content.Shared.Localizations;

namespace Content.Server.Shuttles.Systems;

Expand Down Expand Up @@ -67,8 +68,9 @@ private void OnThrusterExamine(EntityUid uid, ThrusterComponent component, Exami
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);

Expand Down

0 comments on commit b511d8e

Please sign in to comment.