Fix for missing loc strings in handcuffs. (#1919)
* loc strings, formatting fixes * Fix indentation Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -224,7 +224,7 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
|
|
||||||
if (!isOwner && !ActionBlockerSystem.CanInteract(user))
|
if (!isOwner && !ActionBlockerSystem.CanInteract(user))
|
||||||
{
|
{
|
||||||
user.PopupMessage(user, "You can't do that!");
|
user.PopupMessage(user, Loc.GetString("You can't do that!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,7 +235,7 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
_interactRange,
|
_interactRange,
|
||||||
ignoredEnt: Owner))
|
ignoredEnt: Owner))
|
||||||
{
|
{
|
||||||
user.PopupMessage(user, "You are too far away to remove the cuffs.");
|
user.PopupMessage(user, Loc.GetString("You are too far away to remove the cuffs."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
user.PopupMessage(user, "You start removing the cuffs.");
|
user.PopupMessage(user, Loc.GetString("You start removing the cuffs."));
|
||||||
|
|
||||||
var audio = EntitySystem.Get<AudioSystem>();
|
var audio = EntitySystem.Get<AudioSystem>();
|
||||||
audio.PlayFromEntity(isOwner ? cuff.StartBreakoutSound : cuff.StartUncuffSound, Owner);
|
audio.PlayFromEntity(isOwner ? cuff.StartBreakoutSound : cuff.StartUncuffSound, Owner);
|
||||||
@@ -305,7 +305,7 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
{
|
{
|
||||||
if (!isOwner)
|
if (!isOwner)
|
||||||
{
|
{
|
||||||
_notifyManager.PopupMessage(user, user, Loc.GetString("You successfully remove the cuffs. {0} of {0:theName}'s hands remain cuffed.", CuffedHandCount, user));
|
_notifyManager.PopupMessage(user, user, Loc.GetString("You successfully remove the cuffs. {0} of {1:theName}'s hands remain cuffed.", CuffedHandCount, user));
|
||||||
_notifyManager.PopupMessage(user, Owner, Loc.GetString("{0:theName} removes your cuffs. {1} of your hands remain cuffed.", user, CuffedHandCount));
|
_notifyManager.PopupMessage(user, Owner, Loc.GetString("{0:theName} removes your cuffs. {1} of your hands remain cuffed.", user, CuffedHandCount));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -225,8 +225,8 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
if (result != DoAfterStatus.Cancelled)
|
if (result != DoAfterStatus.Cancelled)
|
||||||
{
|
{
|
||||||
_audioSystem.PlayFromEntity(EndCuffSound, Owner);
|
_audioSystem.PlayFromEntity(EndCuffSound, Owner);
|
||||||
_notifyManager.PopupMessage(user, user, Loc.GetString("You successfully cuff {0}.", target.Name));
|
_notifyManager.PopupMessage(user, user, Loc.GetString("You successfully cuff {0:theName}.", target));
|
||||||
_notifyManager.PopupMessage(target, target, Loc.GetString("You have been cuffed by {0}!", user.Name));
|
_notifyManager.PopupMessage(target, target, Loc.GetString("You have been cuffed by {0:theName}!", user));
|
||||||
|
|
||||||
if (user.TryGetComponent<HandsComponent>(out var hands))
|
if (user.TryGetComponent<HandsComponent>(out var hands))
|
||||||
{
|
{
|
||||||
@@ -240,8 +240,8 @@ namespace Content.Server.GameObjects.Components.ActionBlocking
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
user.PopupMessage(user, Loc.GetString("You were interrupted while cuffing {0}!", target.Name));
|
user.PopupMessage(user, Loc.GetString("You were interrupted while cuffing {0:theName}!", target));
|
||||||
target.PopupMessage(target, Loc.GetString("You interrupt {0} while they are cuffing you!", user.Name));
|
target.PopupMessage(target, Loc.GetString("You interrupt {0:theName} while they are cuffing you!", user));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user