Localize broken handcuffs (#11558)
This commit is contained in:
@@ -20,6 +20,9 @@ namespace Content.Server.Cuffs.Components
|
|||||||
[Dependency] private readonly IEntityManager _entities = default!;
|
[Dependency] private readonly IEntityManager _entities = default!;
|
||||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||||
|
|
||||||
|
private string _brokenName = string.Empty;
|
||||||
|
private string _brokenDesc = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The time it takes to apply a <see cref="CuffedComponent"/> to an entity.
|
/// The time it takes to apply a <see cref="CuffedComponent"/> to an entity.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -81,14 +84,22 @@ namespace Content.Server.Cuffs.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[DataField("brokenName")]
|
[DataField("brokenName")]
|
||||||
public string BrokenName { get; set; } = default!;
|
public string BrokenName
|
||||||
|
{
|
||||||
|
get => _brokenName;
|
||||||
|
private set => _brokenName = Loc.GetString(value);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The iconstate used for broken handcuffs
|
/// The iconstate used for broken handcuffs
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[DataField("brokenDesc")]
|
[DataField("brokenDesc")]
|
||||||
public string BrokenDesc { get; set; } = default!;
|
public string BrokenDesc
|
||||||
|
{
|
||||||
|
get => _brokenDesc;
|
||||||
|
private set => _brokenDesc = Loc.GetString(value);
|
||||||
|
}
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public bool Broken
|
public bool Broken
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
color: red
|
color: red
|
||||||
breakOnRemove: true
|
breakOnRemove: true
|
||||||
brokenIconState: cuff-broken
|
brokenIconState: cuff-broken
|
||||||
brokenName: broken cables
|
brokenName: handcuff-broken-cables-name
|
||||||
brokenDesc: These cables are broken in several places and don't seem very useful.
|
brokenDesc: handcuff-broken-cables-desc
|
||||||
startCuffSound:
|
startCuffSound:
|
||||||
path: /Audio/Items/Handcuffs/rope_start.ogg
|
path: /Audio/Items/Handcuffs/rope_start.ogg
|
||||||
endCuffSound:
|
endCuffSound:
|
||||||
@@ -65,8 +65,8 @@
|
|||||||
bodyIconState: body-overlay
|
bodyIconState: body-overlay
|
||||||
breakOnRemove: true
|
breakOnRemove: true
|
||||||
brokenIconState: cuff-broken
|
brokenIconState: cuff-broken
|
||||||
brokenName: broken zipties
|
brokenName: handcuff-broken-zipties-name
|
||||||
brokenDesc: These zipties look like they tried to manage the wrong cables.
|
brokenDesc: handcuff-broken-zipties-desc
|
||||||
startCuffSound:
|
startCuffSound:
|
||||||
path: /Audio/Items/Handcuffs/ziptie_start.ogg
|
path: /Audio/Items/Handcuffs/ziptie_start.ogg
|
||||||
endCuffSound:
|
endCuffSound:
|
||||||
|
|||||||
Reference in New Issue
Block a user