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
|
|
@ -111,7 +111,7 @@ public partial class PublicMoongate : Item
|
|||
count += MoonGen(PMList.Malas);
|
||||
count += MoonGen(PMList.Tokuno);
|
||||
|
||||
World.Broadcast(0x35, true, "{0} moongates generated.", count);
|
||||
World.Broadcast(0x35, true, $"{count} moongates generated.");
|
||||
}
|
||||
|
||||
private static void DeleteAll()
|
||||
|
|
@ -133,7 +133,7 @@ public partial class PublicMoongate : Item
|
|||
|
||||
if (list.Count > 0)
|
||||
{
|
||||
World.Broadcast(0x35, true, "{0} moongates removed.", list.Count);
|
||||
World.Broadcast(0x35, true, $"{list.Count} moongates removed.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,11 +162,11 @@ public partial class Teleporter : Item
|
|||
{
|
||||
if (_mapDest != null && _pointDest != Point3D.Zero)
|
||||
{
|
||||
LabelTo(from, "{0} [{1}]", _pointDest, _mapDest);
|
||||
LabelTo(from, $"{_pointDest} [{_mapDest}]");
|
||||
}
|
||||
else if (_mapDest != null)
|
||||
{
|
||||
LabelTo(from, "[{0}]", _mapDest);
|
||||
LabelTo(from, $"[{_mapDest}]");
|
||||
}
|
||||
else if (_pointDest != Point3D.Zero)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public partial class WayPoint : Item
|
|||
}
|
||||
else
|
||||
{
|
||||
LabelTo(from, "(Linked: {0})", _nextPoint.Location);
|
||||
LabelTo(from, $"(Linked: {_nextPoint.Location})");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue