Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -991,12 +991,12 @@ namespace Server.Engines.ConPVP
|
|||
{
|
||||
public string Center( string text )
|
||||
{
|
||||
return String.Format( "<CENTER>{0}</CENTER>", text );
|
||||
return $"<CENTER>{text}</CENTER>";
|
||||
}
|
||||
|
||||
public string Color( string text, int color )
|
||||
{
|
||||
return String.Format( "<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", color, text );
|
||||
return $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
|
||||
}
|
||||
|
||||
private void AddBorderedText( int x, int y, int width, int height, string text, int color, int borderColor )
|
||||
|
|
@ -1137,7 +1137,7 @@ namespace Server.Engines.ConPVP
|
|||
break;
|
||||
}
|
||||
|
||||
AddBorderedText( 60, 65 + ( i * 75 ), 250, 20, String.Format( "{0}: {1}", LadderGump.Rank( 1 + i ), teamInfo.Name ), nameColor, borderColor );
|
||||
AddBorderedText( 60, 65 + ( i * 75 ), 250, 20, $"{LadderGump.Rank(1 + i)}: {teamInfo.Name}", nameColor, borderColor );
|
||||
|
||||
AddBorderedText( 50 + 10, 85 + ( i * 75 ), 100, 20, "Score:", 0xFFC000, BlackColor32 );
|
||||
AddBorderedText( 50 + 15, 105 + ( i * 75 ), 100, 20, teamInfo.Score.ToString( "N0" ), 0xFFC000, BlackColor32 );
|
||||
|
|
@ -1266,7 +1266,7 @@ namespace Server.Engines.ConPVP
|
|||
return res;
|
||||
}
|
||||
|
||||
public string Name => String.Format( "{0} Team", m_Name );
|
||||
public string Name => $"{m_Name} Team";
|
||||
|
||||
public BRGame Game { get => m_Game;
|
||||
set => m_Game = value;
|
||||
|
|
@ -1399,7 +1399,7 @@ namespace Server.Engines.ConPVP
|
|||
public override string ToString()
|
||||
{
|
||||
if ( m_Name != null )
|
||||
return String.Format( "({0}) ...", Name );
|
||||
return $"({Name}) ...";
|
||||
else
|
||||
return "...";
|
||||
}
|
||||
|
|
@ -1848,7 +1848,7 @@ namespace Server.Engines.ConPVP
|
|||
if ( pl == leader )
|
||||
item.ItemID = 4810;
|
||||
|
||||
item.Name = String.Format( "{0}, {1} team", item.Name, ((BRTeamInfo)teams[i]).Name.ToLower() );
|
||||
item.Name = $"{item.Name}, {((BRTeamInfo) teams[i]).Name.ToLower()} team";
|
||||
|
||||
if ( !mob.PlaceInBackpack( item ) )
|
||||
mob.BankBox.DropItem( item );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue