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

@ -11,7 +11,7 @@ namespace Server.Items
get
{
if ( m_Owner != null )
return String.Format( "{0}'s St. Valentine Bear", m_Owner );
return $"{m_Owner}'s St. Valentine Bear";
else
return "St. Valentine Bear";
}

View file

@ -40,7 +40,7 @@ namespace Server.Items
base.AddNameProperty( list );
if ( IsSigned )
list.Add( 1152273, String.Format( "{0}\t{1}", m_From, m_To ) ); // ~1_val~ is madly in love with ~2_val~
list.Add( 1152273, $"{m_From}\t{m_To}"); // ~1_val~ is madly in love with ~2_val~
}
public static bool CheckSeason( Mobile from )
@ -57,7 +57,7 @@ namespace Server.Items
base.OnSingleClick( from );
if ( IsSigned )
LabelTo( from, 1152273, String.Format( "{0}\t{1}", m_From, m_To ) ); // ~1_val~ is madly in love with ~2_val~
LabelTo( from, 1152273, $"{m_From}\t{m_To}"); // ~1_val~ is madly in love with ~2_val~
}
public override void OnDoubleClick( Mobile from )