Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -134,7 +134,7 @@ namespace Server
|
|||
{
|
||||
protectee.JusticeProtectors.Add( protector );
|
||||
|
||||
string args = String.Format( "{0}\t{1}", protector.Name, protectee.Name );
|
||||
string args = $"{protector.Name}\t{protectee.Name}";
|
||||
|
||||
protectee.SendLocalizedMessage( 1049451, args ); // You are now being protected by ~1_NAME~.
|
||||
protector.SendLocalizedMessage( 1049452, args ); // You are now protecting ~2_NAME~.
|
||||
|
|
@ -143,7 +143,7 @@ namespace Server
|
|||
|
||||
public static void OnVirtueRejected( PlayerMobile protector, PlayerMobile protectee )
|
||||
{
|
||||
string args = String.Format( "{0}\t{1}", protector.Name, protectee.Name );
|
||||
string args = $"{protector.Name}\t{protectee.Name}";
|
||||
|
||||
protectee.SendLocalizedMessage( 1049453, args ); // You have declined protection from ~1_NAME~.
|
||||
protector.SendLocalizedMessage( 1049454, args ); // ~2_NAME~ has declined your protection.
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ namespace Server
|
|||
|
||||
public override string Compile( NetState ns )
|
||||
{
|
||||
return String.Format( "{{ gumppic {0} {1} {2} hue={3} class=VirtueGumpItem }}", X, Y, GumpID, Hue );
|
||||
return $"{{ gumppic {X} {Y} {GumpID} hue={Hue} class=VirtueGumpItem }}";
|
||||
}
|
||||
|
||||
private static byte[] m_Class = StringToBuffer( " class=VirtueGumpItem" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue