From 4fdedc880d185ae79a56b02b26060af682480c3a Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:57:26 +1100 Subject: [PATCH] Add type serializer for udders (#6027) --- Content.Server/Animals/Components/UdderComponent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Animals/Components/UdderComponent.cs b/Content.Server/Animals/Components/UdderComponent.cs index 3277129692..97d8fee4b1 100644 --- a/Content.Server/Animals/Components/UdderComponent.cs +++ b/Content.Server/Animals/Components/UdderComponent.cs @@ -1,9 +1,11 @@ using System; using Content.Server.Animals.Systems; +using Content.Shared.Chemistry.Reagent; using Content.Shared.FixedPoint; using Robust.Shared.Analyzers; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.ViewVariables; namespace Content.Server.Animals.Components @@ -17,7 +19,7 @@ namespace Content.Server.Animals.Components /// The reagent to produce. /// [ViewVariables(VVAccess.ReadOnly)] - [DataField("reagentId")] + [DataField("reagentId", customTypeSerializer:typeof(PrototypeIdSerializer))] public string ReagentId = "Milk"; ///