Fixes implicit array initializers

This commit is contained in:
Kamron Batman 2018-09-14 13:14:20 -07:00
parent 7d3a0ca265
commit fee83ce560
189 changed files with 440 additions and 808 deletions

View file

@ -295,8 +295,7 @@ namespace Server.Mobiles
return (from.Alive && from.InRange(m_Mobile.Location, 3) && m_Mobile.IsHumanInTown());
}
private static SkillName[] m_KeywordTable = new[]
{
private static SkillName[] m_KeywordTable = {
SkillName.Parry,
SkillName.Healing,
SkillName.Hiding,

View file

@ -10,10 +10,10 @@ namespace Server.Mobiles
private static NeedDelegate m_Cure = new NeedDelegate( NeedCure );
private static NeedDelegate m_GHeal = new NeedDelegate( NeedGHeal );
private static NeedDelegate m_LHeal = new NeedDelegate( NeedLHeal );
private static NeedDelegate[] m_ACure = new[] { m_Cure };
private static NeedDelegate[] m_AGHeal = new[] { m_GHeal };
private static NeedDelegate[] m_ALHeal = new[] { m_LHeal };
private static NeedDelegate[] m_All = new[] { m_Cure, m_GHeal, m_LHeal };
private static NeedDelegate[] m_ACure = { m_Cure };
private static NeedDelegate[] m_AGHeal = { m_GHeal };
private static NeedDelegate[] m_ALHeal = { m_LHeal };
private static NeedDelegate[] m_All = { m_Cure, m_GHeal, m_LHeal };
public HealerAI( BaseCreature m ) : base( m )
{

View file

@ -917,8 +917,7 @@ namespace Server.Mobiles
return ( m is BaseCreature creature && creature.Summoned && m_Mobile.CanBeHarmful( creature, false ) && !creature.IsAnimatedDead );
}
private static int[] m_Offsets = new[]
{
private static int[] m_Offsets = {
-1, -1,
-1, 0,
-1, 1,

View file

@ -87,8 +87,7 @@ namespace Server
private static Dictionary<Type, SpeedInfo> m_Table;
private static SpeedInfo[] m_Speeds = new[]
{
private static SpeedInfo[] m_Speeds = {
/* Slow */
new SpeedInfo( 0.3, 0.6, new[]
{