Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -209,7 +209,7 @@ namespace Server.Items
|
|||
if ( se.Count == 1 )
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1062719, se.Total.ToString() );
|
||||
else
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1042683, String.Format( "{0}\t{1}", se.Total, se.Count ) );
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1042683, $"{se.Total}\t{se.Count}");
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
@ -249,7 +249,8 @@ namespace Server.Items
|
|||
|
||||
if ( split )
|
||||
{
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1010027 + area, String.Format( "{0}\t{1}", from.Name, isArrow ? "arrow" : "bolt" ) );
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1010027 + area,
|
||||
$"{@from.Name}\t{(isArrow ? "arrow" : "bolt")}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -266,7 +267,7 @@ namespace Server.Items
|
|||
if ( se.Count == 1 )
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1062719, se.Total.ToString() );
|
||||
else
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1042683, String.Format( "{0}\t{1}", se.Total, se.Count ) );
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1042683, $"{se.Total}\t{se.Count}");
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
|
|
|
|||
|
|
@ -132,12 +132,12 @@ namespace Server.Items
|
|||
if ( !isOwner )
|
||||
AddButton( 20, 240, 0xFA5, 0xFA7, 3, GumpButtonType.Reply, 0 );
|
||||
AddHtmlLocalized( 55, 242, 25, 35, 1011004, false, false ); // aye:
|
||||
AddLabel( 78, 242, 0x0, String.Format( "[{0}]", yesCount ) );
|
||||
AddLabel( 78, 242, 0x0, $"[{yesCount}]");
|
||||
|
||||
if ( !isOwner )
|
||||
AddButton( 20, 275, 0xFA5, 0xFA7, 4, GumpButtonType.Reply, 0 );
|
||||
AddHtmlLocalized( 55, 277, 25, 35, 1011005, false, false ); // nay:
|
||||
AddLabel( 78, 277, 0x0, String.Format( "[{0}]", noCount ) );
|
||||
AddLabel( 78, 277, 0x0, $"[{noCount}]");
|
||||
|
||||
if ( totalVotes > 0 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ namespace Server.Items
|
|||
if ( map == Map.Trammel || map == Map.Felucca )
|
||||
{
|
||||
from.MoveToWorld( new Point3D( 5922, 2024, 0 ), map );
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, String.Format( "* {0} dives into the hole and disappears!*", from.Name ) );
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true,
|
||||
$"* {@from.Name} dives into the hole and disappears!*");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue