Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -187,9 +187,7 @@ namespace Server.Spells
|
|||
m.CheckSkill( MoveSkill, RequiredSkill, RequiredSkill + 37.5 );
|
||||
}
|
||||
|
||||
private static Dictionary<Mobile, SpecialMove> m_Table = new Dictionary<Mobile, SpecialMove>();
|
||||
|
||||
public static Dictionary<Mobile, SpecialMove> Table => m_Table;
|
||||
public static Dictionary<Mobile, SpecialMove> Table { get; } = new Dictionary<Mobile, SpecialMove>();
|
||||
|
||||
public static void ClearAllMoves( Mobile m )
|
||||
{
|
||||
|
|
@ -215,7 +213,7 @@ namespace Server.Spells
|
|||
return null;
|
||||
}
|
||||
|
||||
m_Table.TryGetValue( m, out SpecialMove move );
|
||||
Table.TryGetValue( m, out SpecialMove move );
|
||||
|
||||
if ( move != null && move.ValidatesDuringHit && !move.Validate( m ) )
|
||||
{
|
||||
|
|
@ -251,7 +249,7 @@ namespace Server.Spells
|
|||
{
|
||||
WeaponAbility.ClearCurrentAbility( m );
|
||||
|
||||
m_Table[m] = move;
|
||||
Table[m] = move;
|
||||
|
||||
move.OnUse( m );
|
||||
|
||||
|
|
@ -268,7 +266,7 @@ namespace Server.Spells
|
|||
|
||||
public static void ClearCurrentMove( Mobile m )
|
||||
{
|
||||
m_Table.TryGetValue( m, out SpecialMove move );
|
||||
Table.TryGetValue( m, out SpecialMove move );
|
||||
|
||||
if ( move != null )
|
||||
{
|
||||
|
|
@ -280,7 +278,7 @@ namespace Server.Spells
|
|||
m.Send( new ToggleSpecialAbility( moveID + 1, false ) );
|
||||
}
|
||||
|
||||
m_Table.Remove( m );
|
||||
Table.Remove( m );
|
||||
}
|
||||
|
||||
public SpecialMove()
|
||||
|
|
@ -341,16 +339,14 @@ namespace Server.Spells
|
|||
|
||||
public class SpecialMoveContext
|
||||
{
|
||||
private Timer m_Timer;
|
||||
private Type m_Type;
|
||||
public Timer Timer { get; }
|
||||
|
||||
public Timer Timer => m_Timer;
|
||||
public Type Type => m_Type;
|
||||
public Type Type { get; }
|
||||
|
||||
public SpecialMoveContext( Timer timer, Type type )
|
||||
{
|
||||
m_Timer = timer;
|
||||
m_Type = type;
|
||||
Timer = timer;
|
||||
Type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue