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

@ -144,7 +144,7 @@ namespace Server.Engines.Events
public PlayerBones( String name )
: base( Utility.RandomMinMax( 0x0ECA, 0x0ED2 ) )
{
Name = String.Format( "{0}'s bones", name );
Name = $"{name}'s bones";
switch( Utility.Random( 10 ) )
{
@ -190,7 +190,7 @@ namespace Server.Engines.Events
{
m_DeadPlayer = player;
Name = ( player != null ) ? String.Format( "{0}'s {1}", player.Name, m_Name ) : m_Name;
Name = ( player != null ) ? $"{player.Name}'s {m_Name}" : m_Name;
Body = 0x93;
BaseSoundID = 0x1c3;