Removes implicit types

This commit is contained in:
Kamron Batman 2018-09-14 08:48:39 -07:00
parent 33f5e77a24
commit 04b4cfe75b
261 changed files with 1329 additions and 1329 deletions

View file

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

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 NeedDelegate[] { m_Cure };
private static NeedDelegate[] m_AGHeal = new NeedDelegate[] { m_GHeal };
private static NeedDelegate[] m_ALHeal = new NeedDelegate[] { m_LHeal };
private static NeedDelegate[] m_All = new NeedDelegate[] { m_Cure, m_GHeal, m_LHeal };
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 };
public HealerAI( BaseCreature m ) : base( m )
{

View file

@ -917,7 +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 int[]
private static int[] m_Offsets = new[]
{
-1, -1,
-1, 0,

View file

@ -43,16 +43,16 @@ namespace Server
return -1;
}
private static OppositionGroup m_TerathansAndOphidians = new OppositionGroup( new Type[][]
{
new Type[]
private static OppositionGroup m_TerathansAndOphidians = new OppositionGroup( new[]
{
new[]
{
typeof( TerathanAvenger ),
typeof( TerathanDrone ),
typeof( TerathanMatriarch ),
typeof( TerathanWarrior )
},
new Type[]
new[]
{
typeof( OphidianArchmage ),
typeof( OphidianKnight ),
@ -64,9 +64,9 @@ namespace Server
public static OppositionGroup TerathansAndOphidians => m_TerathansAndOphidians;
private static OppositionGroup m_SavagesAndOrcs = new OppositionGroup( new Type[][]
{
new Type[]
private static OppositionGroup m_SavagesAndOrcs = new OppositionGroup( new[]
{
new[]
{
typeof( Orc ),
typeof( OrcBomber ),
@ -76,7 +76,7 @@ namespace Server
typeof( OrcishMage ),
typeof( SpawnedOrcishLord )
},
new Type[]
new[]
{
typeof( Savage ),
typeof( SavageRider ),
@ -87,9 +87,9 @@ namespace Server
public static OppositionGroup SavagesAndOrcs => m_SavagesAndOrcs;
private static OppositionGroup m_FeyAndUndead = new OppositionGroup( new Type[][]
{
new Type[]
private static OppositionGroup m_FeyAndUndead = new OppositionGroup( new[]
{
new[]
{
typeof( Centaur ),
typeof( EtherealWarrior ),
@ -103,7 +103,7 @@ namespace Server
typeof( MLDryad ),
typeof( Satyr )
},
new Type[]
new[]
{
typeof( AncientLich ),
typeof( Bogle ),

View file

@ -87,10 +87,10 @@ namespace Server
private static Dictionary<Type, SpeedInfo> m_Table;
private static SpeedInfo[] m_Speeds = new SpeedInfo[]
private static SpeedInfo[] m_Speeds = new[]
{
/* Slow */
new SpeedInfo( 0.3, 0.6, new Type[]
new SpeedInfo( 0.3, 0.6, new[]
{
typeof( AntLion ), typeof( ArcticOgreLord ), typeof( BogThing ),
typeof( Bogle ), typeof( BoneKnight ), typeof( EarthElemental ),
@ -105,7 +105,7 @@ namespace Server
typeof( Juggernaut ), typeof( Yamandon ), typeof( Serado )
} ),
/* Fast */
new SpeedInfo( 0.2, 0.4, new Type[]
new SpeedInfo( 0.2, 0.4, new[]
{
typeof( LordOaks ), typeof( Silvani ), typeof( AirElemental ),
typeof( AncientWyrm ), typeof( Balron ), typeof( BladeSpirits ),
@ -131,7 +131,7 @@ namespace Server
#endregion
} ),
/* Very Fast */
new SpeedInfo( 0.175, 0.350, new Type[]
new SpeedInfo( 0.175, 0.350, new[]
{
typeof( Barracoon ), typeof( Mephitis ), typeof( Neira ),
typeof( Rikktor ), typeof( Semidar ), typeof( EnergyVortex ),
@ -144,7 +144,7 @@ namespace Server
typeof( FanDancer ), typeof( FactionDeathKnight )
} ),
/* Medium */
new SpeedInfo( 0.25, 0.5, new Type[]
new SpeedInfo( 0.25, 0.5, new[]
{
typeof( AcidElemental ), typeof( AgapiteElemental ), typeof( Alligator ),
typeof( AncientLich ), typeof( Betrayer ), typeof( Bird ),