machine frame tweaks (#13248)
Closes https://github.com/space-wizards/space-station-14/issues/11547 Closes https://github.com/space-wizards/space-station-14/issues/11549
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
using Content.Server.Construction.Components;
|
||||
using Content.Server.Stack;
|
||||
using Content.Shared.Construction;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
|
||||
namespace Content.Server.Construction;
|
||||
|
||||
public sealed class MachineFrameSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly AppearanceSystem _appearance = default!;
|
||||
[Dependency] private readonly IComponentFactory _factory = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly TagSystem _tag = default!;
|
||||
@@ -58,8 +55,6 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
// Setup requirements and progress...
|
||||
ResetProgressAndRequirements(component, machineBoard);
|
||||
|
||||
_appearance.SetData(uid, MachineFrameVisuals.State, 2);
|
||||
|
||||
if (TryComp(uid, out ConstructionComponent? construction))
|
||||
{
|
||||
// So prying the components off works correctly.
|
||||
@@ -224,8 +219,6 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
{
|
||||
if (!component.HasBoard)
|
||||
{
|
||||
_appearance.SetData(component.Owner, MachineFrameVisuals.State, 1);
|
||||
|
||||
component.TagRequirements.Clear();
|
||||
component.MaterialRequirements.Clear();
|
||||
component.ComponentRequirements.Clear();
|
||||
@@ -243,8 +236,6 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
if (!TryComp<MachineBoardComponent>(board, out var machineBoard))
|
||||
return;
|
||||
|
||||
_appearance.SetData(component.Owner, MachineFrameVisuals.State, 2);
|
||||
|
||||
ResetProgressAndRequirements(component, machineBoard);
|
||||
|
||||
foreach (var part in component.PartContainer.ContainedEntities)
|
||||
|
||||
Reference in New Issue
Block a user