Remove static ILocalizationManager resolves. (#17392)
This commit is contained in:
@@ -85,7 +85,7 @@ namespace Content.Server.Armor
|
||||
_examine.AddDetailedExamineVerb(args, component, examineMarkup, Loc.GetString("armor-examinable-verb-text"), "/Textures/Interface/VerbIcons/dot.svg.192dpi.png", Loc.GetString("armor-examinable-verb-message"));
|
||||
}
|
||||
|
||||
private static FormattedMessage GetArmorExamine(DamageModifierSet armorModifiers)
|
||||
private FormattedMessage GetArmorExamine(DamageModifierSet armorModifiers)
|
||||
{
|
||||
var msg = new FormattedMessage();
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Content.Server.Chat
|
||||
/// <summary>
|
||||
/// If not handled, does the default suicide, which is biting your own tongue
|
||||
/// </summary>
|
||||
private static void DefaultSuicideHandler(EntityUid victim, SuicideEvent suicideEvent)
|
||||
private void DefaultSuicideHandler(EntityUid victim, SuicideEvent suicideEvent)
|
||||
{
|
||||
if (suicideEvent.Handled)
|
||||
return;
|
||||
|
||||
@@ -14,21 +14,14 @@ namespace Content.Server.Examine
|
||||
{
|
||||
[Dependency] private readonly VerbSystem _verbSystem = default!;
|
||||
|
||||
private static readonly FormattedMessage _entityNotFoundMessage;
|
||||
|
||||
private static readonly FormattedMessage _entityOutOfRangeMessage;
|
||||
|
||||
static ExamineSystem()
|
||||
{
|
||||
_entityNotFoundMessage = new FormattedMessage();
|
||||
_entityNotFoundMessage.AddText(Loc.GetString("examine-system-entity-does-not-exist"));
|
||||
_entityOutOfRangeMessage = new FormattedMessage();
|
||||
_entityOutOfRangeMessage.AddText(Loc.GetString("examine-system-cant-see-entity"));
|
||||
}
|
||||
private readonly FormattedMessage _entityNotFoundMessage = new();
|
||||
private readonly FormattedMessage _entityOutOfRangeMessage = new();
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
_entityNotFoundMessage.AddText(Loc.GetString("examine-system-entity-does-not-exist"));
|
||||
_entityOutOfRangeMessage.AddText(Loc.GetString("examine-system-cant-see-entity"));
|
||||
|
||||
SubscribeNetworkEvent<ExamineSystemMessages.RequestExamineInfoMessage>(ExamineInfoRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user