Removed old Loc.GetString() use instances (#4155)

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Galactic Chimp
2021-06-21 02:13:54 +02:00
committed by GitHub
parent 4a46fbe6dd
commit 392b820796
523 changed files with 3082 additions and 1551 deletions

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Content.Server.Objectives.Interfaces;
using JetBrains.Annotations;
using Robust.Shared.Localization;
@@ -18,9 +18,9 @@ namespace Content.Server.Objectives.Conditions
return new DieCondition {_mind = mind};
}
public string Title => Loc.GetString("Die a glorious death");
public string Title => Loc.GetString("objective-condition-die-title");
public string Description => Loc.GetString("Die.");
public string Description => Loc.GetString("objective-condition-die-description");
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Mobs/Ghosts/ghost_human.rsi"), "icon");

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Content.Server.Objectives.Interfaces;
using Robust.Shared.Localization;
using Robust.Shared.Utility;
@@ -10,9 +10,9 @@ namespace Content.Server.Objectives.Conditions
protected Mind.Mind? Target;
public abstract IObjectiveCondition GetAssigned(Mind.Mind mind);
public string Title => Loc.GetString("Kill {0}", Target?.OwnedEntity?.Name ?? "");
public string Title => Loc.GetString("objective-condition-kill-person-title", ("targetName", Target?.OwnedEntity?.Name ?? string.Empty));
public string Description => Loc.GetString("Do it however you like, just make sure they don't last the shift.");
public string Description => Loc.GetString("objective-condition-kill-person-description");
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Objects/Weapons/Guns/Pistols/mk58_wood.rsi"), "icon");

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Content.Server.Objectives.Interfaces;
using JetBrains.Annotations;
using Robust.Shared.Localization;
@@ -18,9 +18,9 @@ namespace Content.Server.Objectives.Conditions
return new StayAliveCondition {_mind = mind};
}
public string Title => Loc.GetString("Stay alive.");
public string Title => Loc.GetString("objective-condition-stay-alive-title");
public string Description => Loc.GetString("Survive this shift, we need you for another assignment.");
public string Description => Loc.GetString("objective-condition-stay-alive-description");
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Objects/Misc/skub.rsi"), "icon"); //didn't know what else would have been a good icon for staying alive

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using Content.Server.Containers;
using Content.Server.GameObjects;
@@ -46,9 +46,11 @@ namespace Content.Server.Objectives.Conditions
? prototype.Name
: "[CANNOT FIND NAME]";
public string Title => Loc.GetString("Steal {0}{1}", _amount > 1 ? $"{_amount}x " : "", Loc.GetString(PrototypeName));
public string Title => Loc.GetString("objective-condition-steal-title",
("amount", _amount > 1 ? $"{_amount}x " : string.Empty),
("itemName", Loc.GetString(PrototypeName)));
public string Description => Loc.GetString("We need you to steal {0}. Don't get caught.", Loc.GetString(PrototypeName));
public string Description => Loc.GetString("objective-condition-steal-description",("itemName", Loc.GetString(PrototypeName)));
public SpriteSpecifier Icon => new SpriteSpecifier.EntityPrototype(_prototypeId);