Omnitool fixes (#12476)

Fix https://github.com/space-wizards/space-station-14/issues/11203
This commit is contained in:
Alex Evgrashin
2022-11-24 07:00:34 +01:00
committed by GitHub
parent 0f027bc2aa
commit 82db3a3979
4 changed files with 38 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
using Content.Shared.Tools;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Utility;
namespace Content.Server.MachineLinking.Components
{
[RegisterComponent]
@@ -8,5 +12,13 @@ namespace Content.Server.MachineLinking.Components
[ViewVariables]
public EntityUid? SavedReceiver;
/// <summary>
/// Optional tool quality required for linker to work.
/// If linker entity doesn't have this quality it will ignore any interaction.
/// </summary>
[DataField("requiredQuality", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
[ViewVariables(VVAccess.ReadWrite)]
public string? RequiredQuality;
}
}