Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -75,7 +75,7 @@ namespace Server.Spells
|
|||
{
|
||||
if ( m.Skills[MoveSkill].Value < RequiredSkill )
|
||||
{
|
||||
string args = String.Format( "{0}\t{1}\t ", RequiredSkill.ToString( "F1" ), MoveSkill.ToString() );
|
||||
string args = $"{RequiredSkill.ToString("F1")}\t{MoveSkill.ToString()}\t ";
|
||||
m.SendLocalizedMessage( 1063013, args ); // You need at least ~1_SKILL_REQUIREMENT~ ~2_SKILL_NAME~ skill to use that ability.
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ namespace Server.Spells
|
|||
public static bool AddStatBonus( Mobile caster, Mobile target, StatType type, int bonus, TimeSpan duration )
|
||||
{
|
||||
int offset = bonus;
|
||||
string name = String.Format( "[Magic] {0} Offset", type );
|
||||
string name = $"[Magic] {type} Offset";
|
||||
|
||||
StatMod mod = target.GetStatMod( name );
|
||||
|
||||
|
|
@ -250,7 +250,7 @@ namespace Server.Spells
|
|||
public static bool AddStatCurse( Mobile caster, Mobile target, StatType type, int curse, TimeSpan duration )
|
||||
{
|
||||
int offset = -curse;
|
||||
string name = String.Format( "[Magic] {0} Offset", type );
|
||||
string name = $"[Magic] {type} Offset";
|
||||
|
||||
StatMod mod = target.GetStatMod( name );
|
||||
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ namespace Server.Spells
|
|||
{
|
||||
for ( int i = 0; i < m_CircleNames.Length; ++i )
|
||||
{
|
||||
Type t = ScriptCompiler.FindTypeByFullName( String.Format( "Server.Spells.{0}.{1}", m_CircleNames[i], name ) );
|
||||
Type t = ScriptCompiler.FindTypeByFullName($"Server.Spells.{m_CircleNames[i]}.{name}");
|
||||
|
||||
if ( t != null && !t.IsSubclassOf( typeof( SpecialMove ) ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue