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
|
|
@ -1155,11 +1155,14 @@ namespace Server.Multis
|
|||
// Temporary Fix. We should be booting a client out of customization mode in the delete handler.
|
||||
if (from.AccessLevel >= AccessLevel.GameMaster && cost != 0)
|
||||
{
|
||||
from.SendMessage(
|
||||
"{0} gold would have been {1} your bank if you were not a GM.",
|
||||
cost.ToString(),
|
||||
cost > 0 ? "withdrawn from" : "deposited into"
|
||||
);
|
||||
if (cost > 0)
|
||||
{
|
||||
from.SendMessage($"{cost} gold would have been withdrawn from your bank if you were not a GM.");
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage($"{cost} gold would have been deposited into your bank if you were not a GM.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2033,8 +2033,7 @@ namespace Server.Items
|
|||
if (from.AccessLevel >= AccessLevel.GameMaster)
|
||||
{
|
||||
from.SendMessage(
|
||||
"{0} gold would have been withdrawn from your bank if you were not a GM.",
|
||||
Cost.ToString()
|
||||
$"{Cost} gold would have been withdrawn from your bank if you were not a GM."
|
||||
);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ namespace Server.Multis
|
|||
_ => "in danger of collapsing"
|
||||
};
|
||||
|
||||
LabelTo(from, "This house is {0}.", message);
|
||||
LabelTo(from, $"This house is {message}.");
|
||||
}
|
||||
|
||||
base.OnSingleClick(from);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue