Replace string data fields with LocId where relevant (#20883)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Content.Shared.Radio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Implants.Components;
|
||||
|
||||
@@ -8,14 +8,14 @@ namespace Content.Shared.Implants.Components;
|
||||
public sealed partial class RattleComponent : Component
|
||||
{
|
||||
// The radio channel the message will be sent to
|
||||
[DataField("radioChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
|
||||
public string RadioChannel = "Syndicate";
|
||||
[DataField]
|
||||
public ProtoId<RadioChannelPrototype> RadioChannel = "Syndicate";
|
||||
|
||||
// The message that the implant will send when crit
|
||||
[DataField("critMessage")]
|
||||
public string CritMessage = "deathrattle-implant-critical-message";
|
||||
[DataField]
|
||||
public LocId CritMessage = "deathrattle-implant-critical-message";
|
||||
|
||||
// The message that the implant will send when dead
|
||||
[DataField("deathMessage")]
|
||||
public string DeathMessage = "deathrattle-implant-dead-message";
|
||||
public LocId DeathMessage = "deathrattle-implant-dead-message";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user