Replace F extension with string interpolation

This commit is contained in:
teinarss
2021-04-24 17:46:24 +02:00
committed by reaperrr
parent 1385aca783
commit 10676be377
300 changed files with 752 additions and 799 deletions

View File

@@ -357,7 +357,7 @@ namespace OpenRA.Mods.D2k.UtilityCommands
{
var kvp = ActorDataByActorCode[tileSpecialInfo];
if (!rules.Actors.ContainsKey(kvp.Actor.ToLowerInvariant()))
throw new InvalidOperationException("Actor with name {0} could not be found in the rules YAML file!".F(kvp.Actor));
throw new InvalidOperationException($"Actor with name {kvp.Actor} could not be found in the rules YAML file!");
var a = new ActorReference(kvp.Actor)
{
@@ -487,8 +487,8 @@ namespace OpenRA.Mods.D2k.UtilityCommands
if (template == null)
{
var pos = GetCurrentTilePositionOnMap();
Console.WriteLine("Tile with index {0} could not be found in the tileset YAML file!".F(tileIndex));
Console.WriteLine("Defaulting to a \"clear\" tile for coordinates ({0}, {1})!".F(pos.X, pos.Y));
Console.WriteLine($"Tile with index {tileIndex} could not be found in the tileset YAML file!");
Console.WriteLine($"Defaulting to a \"clear\" tile for coordinates ({pos.X}, {pos.Y})!");
return clearTile;
}