Skip to content

Commit

Permalink
Remove extraneous includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkheemist committed Dec 27, 2024
1 parent c2882f8 commit 6cb3644
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions Content.Server/_NF/Shuttles/Systems/AdvDoorSealSystem.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
using System.Numerics;
using Content.Server.Audio;
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
using Content.Server.Shuttles.Components;
using Content.Server.Shuttles.Events;
using Content.Server.Doors.Systems;
using Content.Server.Atmos.Components;
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Damage;
using Content.Shared.Examine;
using Content.Shared.Interaction;
using Content.Shared.Maps;
using Content.Shared.Physics;
using Content.Shared.Shuttles.Components;
using Content.Shared.Temperature;
using Content.Shared.Doors;
using Content.Shared.Doors.Components;

using Robust.Shared.Map;
using Robust.Shared.Map.Components;
using Content.Shared.Localizations;
using Content.Shared.Power;
using Robust.Shared.Map;
using Robust.Shared.Map.Components;

namespace Content.Server.Shuttles.Systems
{

Expand Down Expand Up @@ -90,32 +82,32 @@ private void OnAnchorChange(EntityUid uid, AdvDoorSealComponent component, ref A
}


private void OnDoorExamine(EntityUid uid, AdvDoorSealComponent component, ExaminedEvent args)
{
// Powered is already handled by other power components
var enabled = Loc.GetString(component.IsOn ? "adv-door-seal-comp-enabled" : "adv-door-seal-comp-disabled");

using (args.PushGroup(nameof(AdvDoorSealComponent)))
private void OnDoorExamine(EntityUid uid, AdvDoorSealComponent component, ExaminedEvent args)
{
args.PushMarkup(enabled);
// Powered is already handled by other power components
var enabled = Loc.GetString(component.IsOn ? "adv-door-seal-comp-enabled" : "adv-door-seal-comp-disabled");

if (EntityManager.TryGetComponent(uid, out TransformComponent? xform) && xform.Anchored)
using (args.PushGroup(nameof(AdvDoorSealComponent)))
{
var doorLocalization = ContentLocalizationManager.FormatDirection(xform.LocalRotation.ToWorldVec().GetDir()).ToLower();
var doorDir = Loc.GetString("adv-door-seal-comp-door-direction",
("direction", doorLocalization));
args.PushMarkup(enabled);

if (EntityManager.TryGetComponent(uid, out TransformComponent? xform) && xform.Anchored)
{
var doorLocalization = ContentLocalizationManager.FormatDirection(xform.LocalRotation.ToWorldVec().GetDir()).ToLower();
var doorDir = Loc.GetString("adv-door-seal-comp-door-direction",
("direction", doorLocalization));

args.PushMarkup(doorDir);
args.PushMarkup(doorDir);

var exposed = DockExposed(xform);
var exposed = DockExposed(xform);

var doorText =
Loc.GetString(exposed ? "adv-door-seal-comp-door-exposed" : "adv-door-seal-comp-door-not-exposed");
var doorText =
Loc.GetString(exposed ? "adv-door-seal-comp-door-exposed" : "adv-door-seal-comp-door-not-exposed");

args.PushMarkup(doorText);
args.PushMarkup(doorText);
}
}
}
}

/// <summary>
/// Tries to enable the seals and turn it on. If it's already enabled it does nothing.
Expand Down

0 comments on commit 6cb3644

Please sign in to comment.