fix: Update LabelTo, SendMessage, etc to Interpolated Strings (#1283)
This commit is contained in:
parent
0facd73842
commit
537526a328
94 changed files with 514 additions and 769 deletions
|
|
@ -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."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue