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

@ -395,7 +395,7 @@ namespace Server.Engines.Plants
if ( from.Backpack == null )
return null;
Item[] items = from.Backpack.FindItemsByType( new Type[] { typeof( BasePotion ), typeof( PotionKeg ) } );
Item[] items = from.Backpack.FindItemsByType( new[] { typeof( BasePotion ), typeof( PotionKeg ) } );
foreach ( Item item in items )
{

View file

@ -158,9 +158,9 @@ namespace Server.Items
}
}
private static TilesAndEffect[] m_Table = new TilesAndEffect[]
private static TilesAndEffect[] m_Table = new[]
{
new TilesAndEffect( new int[]
new TilesAndEffect( new[]
{
0x71, 0x7C,
0x82, 0xA7,
@ -197,14 +197,14 @@ namespace Server.Items
},
typeof( DirtGreenThornsEffect ) ),
new TilesAndEffect( new int[]
new TilesAndEffect( new[]
{
0x9, 0x15,
0x150, 0x15C
},
typeof( FurrowsGreenThornsEffect ) ),
new TilesAndEffect( new int[]
new TilesAndEffect( new[]
{
0x9C4, 0x9EB,
0x3D65, 0x3D65,
@ -216,7 +216,7 @@ namespace Server.Items
},
typeof( SwampGreenThornsEffect ) ),
new TilesAndEffect( new int[]
new TilesAndEffect( new[]
{
0x10C, 0x10F,
0x114, 0x117,
@ -235,7 +235,7 @@ namespace Server.Items
},
typeof( SnowGreenThornsEffect ) ),
new TilesAndEffect( new int[]
new TilesAndEffect( new[]
{
0x16, 0x3A,
0x44, 0x4B,

View file

@ -145,7 +145,7 @@ namespace Server.Engines.Plants
return contains;
}
private static int[] m_DirtPatchTiles = new int[]
private static int[] m_DirtPatchTiles = new[]
{
0x9, 0x15,
0x71, 0x7C,

View file

@ -5,7 +5,7 @@ namespace Server.Engines.Plants
{
public class PlantResourceInfo
{
private static PlantResourceInfo[] m_ResourceList = new PlantResourceInfo[]
private static PlantResourceInfo[] m_ResourceList = new[]
{
new PlantResourceInfo( PlantType.ElephantEarPlant, PlantHue.BrightRed, typeof( RedLeaves ) ),
new PlantResourceInfo( PlantType.PonytailPalm, PlantHue.BrightRed, typeof( RedLeaves ) ),

View file

@ -61,7 +61,7 @@ namespace Server.Engines.Plants
public class PlantTypeInfo
{
private static PlantTypeInfo[] m_Table = new PlantTypeInfo[]
private static PlantTypeInfo[] m_Table = new[]
{
new PlantTypeInfo( 0xC83, 0, 0, PlantType.CampionFlowers, false, true, true, true, PlantCategory.Default ),
new PlantTypeInfo( 0xC86, 0, 0, PlantType.Poppies, false, true, true, true, PlantCategory.Default ),