Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out (#37959)
* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out * Missed one * Missed another * Fix data field ids
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
using Content.Server.Botany.Components;
|
||||
using Content.Server.Botany.Systems;
|
||||
using Content.Server.EntityEffects;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.EntityEffects;
|
||||
using Content.Shared.Random;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
using Content.Server.EntityEffects;
|
||||
|
||||
namespace Content.Server.Botany;
|
||||
|
||||
[Prototype]
|
||||
@@ -133,8 +130,8 @@ public partial class SeedData
|
||||
/// <summary>
|
||||
/// The entity prototype this seed spawns when it gets harvested.
|
||||
/// </summary>
|
||||
[DataField("productPrototypes", customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
|
||||
public List<string> ProductPrototypes = new();
|
||||
[DataField]
|
||||
public List<EntProtoId> ProductPrototypes = new();
|
||||
|
||||
[DataField] public Dictionary<string, SeedChemQuantity> Chemicals = new();
|
||||
|
||||
@@ -243,8 +240,8 @@ public partial class SeedData
|
||||
/// <summary>
|
||||
/// The seed prototypes this seed may mutate into when prompted to.
|
||||
/// </summary>
|
||||
[DataField(customTypeSerializer: typeof(PrototypeIdListSerializer<SeedPrototype>))]
|
||||
public List<string> MutationPrototypes = new();
|
||||
[DataField]
|
||||
public List<ProtoId<SeedPrototype>> MutationPrototypes = new();
|
||||
|
||||
/// <summary>
|
||||
/// Log impact for when the seed is planted.
|
||||
@@ -270,8 +267,8 @@ public partial class SeedData
|
||||
Mysterious = Mysterious,
|
||||
|
||||
PacketPrototype = PacketPrototype,
|
||||
ProductPrototypes = new List<string>(ProductPrototypes),
|
||||
MutationPrototypes = new List<string>(MutationPrototypes),
|
||||
ProductPrototypes = new List<EntProtoId>(ProductPrototypes),
|
||||
MutationPrototypes = new List<ProtoId<SeedPrototype>>(MutationPrototypes),
|
||||
Chemicals = new Dictionary<string, SeedChemQuantity>(Chemicals),
|
||||
ConsumeGasses = new Dictionary<Gas, float>(ConsumeGasses),
|
||||
ExudeGasses = new Dictionary<Gas, float>(ExudeGasses),
|
||||
@@ -330,8 +327,8 @@ public partial class SeedData
|
||||
Mysterious = other.Mysterious,
|
||||
|
||||
PacketPrototype = other.PacketPrototype,
|
||||
ProductPrototypes = new List<string>(other.ProductPrototypes),
|
||||
MutationPrototypes = new List<string>(other.MutationPrototypes),
|
||||
ProductPrototypes = new List<EntProtoId>(other.ProductPrototypes),
|
||||
MutationPrototypes = new List<ProtoId<SeedPrototype>>(other.MutationPrototypes),
|
||||
|
||||
Chemicals = new Dictionary<string, SeedChemQuantity>(Chemicals),
|
||||
ConsumeGasses = new Dictionary<Gas, float>(ConsumeGasses),
|
||||
|
||||
Reference in New Issue
Block a user