Fixes string interpolation

This commit is contained in:
Kamron Batman 2018-09-14 13:07:43 -07:00
parent 42d0b6271f
commit 7d3a0ca265
233 changed files with 758 additions and 690 deletions

View file

@ -264,7 +264,7 @@ namespace Server.Mobiles
//return (Item)Activator.CreateInstance( m_Type );
}
//Attempt to restock with item, (return true if restock sucessful)
//Attempt to restock with item, (return true if restock successful)
public bool Restock( Item item, int amount )
{
return false;

View file

@ -86,7 +86,7 @@ namespace Server.Mobiles
continue;
AddButton( 15, 39 + (i * 20), 10006, 10006, i + 1, GumpButtonType.Reply, 0 );
AddHtml( 32, 35 + (i * 20), 275, 18, String.Format( "<BASEFONT COLOR=#C0C0EE>{0}</BASEFONT>", pet.Name ), false, false );
AddHtml( 32, 35 + (i * 20), 275, 18, $"<BASEFONT COLOR=#C0C0EE>{pet.Name}</BASEFONT>", false, false );
}
}

View file

@ -142,7 +142,7 @@ namespace Server.Mobiles
public BaseGuildmaster( string title ) : base( title )
{
Title = String.Format( "the {0} {1}", title, Female ? "guildmistress" : "guildmaster" );
Title = $"the {title} {(Female ? "guildmistress" : "guildmaster")}";
}
public BaseGuildmaster( Serial serial ) : base( serial )

View file

@ -579,11 +579,11 @@ namespace Server.Mobiles
public string m_Title;
public bool m_Vendor;
public Entry( string desc ) : this( desc, String.Format( "the {0}", desc.ToLower() ), false )
public Entry( string desc ) : this( desc, $"the {desc.ToLower()}", false )
{
}
public Entry( string desc, bool vendor ) : this( desc, String.Format( "the {0}", desc.ToLower() ), vendor )
public Entry( string desc, bool vendor ) : this( desc, $"the {desc.ToLower()}", vendor )
{
}
@ -711,7 +711,7 @@ namespace Server.Mobiles
{
AddPage( 1 + page );
AddHtml( 430, 70, 180, 25, String.Format( "Page {0} of {1}", page + 1, (entries.Length + 19) / 20 ), false, false );
AddHtml( 430, 70, 180, 25, $"Page {page + 1} of {(entries.Length + 19) / 20}", false, false );
for ( int count = 0, i = (page * 20); count < 20 && i < entries.Length; ++count, ++i )
{