Typo, redundant string interpolation, namespaces and imports cleanup (#2068)
* Readonly, typos and redundant string interpolations * Namespaces * Optimize imports * Address reviews * but actually * Localize missing strings * Remove redundant vars
This commit is contained in:
@@ -187,9 +187,13 @@ namespace Content.Server.GameObjects.Components.Suspicion
|
||||
return;
|
||||
}
|
||||
|
||||
var tooltip = IsTraitor()
|
||||
? Loc.GetString($"They were a [color=red]traitor[/color]!")
|
||||
: Loc.GetString($"They were an [color=green]innocent[/color]!");
|
||||
var traitor = IsTraitor();
|
||||
var color = traitor ? "red" : "green";
|
||||
var role = traitor ? "traitor" : "innocent";
|
||||
var article = traitor ? "a" : "an";
|
||||
|
||||
var tooltip = Loc.GetString("They were {0} [color={1}]{2}[/color]!", Loc.GetString(article), color,
|
||||
Loc.GetString(role));
|
||||
|
||||
message.AddMarkup(tooltip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user