replace all instances of "department-{id}" with department.name (#34607)
replace all instances of "department-{id}" with department.name"
This commit is contained in:
committed by
GitHub
parent
5e7cc99555
commit
371b1f8012
@@ -55,8 +55,7 @@ public sealed class ContrabandSystem : EntitySystem
|
||||
|
||||
using (args.PushGroup(nameof(ContrabandComponent)))
|
||||
{
|
||||
// TODO shouldn't department prototypes have a localized name instead of just using the ID for this?
|
||||
var localizedDepartments = ent.Comp.AllowedDepartments.Select(p => Loc.GetString("contraband-department-plural", ("department", Loc.GetString($"department-{p.Id}"))));
|
||||
var localizedDepartments = ent.Comp.AllowedDepartments.Select(p => Loc.GetString("contraband-department-plural", ("department", Loc.GetString(_proto.Index(p).Name))));
|
||||
var localizedJobs = ent.Comp.AllowedJobs.Select(p => Loc.GetString("contraband-job-plural", ("job", _proto.Index(p).LocalizedName)));
|
||||
|
||||
var severity = _proto.Index(ent.Comp.Severity);
|
||||
|
||||
Reference in New Issue
Block a user