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

@ -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 )
{