diff --git a/Content.Server/Cuffs/Components/HandcuffComponent.cs b/Content.Server/Cuffs/Components/HandcuffComponent.cs index 77816b58f7..29fb0539cb 100644 --- a/Content.Server/Cuffs/Components/HandcuffComponent.cs +++ b/Content.Server/Cuffs/Components/HandcuffComponent.cs @@ -19,6 +19,9 @@ namespace Content.Server.Cuffs.Components { [Dependency] private readonly IEntityManager _entities = default!; [Dependency] private readonly IAdminLogManager _adminLogger = default!; + + private string _brokenName = string.Empty; + private string _brokenDesc = string.Empty; /// /// The time it takes to apply a to an entity. @@ -81,14 +84,22 @@ namespace Content.Server.Cuffs.Components /// [ViewVariables] [DataField("brokenName")] - public string BrokenName { get; set; } = default!; + public string BrokenName + { + get => _brokenName; + private set => _brokenName = Loc.GetString(value); + } /// /// The iconstate used for broken handcuffs /// [ViewVariables] [DataField("brokenDesc")] - public string BrokenDesc { get; set; } = default!; + public string BrokenDesc + { + get => _brokenDesc; + private set => _brokenDesc = Loc.GetString(value); + } [ViewVariables] public bool Broken diff --git a/Resources/Locale/en-US/cuffs/components/handcuff-broken.ftl b/Resources/Locale/en-US/cuffs/components/handcuff-broken.ftl new file mode 100644 index 0000000000..1b74cc1103 --- /dev/null +++ b/Resources/Locale/en-US/cuffs/components/handcuff-broken.ftl @@ -0,0 +1,4 @@ +handcuff-broken-cables-name = broken cables +handcuff-broken-cables-desc = These cables are broken in several places and don't seem very useful. +handcuff-broken-zipties-name = broken zipties +handcuff-broken-zipties-desc = These zipties look like they tried to manage the wrong cables. \ No newline at end of file diff --git a/Resources/Prototypes/Entities/Objects/Misc/handcuffs.yml b/Resources/Prototypes/Entities/Objects/Misc/handcuffs.yml index b07167b4ee..442e6fe0da 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/handcuffs.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/handcuffs.yml @@ -31,8 +31,8 @@ color: red breakOnRemove: true brokenIconState: cuff-broken - brokenName: broken cables - brokenDesc: These cables are broken in several places and don't seem very useful. + brokenName: handcuff-broken-cables-name + brokenDesc: handcuff-broken-cables-desc startCuffSound: path: /Audio/Items/Handcuffs/rope_start.ogg endCuffSound: @@ -65,8 +65,8 @@ bodyIconState: body-overlay breakOnRemove: true brokenIconState: cuff-broken - brokenName: broken zipties - brokenDesc: These zipties look like they tried to manage the wrong cables. + brokenName: handcuff-broken-zipties-name + brokenDesc: handcuff-broken-zipties-desc startCuffSound: path: /Audio/Items/Handcuffs/ziptie_start.ogg endCuffSound: