Remove mech component references (#15246)
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
using Content.Shared.Mech.Components;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Client.Mech;
|
||||
|
||||
/// <inheritdoc/>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[ComponentReference(typeof(SharedMechComponent))]
|
||||
public sealed class MechComponent : SharedMechComponent
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Mech;
|
||||
using Content.Shared.Mech.Components;
|
||||
using Content.Shared.Mech.EntitySystems;
|
||||
using Robust.Client.GameObjects;
|
||||
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Content.Client.UserInterface.Fragments;
|
||||
using Content.Shared.Mech;
|
||||
using Content.Shared.Mech.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ public sealed partial class MechMenu : FancyWindow
|
||||
|
||||
public void UpdateMechStats()
|
||||
{
|
||||
if (!_ent.TryGetComponent<SharedMechComponent>(_mech, out var mechComp))
|
||||
if (!_ent.TryGetComponent<MechComponent>(_mech, out var mechComp))
|
||||
return;
|
||||
|
||||
var integrityPercent = mechComp.Integrity / mechComp.MaxIntegrity;
|
||||
|
||||
Reference in New Issue
Block a user