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

@ -284,8 +284,7 @@ namespace Server.Engines.Craft
}
#region Tables
private static int[] m_HeatSources = new[]
{
private static int[] m_HeatSources = {
0x461, 0x48E, // Sandstone oven/fireplace
0x92B, 0x96C, // Stone oven/fireplace
0xDE3, 0xDE9, // Campfire
@ -300,21 +299,18 @@ namespace Server.Engines.Craft
0x2DD8, 0x2DD8 // Elven Forge
};
private static int[] m_Ovens = new[]
{
private static int[] m_Ovens = {
0x461, 0x46F, // Sandstone oven
0x92B, 0x93F, // Stone oven
0x2DDB, 0x2DDC //Elven stove
};
private static int[] m_Mills = new[]
{
private static int[] m_Mills = {
0x1920, 0x1921, 0x1922, 0x1923, 0x1924, 0x1295, 0x1926, 0x1928,
0x192C, 0x192D, 0x192E, 0x129F, 0x1930, 0x1931, 0x1932, 0x1934
};
private static Type[][] m_TypesTable = new[]
{
private static Type[][] m_TypesTable = {
new[]{ typeof( Log ), typeof( Board ) },
new[]{ typeof( HeartwoodLog ), typeof( HeartwoodBoard ) },
new[]{ typeof( BloodwoodLog ), typeof( BloodwoodBoard ) },
@ -333,22 +329,19 @@ namespace Server.Engines.Craft
new[]{ typeof( WoodenBowlOfPeas ), typeof( PewterBowlOfPeas ) }
};
private static Type[] m_ColoredItemTable = new[]
{
private static Type[] m_ColoredItemTable = {
typeof( BaseWeapon ), typeof( BaseArmor ), typeof( BaseClothing ),
typeof( BaseJewel ), typeof( DragonBardingDeed )
};
private static Type[] m_ColoredResourceTable = new[]
{
private static Type[] m_ColoredResourceTable = {
typeof( BaseIngot ), typeof( BaseOre ),
typeof( BaseLeather ), typeof( BaseHides ),
typeof( UncutCloth ), typeof( Cloth ),
typeof( BaseGranite ), typeof( BaseScales )
};
private static Type[] m_MarkableTable = new[]
{
private static Type[] m_MarkableTable = {
typeof( BaseArmor ),
typeof( BaseWeapon ),
typeof( BaseClothing ),
@ -361,8 +354,7 @@ namespace Server.Engines.Craft
typeof( BaseQuiver )
};
private static Type[] m_NeverColorTable = new[]
{
private static Type[] m_NeverColorTable = {
typeof( OrcHelm )
};
#endregion

View file

@ -120,8 +120,7 @@ namespace Server.Engines.Craft
SpidersSilk
}
private Type[] m_RegTypes = new[]
{
private Type[] m_RegTypes = {
typeof( BlackPearl ),
typeof( Bloodmoss ),
typeof( Garlic ),

View file

@ -43,8 +43,7 @@ namespace Server.Engines.Craft
return 0;
}
private static Type[] m_TailorColorables = new[]
{
private static Type[] m_TailorColorables = {
typeof( GozaMatEastDeed ), typeof( GozaMatSouthDeed ),
typeof( SquareGozaMatEastDeed ), typeof( SquareGozaMatSouthDeed ),
typeof( BrocadeGozaMatEastDeed ), typeof( BrocadeGozaMatSouthDeed ),

View file

@ -48,8 +48,7 @@ namespace Server.Engines.Craft
return 0;
}
private static Type[] m_TinkerColorables = new[]
{
private static Type[] m_TinkerColorables = {
typeof( ForkLeft ), typeof( ForkRight ),
typeof( SpoonLeft ), typeof( SpoonRight ),
typeof( KnifeLeft ), typeof( KnifeRight ),