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,6 +1,6 @@
|
||||
using Content.Server.StationEvents.Events;
|
||||
using Content.Shared.Radio;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
|
||||
namespace Content.Server.StationEvents.Components;
|
||||
@@ -29,8 +29,8 @@ public sealed partial class SolarFlareRuleComponent : Component
|
||||
/// <remarks>
|
||||
/// Channels are not removed from this, so its possible to roll the same channel multiple times.
|
||||
/// </remarks>
|
||||
[DataField("extraChannels", customTypeSerializer: typeof(PrototypeIdListSerializer<RadioChannelPrototype>))]
|
||||
public List<String> ExtraChannels = new();
|
||||
[DataField]
|
||||
public List<ProtoId<RadioChannelPrototype>> ExtraChannels = new();
|
||||
|
||||
/// <summary>
|
||||
/// Number of times to roll a channel from ExtraChannels.
|
||||
|
||||
Reference in New Issue
Block a user