fix: Update LabelTo, SendMessage, etc to Interpolated Strings (#1283)

This commit is contained in:
Fabrizio 2022-11-29 04:58:12 +01:00 • committed by GitHub
parent 0facd73842
commit 537526a328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
94 changed files with 514 additions and 769 deletions

View file

@ -86,12 +86,7 @@ namespace Server.Commands
CommandLogging.WriteLine(
from,
"{0} {1} duping {2} (inBag={3}; amount={4})",
from.AccessLevel,
CommandLogging.Format(from),
CommandLogging.Format(targ),
m_InBag,
m_Amount
$"{from.AccessLevel} {CommandLogging.Format(from)} duping {CommandLogging.Format(targ)} (inBag={m_InBag}; amount={m_Amount})"
);
var copy = (Item)targ;
@ -123,7 +118,7 @@ namespace Server.Commands
try
{
from.SendMessage("Duping {0}...", m_Amount);
from.SendMessage($"Duping {m_Amount}...");
for (var i = 0; i < m_Amount; i++)
{
if (c.Invoke(args) is Item newItem)
@ -146,11 +141,7 @@ namespace Server.Commands
CommandLogging.WriteLine(
from,
"{0} {1} duped {2} creating {3}",
from.AccessLevel,
CommandLogging.Format(from),
CommandLogging.Format(targ),
CommandLogging.Format(newItem)
$"{from.AccessLevel} {CommandLogging.Format(from)} duped {CommandLogging.Format(targ)} creating {CommandLogging.Format(newItem)}"
);
}
}