From a3755460c3aa2b7d655709696f440288b6381416 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 8 May 2021 03:46:13 +0200 Subject: [PATCH] ReagentQuantity's Reagent ID is now validated by the YAML linter. --- Content.Shared/Chemistry/Solution.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Chemistry/Solution.cs b/Content.Shared/Chemistry/Solution.cs index a1ebe75f26..a3450f166f 100644 --- a/Content.Shared/Chemistry/Solution.cs +++ b/Content.Shared/Chemistry/Solution.cs @@ -12,6 +12,7 @@ using Robust.Shared.Maths; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Utility; using Robust.Shared.ViewVariables; @@ -327,7 +328,7 @@ namespace Content.Shared.Chemistry [DataDefinition] public readonly struct ReagentQuantity: IComparable { - [DataField("ReagentId")] + [DataField("ReagentId", customTypeSerializer:typeof(PrototypeIdSerializer))] public readonly string ReagentId; [DataField("Quantity")] public readonly ReagentUnit Quantity;