Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -204,7 +204,7 @@ namespace Server.Spells
}
}
public virtual bool ValidatesDuringHit{ get { return true; } }
public virtual bool ValidatesDuringHit => true;
public static SpecialMove GetCurrentMove( Mobile m )
{
@ -217,8 +217,7 @@ namespace Server.Spells
return null;
}
SpecialMove move = null;
m_Table.TryGetValue( m, out move );
m_Table.TryGetValue( m, out SpecialMove move );
if ( move != null && move.ValidatesDuringHit && !move.Validate( m ) )
{
@ -271,8 +270,7 @@ namespace Server.Spells
public static void ClearCurrentMove( Mobile m )
{
SpecialMove move = null;
m_Table.TryGetValue( m, out move );
m_Table.TryGetValue( m, out SpecialMove move );
if ( move != null )
{
@ -318,8 +316,7 @@ namespace Server.Spells
public static bool GetContext( Mobile m, Type type )
{
SpecialMoveContext context = null;
m_PlayersTable.TryGetValue( m, out context );
m_PlayersTable.TryGetValue( m, out SpecialMoveContext context );
if ( context == null )
return false;
@ -359,4 +356,4 @@ namespace Server.Spells
}
}
}
}
}