Remove calls to FormattedMessage obsolete methods (#31706)
* Remove FormattedMessage obsolete methods * Oops
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using Content.Shared.Lathe;
|
||||
using Content.Shared.Research.Components;
|
||||
using Content.Shared.Research.Prototypes;
|
||||
@@ -157,42 +157,42 @@ public abstract class SharedResearchSystem : EntitySystem
|
||||
if (includeTier)
|
||||
{
|
||||
disciplinePrototype ??= PrototypeManager.Index(technology.Discipline);
|
||||
description.AddMarkup(Loc.GetString("research-console-tier-discipline-info",
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-tier-discipline-info",
|
||||
("tier", technology.Tier), ("color", disciplinePrototype.Color), ("discipline", Loc.GetString(disciplinePrototype.Name))));
|
||||
description.PushNewline();
|
||||
}
|
||||
|
||||
if (includeCost)
|
||||
{
|
||||
description.AddMarkup(Loc.GetString("research-console-cost", ("amount", technology.Cost)));
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-cost", ("amount", technology.Cost)));
|
||||
description.PushNewline();
|
||||
}
|
||||
|
||||
if (includePrereqs && technology.TechnologyPrerequisites.Any())
|
||||
{
|
||||
description.AddMarkup(Loc.GetString("research-console-prereqs-list-start"));
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-prereqs-list-start"));
|
||||
foreach (var recipe in technology.TechnologyPrerequisites)
|
||||
{
|
||||
var techProto = PrototypeManager.Index(recipe);
|
||||
description.PushNewline();
|
||||
description.AddMarkup(Loc.GetString("research-console-prereqs-list-entry",
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-prereqs-list-entry",
|
||||
("text", Loc.GetString(techProto.Name))));
|
||||
}
|
||||
description.PushNewline();
|
||||
}
|
||||
|
||||
description.AddMarkup(Loc.GetString("research-console-unlocks-list-start"));
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-unlocks-list-start"));
|
||||
foreach (var recipe in technology.RecipeUnlocks)
|
||||
{
|
||||
var recipeProto = PrototypeManager.Index(recipe);
|
||||
description.PushNewline();
|
||||
description.AddMarkup(Loc.GetString("research-console-unlocks-list-entry",
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-unlocks-list-entry",
|
||||
("name", _lathe.GetRecipeName(recipeProto))));
|
||||
}
|
||||
foreach (var generic in technology.GenericUnlocks)
|
||||
{
|
||||
description.PushNewline();
|
||||
description.AddMarkup(Loc.GetString("research-console-unlocks-list-entry-generic",
|
||||
description.AddMarkupOrThrow(Loc.GetString("research-console-unlocks-list-entry-generic",
|
||||
("text", Loc.GetString(generic.UnlockDescription))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user