Replace string data fields with LocId where relevant (#20883)

This commit is contained in:
DrSmugleaf
2023-10-10 20:06:24 -07:00
committed by GitHub
parent ef233cf0fe
commit 9bcf67753a
69 changed files with 265 additions and 286 deletions

View File

@@ -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";
}