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

@ -7,8 +7,7 @@ namespace Server.Items
{
public class CrystalRechargeInfo
{
public static readonly CrystalRechargeInfo[] Table = new[]
{
public static readonly CrystalRechargeInfo[] Table = {
new CrystalRechargeInfo( typeof( Citrine ), 500 ),
new CrystalRechargeInfo( typeof( Amber ), 500 ),
new CrystalRechargeInfo( typeof( Tourmaline ), 750 ),

View file

@ -6,8 +6,7 @@ namespace Server.Items
{
public class DeceitBrazier : Item
{
private static Type[] m_Creatures = new[]
{
private static Type[] m_Creatures = {
#region Animals
typeof( FireSteed ), //Set the tents up people!
#endregion

View file

@ -9,8 +9,7 @@ namespace Server.Items
{
private static string m_MethodName = "Flip";
private static Type[] m_Params = new[]
{
private static Type[] m_Params = {
typeof( Mobile ), typeof( Direction )
};

View file

@ -69,8 +69,7 @@ namespace Server.Items
}
}
private static HairDyeEntry[] m_Entries = new[]
{
private static HairDyeEntry[] m_Entries = {
new HairDyeEntry( "*****", 1602, 26 ),
new HairDyeEntry( "*****", 1628, 27 ),
new HairDyeEntry( "*****", 1502, 32 ),

View file

@ -5,8 +5,7 @@ namespace Server.Items
public override int LabelNumber => 1075095; // Shimmering Crystals
public override bool ForceShowProperties => true;
private static readonly int[] m_ItemIDs = new[]
{
private static readonly int[] m_ItemIDs = {
0x2206, 0x2207, 0x2208, 0x2209, 0x220A, 0x220B, 0x220C, 0x220D, 0x220E,
0x2210, 0x2211, 0x2212, 0x2213, 0x2214, 0x2215, 0x2216, 0x2217, 0x2218,
0x221A, 0x221B, 0x221C, 0x221D, 0x221E, 0x221F, 0x2220, 0x2221, 0x2222,

View file

@ -249,16 +249,16 @@ namespace Server.Items
new PMEntry( new Point3D( 270, 628, 15 ), 1063414 ) // Homare-Jima
} );
public static readonly PMList[] UORLists = new[] { Trammel, Felucca };
public static readonly PMList[] UORListsYoung = new[] { Trammel };
public static readonly PMList[] LBRLists = new[] { Trammel, Felucca, Ilshenar };
public static readonly PMList[] LBRListsYoung = new[] { Trammel, Ilshenar };
public static readonly PMList[] AOSLists = new[] { Trammel, Felucca, Ilshenar, Malas };
public static readonly PMList[] AOSListsYoung = new[] { Trammel, Ilshenar, Malas };
public static readonly PMList[] SELists = new[] { Trammel, Felucca, Ilshenar, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new[] { Trammel, Ilshenar, Malas, Tokuno };
public static readonly PMList[] RedLists = new[] { Felucca };
public static readonly PMList[] SigilLists = new[] { Felucca };
public static readonly PMList[] UORLists = { Trammel, Felucca };
public static readonly PMList[] UORListsYoung = { Trammel };
public static readonly PMList[] LBRLists = { Trammel, Felucca, Ilshenar };
public static readonly PMList[] LBRListsYoung = { Trammel, Ilshenar };
public static readonly PMList[] AOSLists = { Trammel, Felucca, Ilshenar, Malas };
public static readonly PMList[] AOSListsYoung = { Trammel, Ilshenar, Malas };
public static readonly PMList[] SELists = { Trammel, Felucca, Ilshenar, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = { Trammel, Ilshenar, Malas, Tokuno };
public static readonly PMList[] RedLists = { Felucca };
public static readonly PMList[] SigilLists = { Felucca };
}
public class MoongateGump : Gump

View file

@ -70,8 +70,7 @@ namespace Server.Items
}
}
private static SpecialBeardDyeEntry[] m_Entries = new[]
{
private static SpecialBeardDyeEntry[] m_Entries = {
new SpecialBeardDyeEntry( "*****", 12, 10 ),
new SpecialBeardDyeEntry( "*****", 32, 5 ),
new SpecialBeardDyeEntry( "*****", 38, 8 ),

View file

@ -71,8 +71,7 @@ namespace Server.Items
}
}
private static SpecialHairDyeEntry[] m_Entries = new[]
{
private static SpecialHairDyeEntry[] m_Entries = {
new SpecialHairDyeEntry( "*****", 12, 10 ),
new SpecialHairDyeEntry( "*****", 32, 5 ),
new SpecialHairDyeEntry( "*****", 38, 8 ),

View file

@ -19,7 +19,7 @@ namespace Server.Items
{
}
private static int[] m_Sounds = new[] { 0x505, 0x506, 0x507 };
private static int[] m_Sounds = { 0x505, 0x506, 0x507 };
public static int[] Sounds => m_Sounds;