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

@ -123,8 +123,7 @@ namespace Server.Engines.Harvest
}
}
private static MutateEntry[] m_MutateTable = new[]
{
private static MutateEntry[] m_MutateTable = {
new MutateEntry( 80.0, 80.0, 4080.0, true, typeof( SpecialFishingNet ) ),
new MutateEntry( 80.0, 80.0, 4080.0, true, typeof( BigFish ) ),
new MutateEntry( 90.0, 80.0, 4080.0, true, typeof( TreasureMap ) ),
@ -254,8 +253,7 @@ namespace Server.Engines.Harvest
{
case 0: // Body parts
{
int[] list = new[]
{
int[] list = {
0x1CDD, 0x1CE5, // arm
0x1CE0, 0x1CE8, // torso
0x1CE1, 0x1CE9, // head
@ -267,8 +265,7 @@ namespace Server.Engines.Harvest
}
case 1: // Bone parts
{
int[] list = new[]
{
int[] list = {
0x1AE0, 0x1AE1, 0x1AE2, 0x1AE3, 0x1AE4, // skulls
0x1B09, 0x1B0A, 0x1B0B, 0x1B0C, 0x1B0D, 0x1B0E, 0x1B0F, 0x1B10, // bone piles
0x1B15, 0x1B16 // pelvis bones
@ -303,8 +300,7 @@ namespace Server.Engines.Harvest
}
case 6: // Misc
{
int[] list = new[]
{
int[] list = {
0x1EB5, // unfinished barrel
0xA2A, // stool
0xC1F, // broken clock
@ -550,8 +546,7 @@ namespace Server.Engines.Harvest
return true;
}
private static int[] m_WaterTiles = new[]
{
private static int[] m_WaterTiles = {
0x00A8, 0x00AB,
0x0136, 0x0137,
0x5797, 0x579C,

View file

@ -182,8 +182,7 @@ namespace Server.Engines.Harvest
}
#region Tile lists
private static int[] m_TreeTiles = new[]
{
private static int[] m_TreeTiles = {
0x4CCA, 0x4CCB, 0x4CCC, 0x4CCD, 0x4CD0, 0x4CD3, 0x4CD6, 0x4CD8,
0x4CDA, 0x4CDD, 0x4CE0, 0x4CE3, 0x4CE6, 0x4CF8, 0x4CFB, 0x4CFE,
0x4D01, 0x4D41, 0x4D42, 0x4D43, 0x4D44, 0x4D57, 0x4D58, 0x4D59,

View file

@ -260,8 +260,7 @@ namespace Server.Engines.Harvest
return base.MutateVein( from, tool, def, bank, toHarvest, vein );
}
private static int[] m_Offsets = new[]
{
private static int[] m_Offsets = {
-1, -1,
-1, 0,
-1, 1,
@ -353,8 +352,7 @@ namespace Server.Engines.Harvest
}
#region Tile lists
private static int[] m_MountainAndCaveTiles = new[]
{
private static int[] m_MountainAndCaveTiles = {
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 236, 237, 238, 239, 240, 241, 242, 243,
244, 245, 246, 247, 252, 253, 254, 255, 256, 257,
@ -392,8 +390,7 @@ namespace Server.Engines.Harvest
0x4549, 0x454A, 0x454B, 0x454C, 0x454D, 0x454E, 0x454F
};
private static int[] m_SandTiles = new[]
{
private static int[] m_SandTiles = {
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,