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

@ -61,9 +61,7 @@ namespace Server.Misc
else if (m_MoveHistory.Remove(from, out var orig))
{
from.SendMessage(
"Your character was moved from {0} ({1}) due to a detected client crash.",
orig.Location,
orig.Map
$"Your character was moved from {orig.Location} ({orig.Map}) due to a detected client crash."
);
}
}

View file

@ -757,7 +757,7 @@ namespace Server.Misc
}
case 3: // Command list
{
sender.Mobile.SendAsciiMessage(0x482, "The command prefix is \"{0}\"", CommandSystem.Prefix);
sender.Mobile.SendAsciiMessage(0x482, $"The command prefix is \"{CommandSystem.Prefix}\"");
CommandHandlers.Help_OnCommand(new CommandEventArgs(sender.Mobile, "help", "", Array.Empty<string>()));
break;

View file

@ -58,7 +58,7 @@ namespace Server.Items
{
var maxCheck = 1000000;
from.SendMessage(0x35, "You win the {0}gp jackpot!", m_GamblePot);
from.SendMessage(0x35, $"You win the {m_GamblePot}gp jackpot!");
while (m_GamblePot > maxCheck)
{