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

@ -34,8 +34,7 @@ namespace Server.Misc
set => m_LockdownLevel = value; set => m_LockdownLevel = value;
} }
private static CityInfo[] StartingCities = new[] private static CityInfo[] StartingCities = {
{
new CityInfo( "New Haven", "New Haven Bank", 1150168, 3667, 2625, 0 ), new CityInfo( "New Haven", "New Haven Bank", 1150168, 3667, 2625, 0 ),
new CityInfo( "Yew", "The Empath Abbey", 1075072, 633, 858, 0 ), new CityInfo( "Yew", "The Empath Abbey", 1075072, 633, 858, 0 ),
new CityInfo( "Minoc", "The Barnacle", 1075073, 2476, 413, 15 ), new CityInfo( "Minoc", "The Barnacle", 1075073, 2476, 413, 15 ),
@ -250,8 +249,7 @@ namespace Server.Misc
} }
} }
private static readonly char[] m_ForbiddenChars = new[] private static readonly char[] m_ForbiddenChars = {
{
'<', '>', ':', '"', '/', '\\', '|', '?', '*' '<', '>', ':', '"', '/', '\\', '|', '?', '*'
}; };

View file

@ -11,8 +11,7 @@ namespace Server.Misc
public static int MaxAddresses = 10; public static int MaxAddresses = 10;
public static IPAddress[] Exemptions = new IPAddress[] //For hosting services where there are cases where IPs can be proxied public static IPAddress[] Exemptions = {
{
//IPAddress.Parse( "127.0.0.1" ), //IPAddress.Parse( "127.0.0.1" ),
}; };

View file

@ -673,7 +673,7 @@ namespace Server.Commands
return type.IsDefined( m_ParsableType, false ); return type.IsDefined( m_ParsableType, false );
} }
private static Type[] m_ParseTypes = new[]{ typeof( string ) }; private static Type[] m_ParseTypes = { typeof( string ) };
private static object[] m_ParseArgs = new object[1]; private static object[] m_ParseArgs = new object[1];
public static object ParseParsable( Type type, string value ) public static object ParseParsable( Type type, string value )
@ -685,8 +685,7 @@ namespace Server.Commands
return method.Invoke( null, m_ParseArgs ); return method.Invoke( null, m_ParseArgs );
} }
private static Type[] m_SignedNumerics = new[] private static Type[] m_SignedNumerics = {
{
typeof( Int64 ), typeof( Int64 ),
typeof( Int32 ), typeof( Int32 ),
typeof( Int16 ), typeof( Int16 ),
@ -702,8 +701,7 @@ namespace Server.Commands
return false; return false;
} }
private static Type[] m_UnsignedNumerics = new[] private static Type[] m_UnsignedNumerics = {
{
typeof( UInt64 ), typeof( UInt64 ),
typeof( UInt32 ), typeof( UInt32 ),
typeof( UInt16 ), typeof( UInt16 ),

View file

@ -248,8 +248,7 @@ namespace Server.Commands
#region GetPair #region GetPair
private static string[,] m_Aliases = new[,] private static string[,] m_Aliases = {
{
{ "System.Object", "<font color=\"blue\">object</font>" }, { "System.Object", "<font color=\"blue\">object</font>" },
{ "System.String", "<font color=\"blue\">string</font>" }, { "System.String", "<font color=\"blue\">string</font>" },
{ "System.Boolean", "<font color=\"blue\">bool</font>" }, { "System.Boolean", "<font color=\"blue\">bool</font>" },
@ -1947,8 +1946,7 @@ namespace Server.Commands
private const string HtmlNewLine = "&#13;"; private const string HtmlNewLine = "&#13;";
private static object[,] m_Tooltips = new object[,] private static object[,] m_Tooltips = {
{
{ typeof( Byte ), "Numeric value in the range from 0 to 255, inclusive." }, { typeof( Byte ), "Numeric value in the range from 0 to 255, inclusive." },
{ typeof( SByte ), "Numeric value in the range from negative 128 to positive 127, inclusive." }, { typeof( SByte ), "Numeric value in the range from negative 128 to positive 127, inclusive." },
{ typeof( UInt16 ), "Numeric value in the range from 0 to 65,535, inclusive." }, { typeof( UInt16 ), "Numeric value in the range from 0 to 65,535, inclusive." },

View file

@ -93,7 +93,7 @@ namespace Server.Commands
} }
} }
private static char[] m_NotSafe = new[]{ '\\', '/', ':', '*', '?', '"', '<', '>', '|' }; private static char[] m_NotSafe = { '\\', '/', ':', '*', '?', '"', '<', '>', '|' };
public static void AppendPath( ref string path, string toAppend ) public static void AppendPath( ref string path, string toAppend )
{ {

View file

@ -240,8 +240,7 @@ namespace Server.Commands
{ {
using ( StreamWriter op = new StreamWriter( "expandedItems.log", true ) ) using ( StreamWriter op = new StreamWriter( "expandedItems.log", true ) )
{ {
string[] names = new[] string[] names = {
{
"Name", "Name",
"Items", "Items",
"Bounce", "Bounce",

View file

@ -396,7 +396,7 @@ namespace Server.Commands
return ( t == typeofTimeSpan || t.IsDefined( typeofParsable, false ) ); return ( t == typeofTimeSpan || t.IsDefined( typeofParsable, false ) );
} }
private static Type[] m_ParseTypes = new[]{ typeof( string ) }; private static Type[] m_ParseTypes = { typeof( string ) };
private static object[] m_ParseParams = new object[1]; private static object[] m_ParseParams = new object[1];
private static object Parse( object o, Type t, string value ) private static object Parse( object o, Type t, string value )
@ -408,8 +408,7 @@ namespace Server.Commands
return method.Invoke( o, m_ParseParams ); return method.Invoke( o, m_ParseParams );
} }
private static Type[] m_NumericTypes = new[] private static Type[] m_NumericTypes = {
{
typeof( Byte ), typeof( SByte ), typeof( Byte ), typeof( SByte ),
typeof( Int16 ), typeof( UInt16 ), typeof( Int16 ), typeof( UInt16 ),
typeof( Int32 ), typeof( UInt32 ), typeof( Int32 ), typeof( UInt32 ),

View file

@ -60,12 +60,12 @@ namespace Server.Commands
} }
} }
Map[] brit = new[]{ Map.Felucca, Map.Trammel }; Map[] brit = { Map.Felucca, Map.Trammel };
Map[] fel = new[]{ Map.Felucca }; Map[] fel = { Map.Felucca };
Map[] tram = new[]{ Map.Trammel }; Map[] tram = { Map.Trammel };
Map[] ilsh = new[]{ Map.Ilshenar }; Map[] ilsh = { Map.Ilshenar };
Map[] malas = new[]{ Map.Malas }; Map[] malas = { Map.Malas };
Map[] tokuno = new[]{ Map.Tokuno }; Map[] tokuno = { Map.Tokuno };
for ( int i = 0; i < list.Count; ++i ) for ( int i = 0; i < list.Count; ++i )
{ {

View file

@ -10,8 +10,7 @@ namespace Server.Engines.BulkOrders
private const int LabelColor = 0x7FFF; private const int LabelColor = 0x7FFF;
private static int[,] m_MaterialFilters = new[,] private static int[,] m_MaterialFilters = {
{
{ 1044067, 1 }, // Blacksmithy { 1044067, 1 }, // Blacksmithy
{ 1062226, 3 }, // Iron { 1062226, 3 }, // Iron
{ 1018332, 4 }, // Dull Copper { 1018332, 4 }, // Dull Copper
@ -34,43 +33,39 @@ namespace Server.Engines.BulkOrders
{ 1062238, 16 } // Barbed { 1062238, 16 } // Barbed
}; };
private static int[,] m_TypeFilters = new[,] private static int[,] m_TypeFilters = {
{
{ 1062229, 0 }, // All { 1062229, 0 }, // All
{ 1062224, 1 }, // Small { 1062224, 1 }, // Small
{ 1062225, 2 } // Large { 1062225, 2 } // Large
}; };
private static int[,] m_QualityFilters = new[,] private static int[,] m_QualityFilters = {
{
{ 1062229, 0 }, // All { 1062229, 0 }, // All
{ 1011542, 1 }, // Normal { 1011542, 1 }, // Normal
{ 1060636, 2 } // Exceptional { 1060636, 2 } // Exceptional
}; };
private static int[,] m_AmountFilters = new[,] private static int[,] m_AmountFilters = {
{
{ 1062229, 0 }, // All { 1062229, 0 }, // All
{ 1049706, 1 }, // 10 { 1049706, 1 }, // 10
{ 1016007, 2 }, // 15 { 1016007, 2 }, // 15
{ 1062239, 3 } // 20 { 1062239, 3 } // 20
}; };
private static int[][,] m_Filters = new[] private static int[][,] m_Filters = {
{
m_TypeFilters, m_TypeFilters,
m_QualityFilters, m_QualityFilters,
m_MaterialFilters, m_MaterialFilters,
m_AmountFilters m_AmountFilters
}; };
private static int[] m_XOffsets_Type = new[]{ 0, 75, 170 }; private static int[] m_XOffsets_Type = { 0, 75, 170 };
private static int[] m_XOffsets_Quality = new[]{ 0, 75, 170 }; private static int[] m_XOffsets_Quality = { 0, 75, 170 };
private static int[] m_XOffsets_Amount = new[]{ 0, 75, 180, 275 }; private static int[] m_XOffsets_Amount = { 0, 75, 180, 275 };
private static int[] m_XOffsets_Material = new[]{ 0, 105, 210, 305, 390, 485 }; private static int[] m_XOffsets_Material = { 0, 105, 210, 305, 390, 485 };
private static int[] m_XWidths_Small = new[]{ 50, 50, 70, 50 }; private static int[] m_XWidths_Small = { 50, 50, 70, 50 };
private static int[] m_XWidths_Large = new[]{ 80, 50, 50, 50, 50, 50 }; private static int[] m_XWidths_Large = { 80, 50, 50, 50, 50, 50 };
private void AddFilterList( int x, int y, int[] xOffsets, int yOffset, int[,] filters, int[] xWidths, int filterValue, int filterIndex ) private void AddFilterList( int x, int y, int[] xOffsets, int yOffset, int[,] filters, int[] xWidths, int filterValue, int filterIndex )
{ {

View file

@ -6,8 +6,7 @@ namespace Server.Engines.BulkOrders
[TypeAlias( "Scripts.Engines.BulkOrders.LargeSmithBOD" )] [TypeAlias( "Scripts.Engines.BulkOrders.LargeSmithBOD" )]
public class LargeSmithBOD : LargeBOD public class LargeSmithBOD : LargeBOD
{ {
public static double[] m_BlacksmithMaterialChances = new[] public static double[] m_BlacksmithMaterialChances = {
{
0.501953125, // None 0.501953125, // None
0.250000000, // Dull Copper 0.250000000, // Dull Copper
0.125000000, // Shadow Iron 0.125000000, // Shadow Iron

View file

@ -5,8 +5,7 @@ namespace Server.Engines.BulkOrders
{ {
public class LargeTailorBOD : LargeBOD public class LargeTailorBOD : LargeBOD
{ {
public static double[] m_TailoringMaterialChances = new[] public static double[] m_TailoringMaterialChances = {
{
0.857421875, // None 0.857421875, // None
0.125000000, // Spined 0.125000000, // Spined
0.015625000, // Horned 0.015625000, // Horned

View file

@ -261,8 +261,7 @@ namespace Server.Engines.BulkOrders
public static readonly SmithRewardCalculator Instance = new SmithRewardCalculator(); public static readonly SmithRewardCalculator Instance = new SmithRewardCalculator();
private RewardType[] m_Types = new[] private RewardType[] m_Types = {
{
// Armors // Armors
new RewardType( 200, typeof( RingmailGloves ), typeof( RingmailChest ), typeof( RingmailArms ), typeof( RingmailLegs ) ), new RewardType( 200, typeof( RingmailGloves ), typeof( RingmailChest ), typeof( RingmailArms ), typeof( RingmailLegs ) ),
new RewardType( 300, typeof( ChainCoif ), typeof( ChainLegs ), typeof( ChainChest ) ), new RewardType( 300, typeof( ChainCoif ), typeof( ChainLegs ), typeof( ChainChest ) ),
@ -299,8 +298,7 @@ namespace Server.Engines.BulkOrders
return points; return points;
} }
private static int[][][] m_GoldTable = new[] private static int[][][] m_GoldTable = {
{
new[] // 1-part (regular) new[] // 1-part (regular)
{ {
new[]{ 150, 250, 250, 400, 400, 750, 750, 1200, 1200 }, new[]{ 150, 250, 250, 400, 400, 750, 750, 1200, 1200 },
@ -471,8 +469,7 @@ namespace Server.Engines.BulkOrders
private static readonly ConstructCallback BearRug = new ConstructCallback( CreateBearRug ); private static readonly ConstructCallback BearRug = new ConstructCallback( CreateBearRug );
private static readonly ConstructCallback ClothingBlessDeed = new ConstructCallback( CreateCBD ); private static readonly ConstructCallback ClothingBlessDeed = new ConstructCallback( CreateCBD );
private static int[][] m_ClothHues = new[] private static int[][] m_ClothHues = {
{
new[]{ 0x483, 0x48C, 0x488, 0x48A }, new[]{ 0x483, 0x48C, 0x488, 0x48A },
new[]{ 0x495, 0x48B, 0x486, 0x485 }, new[]{ 0x495, 0x48B, 0x486, 0x485 },
new[]{ 0x48D, 0x490, 0x48E, 0x491 }, new[]{ 0x48D, 0x490, 0x48E, 0x491 },
@ -492,8 +489,7 @@ namespace Server.Engines.BulkOrders
throw new InvalidOperationException(); throw new InvalidOperationException();
} }
private static int[] m_SandalHues = new[] private static int[] m_SandalHues = {
{
0x489, 0x47F, 0x482, 0x489, 0x47F, 0x482,
0x47E, 0x48F, 0x494, 0x47E, 0x48F, 0x494,
0x484, 0x497 0x484, 0x497
@ -595,8 +591,7 @@ namespace Server.Engines.BulkOrders
return points; return points;
} }
private static int[][][] m_AosGoldTable = new[] private static int[][][] m_AosGoldTable = {
{
new[] // 1-part (regular) new[] // 1-part (regular)
{ {
new[]{ 150, 150, 300, 300 }, new[]{ 150, 150, 300, 300 },
@ -647,8 +642,7 @@ namespace Server.Engines.BulkOrders
} }
}; };
private static int[][][] m_OldGoldTable = new[] private static int[][][] m_OldGoldTable = {
{
new[] // 1-part (regular) new[] // 1-part (regular)
{ {
new[]{ 150, 150, 300, 300 }, new[]{ 150, 150, 300, 300 },

View file

@ -8,8 +8,7 @@ namespace Server.Engines.BulkOrders
[TypeAlias( "Scripts.Engines.BulkOrders.SmallSmithBOD" )] [TypeAlias( "Scripts.Engines.BulkOrders.SmallSmithBOD" )]
public class SmallSmithBOD : SmallBOD public class SmallSmithBOD : SmallBOD
{ {
public static double[] m_BlacksmithMaterialChances = new[] public static double[] m_BlacksmithMaterialChances = {
{
0.501953125, // None 0.501953125, // None
0.250000000, // Dull Copper 0.250000000, // Dull Copper
0.125000000, // Shadow Iron 0.125000000, // Shadow Iron

View file

@ -6,8 +6,7 @@ namespace Server.Engines.BulkOrders
{ {
public class SmallTailorBOD : SmallBOD public class SmallTailorBOD : SmallBOD
{ {
public static double[] m_TailoringMaterialChances = new[] public static double[] m_TailoringMaterialChances = {
{
0.857421875, // None 0.857421875, // None
0.125000000, // Spined 0.125000000, // Spined
0.015625000, // Horned 0.015625000, // Horned

View file

@ -38,8 +38,7 @@ namespace Server.Engines.CannedEvil
public static ChampionSpawnInfo[] Table => m_Table; public static ChampionSpawnInfo[] Table => m_Table;
private static readonly ChampionSpawnInfo[] m_Table = new[] private static readonly ChampionSpawnInfo[] m_Table = {
{
new ChampionSpawnInfo( "Abyss", typeof( Semidar ), new[]{ "Foe", "Assassin", "Conqueror" }, new[] // Abyss new ChampionSpawnInfo( "Abyss", typeof( Semidar ), new[]{ "Foe", "Assassin", "Conqueror" }, new[] // Abyss
{ // Abyss { // Abyss
new[]{ typeof( GreaterMongbat ), typeof( Imp ) }, // Level 1 new[]{ typeof( GreaterMongbat ), typeof( Imp ) }, // Level 1

View file

@ -400,8 +400,7 @@ namespace Server.Engines.ConPVP
} }
#region Offsets & Rotation #region Offsets & Rotation
private static Point2D[] m_EdgeOffsets = new[] private static Point2D[] m_EdgeOffsets = {
{
/* /*
* /\ * /\
* /\/\ * /\/\
@ -423,8 +422,7 @@ namespace Server.Engines.ConPVP
}; };
// nw corner // nw corner
private static Point2D[] m_CornerOffsets = new[] private static Point2D[] m_CornerOffsets = {
{
/* /*
* /\ * /\
* /\/\ * /\/\
@ -444,8 +442,7 @@ namespace Server.Engines.ConPVP
new Point2D( 3, 0 ) new Point2D( 3, 0 )
}; };
private static int[][,] m_Rotate = new[] private static int[][,] m_Rotate = {
{
new[,]{ { +1, 0 }, { 0, +1 } }, // west new[,]{ { +1, 0 }, { 0, +1 } }, // west
new[,]{ { -1, 0 }, { 0, -1 } }, // east new[,]{ { -1, 0 }, { 0, -1 } }, // east
new[,]{ { 0, +1 }, { +1, 0 } }, // north new[,]{ { 0, +1 }, { +1, 0 } }, // north

View file

@ -744,7 +744,7 @@ namespace Server.Engines.ConPVP
StopSDTimers(); StopSDTimers();
Type[] types = new[]{ typeof( BeginGump ), typeof( DuelContextGump ), typeof( ParticipantGump ), typeof( PickRulesetGump ), typeof( ReadyGump ), typeof( ReadyUpGump ), typeof( RulesetGump ) }; Type[] types = { typeof( BeginGump ), typeof( DuelContextGump ), typeof( ParticipantGump ), typeof( PickRulesetGump ), typeof( ReadyGump ), typeof( ReadyUpGump ), typeof( RulesetGump ) };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {
@ -1531,8 +1531,8 @@ namespace Server.Engines.ConPVP
public void CloseAllGumps() public void CloseAllGumps()
{ {
Type[] types = new[]{ typeof( DuelContextGump ), typeof( ParticipantGump ), typeof( RulesetGump ) }; Type[] types = { typeof( DuelContextGump ), typeof( ParticipantGump ), typeof( RulesetGump ) };
int[] defs = new[]{ -1, -1, -1 }; int[] defs = { -1, -1, -1 };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {
@ -1559,8 +1559,8 @@ namespace Server.Engines.ConPVP
if ( m_StartedReadyCountdown ) if ( m_StartedReadyCountdown )
return; // sanity return; // sanity
Type[] types = new[]{ typeof( DuelContextGump ), typeof( ReadyUpGump ), typeof( ReadyGump ) }; Type[] types = { typeof( DuelContextGump ), typeof( ReadyUpGump ), typeof( ReadyGump ) };
int[] defs = new[]{ -1, -1, -1 }; int[] defs = { -1, -1, -1 };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {
@ -1965,7 +1965,7 @@ namespace Server.Engines.ConPVP
BeginAutoTie(); BeginAutoTie();
} }
Type[] types = new[]{ typeof( ReadyGump ), typeof( ReadyUpGump ), typeof( BeginGump ) }; Type[] types = { typeof( ReadyGump ), typeof( ReadyUpGump ), typeof( BeginGump ) };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {
@ -2287,7 +2287,7 @@ namespace Server.Engines.ConPVP
m_ReadyWait = true; m_ReadyWait = true;
m_ReadyCount = -1; m_ReadyCount = -1;
Type[] types = new[]{ typeof( ReadyUpGump ) }; Type[] types = { typeof( ReadyUpGump ) };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {
@ -2523,7 +2523,7 @@ namespace Server.Engines.ConPVP
bool isAllReady = true; bool isAllReady = true;
Type[] types = new[]{ typeof( ReadyGump ) }; Type[] types = { typeof( ReadyGump ) };
for ( int i = 0; i < m_Participants.Count; ++i ) for ( int i = 0; i < m_Participants.Count; ++i )
{ {

View file

@ -72,8 +72,7 @@ namespace Server.Engines.ConPVP
public class Ladder public class Ladder
{ {
private static int[] m_ShortLevels = new[] private static int[] m_ShortLevels = {
{
1, 1,
2, 2,
3, 3, 3, 3,
@ -97,8 +96,7 @@ namespace Server.Engines.ConPVP
return m_ShortLevels[xp / 100]; return m_ShortLevels[xp / 100];
} }
private static int[] m_BaseXP = new[] private static int[] m_BaseXP = {
{
0, 100, 200, 400, 600, 900, 1200, 1600, 2000, 2500 0, 100, 200, 400, 600, 900, 1200, 1600, 2000, 2500
}; };
@ -116,8 +114,7 @@ namespace Server.Engines.ConPVP
} }
} }
private static int[] m_LossFactors = new[] private static int[] m_LossFactors = {
{
10, 10,
11, 11, 11, 11,
25, 25, 25, 25,
@ -133,8 +130,7 @@ namespace Server.Engines.ConPVP
return m_LossFactors[level - 1]; return m_LossFactors[level - 1];
} }
private static int[,] m_OffsetScalar = new[,] private static int[,] m_OffsetScalar = {
{
/* { win, los } */ /* { win, los } */
/* -6 */ { 175, 25 }, /* -6 */ { 175, 25 },
/* -5 */ { 165, 35 }, /* -5 */ { 165, 35 },

View file

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

View file

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

View file

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

View file

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

View file

@ -236,8 +236,7 @@ namespace Server.Ethics
public static readonly Ethic Hero = new Hero.HeroEthic(); public static readonly Ethic Hero = new Hero.HeroEthic();
public static readonly Ethic Evil = new Evil.EvilEthic(); public static readonly Ethic Evil = new Evil.EvilEthic();
public static readonly Ethic[] Ethics = new[] public static readonly Ethic[] Ethics = {
{
Hero, Hero,
Evil Evil
}; };

View file

@ -36,8 +36,7 @@ namespace Server.Factions
public class MerchantTitles public class MerchantTitles
{ {
private static MerchantTitleInfo[] m_Info = new[] private static MerchantTitleInfo[] m_Info = {
{
new MerchantTitleInfo( SkillName.Inscribe, 90.0, new TextDefinition( 1060773, "Scribe" ), new TextDefinition( 1011468, "SCRIBE" ), new TextDefinition( 1010121, "You now have the faction title of scribe" ) ), new MerchantTitleInfo( SkillName.Inscribe, 90.0, new TextDefinition( 1060773, "Scribe" ), new TextDefinition( 1011468, "SCRIBE" ), new TextDefinition( 1010121, "You now have the faction title of scribe" ) ),
new MerchantTitleInfo( SkillName.Carpentry, 90.0, new TextDefinition( 1060774, "Carpenter" ), new TextDefinition( 1011469, "CARPENTER" ), new TextDefinition( 1010122, "You now have the faction title of carpenter" ) ), new MerchantTitleInfo( SkillName.Carpentry, 90.0, new TextDefinition( 1060774, "Carpenter" ), new TextDefinition( 1011469, "CARPENTER" ), new TextDefinition( 1010122, "You now have the faction title of carpenter" ) ),
new MerchantTitleInfo( SkillName.Tinkering, 90.0, new TextDefinition( 1022984, "Tinker" ), new TextDefinition( 1011470, "TINKER" ), new TextDefinition( 1010123, "You now have the faction title of tinker" ) ), new MerchantTitleInfo( SkillName.Tinkering, 90.0, new TextDefinition( 1022984, "Tinker" ), new TextDefinition( 1011470, "TINKER" ), new TextDefinition( 1010123, "You now have the faction title of tinker" ) ),

View file

@ -38,8 +38,7 @@ namespace Server.Factions
m_Label = label; m_Label = label;
} }
private static VendorDefinition[] m_Definitions = new[] private static VendorDefinition[] m_Definitions = {
{
new VendorDefinition( typeof( FactionBottleVendor ), 0xF0E, new VendorDefinition( typeof( FactionBottleVendor ), 0xF0E,
5000, 5000,
1000, 1000,

View file

@ -13,8 +13,7 @@ namespace Server.Factions
private Faction m_Faction; private Faction m_Faction;
private Town m_Town; private Town m_Town;
private static int[] m_PriceOffsets = new[] private static int[] m_PriceOffsets = {
{
-30, -25, -20, -15, -10, -5, -30, -25, -20, -15, -10, -5,
+50, +100, +150, +200, +250, +300 +50, +100, +150, +200, +250, +300
}; };

View file

@ -268,8 +268,7 @@ namespace Server.Factions
Utility.AssignRandomFacialHair( this, HairHue ); Utility.AssignRandomFacialHair( this, HairHue );
} }
private static Type[] m_StrongPotions = new[] private static Type[] m_StrongPotions = {
{
typeof( GreaterHealPotion ), typeof( GreaterHealPotion ), typeof( GreaterHealPotion ), typeof( GreaterHealPotion ), typeof( GreaterHealPotion ), typeof( GreaterHealPotion ),
typeof( GreaterCurePotion ), typeof( GreaterCurePotion ), typeof( GreaterCurePotion ), typeof( GreaterCurePotion ), typeof( GreaterCurePotion ), typeof( GreaterCurePotion ),
typeof( GreaterStrengthPotion ), typeof( GreaterStrengthPotion ), typeof( GreaterStrengthPotion ), typeof( GreaterStrengthPotion ),
@ -278,8 +277,7 @@ namespace Server.Factions
typeof( GreaterExplosionPotion ) typeof( GreaterExplosionPotion )
}; };
private static Type[] m_WeakPotions = new[] private static Type[] m_WeakPotions = {
{
typeof( HealPotion ), typeof( HealPotion ), typeof( HealPotion ), typeof( HealPotion ), typeof( HealPotion ), typeof( HealPotion ),
typeof( CurePotion ), typeof( CurePotion ), typeof( CurePotion ), typeof( CurePotion ), typeof( CurePotion ), typeof( CurePotion ),
typeof( StrengthPotion ), typeof( StrengthPotion ), typeof( StrengthPotion ), typeof( StrengthPotion ),

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

View file

@ -182,8 +182,7 @@ namespace Server.Engines.Harvest
} }
#region Tile lists #region Tile lists
private static int[] m_TreeTiles = new[] private static int[] m_TreeTiles = {
{
0x4CCA, 0x4CCB, 0x4CCC, 0x4CCD, 0x4CD0, 0x4CD3, 0x4CD6, 0x4CD8, 0x4CCA, 0x4CCB, 0x4CCC, 0x4CCD, 0x4CD0, 0x4CD3, 0x4CD6, 0x4CD8,
0x4CDA, 0x4CDD, 0x4CE0, 0x4CE3, 0x4CE6, 0x4CF8, 0x4CFB, 0x4CFE, 0x4CDA, 0x4CDD, 0x4CE0, 0x4CE3, 0x4CE6, 0x4CF8, 0x4CFB, 0x4CFE,
0x4D01, 0x4D41, 0x4D42, 0x4D43, 0x4D44, 0x4D57, 0x4D58, 0x4D59, 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 ); return base.MutateVein( from, tool, def, bank, toHarvest, vein );
} }
private static int[] m_Offsets = new[] private static int[] m_Offsets = {
{
-1, -1, -1, -1,
-1, 0, -1, 0,
-1, 1, -1, 1,
@ -353,8 +352,7 @@ namespace Server.Engines.Harvest
} }
#region Tile lists #region Tile lists
private static int[] m_MountainAndCaveTiles = new[] private static int[] m_MountainAndCaveTiles = {
{
220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 236, 237, 238, 239, 240, 241, 242, 243, 230, 231, 236, 237, 238, 239, 240, 241, 242, 243,
244, 245, 246, 247, 252, 253, 254, 255, 256, 257, 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 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, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,

View file

@ -27,8 +27,7 @@ namespace Server.Engines.Help
public class PageEntry public class PageEntry
{ {
// What page types should have a speech log as attachment? // What page types should have a speech log as attachment?
public static readonly PageType[] SpeechLogAttachment = new[] public static readonly PageType[] SpeechLogAttachment = {
{
PageType.VerbalHarassment PageType.VerbalHarassment
}; };

View file

@ -469,8 +469,7 @@ namespace Server.Engines.Help
private PageEntry m_Entry; private PageEntry m_Entry;
private Mobile m_Mobile; private Mobile m_Mobile;
private static int[] m_AccessLevelHues = new[] private static int[] m_AccessLevelHues = {
{
2100, 2100,
2122, 2122,
2117, 2117,

View file

@ -22,8 +22,7 @@ namespace Server.Menus.Questions
public class StuckMenu : Gump public class StuckMenu : Gump
{ {
private static StuckMenuEntry[] m_Entries = new[] private static StuckMenuEntry[] m_Entries = {
{
// Britain // Britain
new StuckMenuEntry( 1011028, new[] new StuckMenuEntry( 1011028, new[]
{ {
@ -85,8 +84,7 @@ namespace Server.Menus.Questions
} ) } )
}; };
private static StuckMenuEntry[] m_T2AEntries = new[] private static StuckMenuEntry[] m_T2AEntries = {
{
// Papua // Papua
new StuckMenuEntry( 1011057, new[] new StuckMenuEntry( 1011057, new[]
{ {

View file

@ -6,7 +6,7 @@ namespace Server.Engines.MLQuests.Items
{ {
public abstract class BaseCraftmansSatchel : Backpack public abstract class BaseCraftmansSatchel : Backpack
{ {
protected static readonly Type[] m_TalismanType = new[] { typeof( RandomTalisman ) }; protected static readonly Type[] m_TalismanType = { typeof( RandomTalisman ) };
public BaseCraftmansSatchel() public BaseCraftmansSatchel()
{ {

View file

@ -8,8 +8,7 @@ namespace Server.Engines.MyRunUO
private static Layer ChainTunic = (Layer)254; private static Layer ChainTunic = (Layer)254;
private static Layer LeatherShorts = (Layer)253; private static Layer LeatherShorts = (Layer)253;
private static Layer[] m_DesiredLayerOrder = new[] private static Layer[] m_DesiredLayerOrder = {
{
Layer.Cloak, Layer.Cloak,
Layer.Bracelet, Layer.Bracelet,
Layer.Ring, Layer.Ring,

View file

@ -158,8 +158,7 @@ namespace Server.Items
} }
} }
private static TilesAndEffect[] m_Table = new[] private static TilesAndEffect[] m_Table = {
{
new TilesAndEffect( new[] new TilesAndEffect( new[]
{ {
0x71, 0x7C, 0x71, 0x7C,

View file

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

View file

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

View file

@ -61,8 +61,7 @@ namespace Server.Engines.Plants
public class PlantTypeInfo public class PlantTypeInfo
{ {
private static PlantTypeInfo[] m_Table = new[] private static PlantTypeInfo[] m_Table = {
{
new PlantTypeInfo( 0xC83, 0, 0, PlantType.CampionFlowers, false, true, true, true, PlantCategory.Default ), 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 ), new PlantTypeInfo( 0xC86, 0, 0, PlantType.Poppies, false, true, true, true, PlantCategory.Default ),
new PlantTypeInfo( 0xC88, 0, 10, PlantType.Snowdrops, false, true, true, true, PlantCategory.Default ), new PlantTypeInfo( 0xC88, 0, 10, PlantType.Snowdrops, false, true, true, true, PlantCategory.Default ),

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Ambitious
{ {
public class AmbitiousQueenQuest : QuestSystem public class AmbitiousQueenQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( DontOfferConversation ), typeof( DontOfferConversation ),
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( DuringKillQueensConversation ), typeof( DuringKillQueensConversation ),

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Collector
{ {
public class CollectorQuest : QuestSystem public class CollectorQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( DontOfferConversation ), typeof( DontOfferConversation ),
typeof( DeclineConversation ), typeof( DeclineConversation ),
typeof( AcceptConversation ), typeof( AcceptConversation ),

View file

@ -31,8 +31,7 @@ namespace Server.Engines.Quests.Collector
public class ImageTypeInfo public class ImageTypeInfo
{ {
private static readonly ImageTypeInfo[] m_Table = new[] private static readonly ImageTypeInfo[] m_Table = {
{
new ImageTypeInfo( 9734, typeof( Betrayer ), 75, 45 ), new ImageTypeInfo( 9734, typeof( Betrayer ), 75, 45 ),
new ImageTypeInfo( 9735, typeof( Bogling ), 75, 45 ), new ImageTypeInfo( 9735, typeof( Bogling ), 75, 45 ),
new ImageTypeInfo( 9736, typeof( BogThing ), 60, 47 ), new ImageTypeInfo( 9736, typeof( BogThing ), 60, 47 ),

View file

@ -7,8 +7,7 @@ namespace Server.Engines.Quests.Collector
{ {
public class Obsidian : Item public class Obsidian : Item
{ {
private static readonly string[] m_Names = new[] private static readonly string[] m_Names = {
{
null, null,
"an aggressive cavalier", "an aggressive cavalier",
"a beguiling rogue", "a beguiling rogue",

View file

@ -5,8 +5,7 @@ namespace Server.Items
public class EnchantedSextant : Item public class EnchantedSextant : Item
{ {
//TODO: Trammel/Haven //TODO: Trammel/Haven
private static readonly Point2D[] m_TrammelBanks = new[] private static readonly Point2D[] m_TrammelBanks = {
{
new Point2D( 652, 820 ), new Point2D( 652, 820 ),
new Point2D( 1813, 2825 ), new Point2D( 1813, 2825 ),
new Point2D( 3734, 2149 ), new Point2D( 3734, 2149 ),
@ -27,8 +26,7 @@ namespace Server.Items
new Point2D( 5669, 3131 ) new Point2D( 5669, 3131 )
}; };
private static readonly Point2D[] m_FeluccaBanks = new[] private static readonly Point2D[] m_FeluccaBanks = {
{
new Point2D( 652, 820 ), new Point2D( 652, 820 ),
new Point2D( 1813, 2825 ), new Point2D( 1813, 2825 ),
new Point2D( 3734, 2149 ), new Point2D( 3734, 2149 ),
@ -49,16 +47,14 @@ namespace Server.Items
new Point2D( 5669, 3131 ) new Point2D( 5669, 3131 )
}; };
private static readonly Point2D[] m_IlshenarBanks = new[] private static readonly Point2D[] m_IlshenarBanks = {
{
new Point2D( 854, 680 ), new Point2D( 854, 680 ),
new Point2D( 855, 603 ), new Point2D( 855, 603 ),
new Point2D( 1226, 554 ), new Point2D( 1226, 554 ),
new Point2D( 1610, 556 ) new Point2D( 1610, 556 )
}; };
private static readonly Point2D[] m_MalasBanks = new[] private static readonly Point2D[] m_MalasBanks = {
{
new Point2D( 996, 519 ), new Point2D( 996, 519 ),
new Point2D( 2048, 1345 ) new Point2D( 2048, 1345 )
}; };

View file

@ -13,8 +13,7 @@ namespace Server.Engines.Quests
public abstract class QuestSystem public abstract class QuestSystem
{ {
public static readonly Type[] QuestTypes = new[] public static readonly Type[] QuestTypes = {
{
typeof( Doom.TheSummoningQuest ), typeof( Doom.TheSummoningQuest ),
typeof( Necro.DarkTidesQuest ), typeof( Necro.DarkTidesQuest ),
typeof( Haven.UzeraanTurmoilQuest ), typeof( Haven.UzeraanTurmoilQuest ),

View file

@ -26,8 +26,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060099; public override object Message => 1060099;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1026153, 6178 ), // teleporter new QuestItemInfo( 1026153, 6178 ), // teleporter
new QuestItemInfo( 1049117, 4036 ), // Horn of Retreat new QuestItemInfo( 1049117, 4036 ), // Horn of Retreat
new QuestItemInfo( 1048032, 3702 ) // a bag new QuestItemInfo( 1048032, 3702 ) // a bag
@ -49,8 +48,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060103; public override object Message => 1060103;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1026153, 6178 ) // teleporter new QuestItemInfo( 1026153, 6178 ) // teleporter
}; };
@ -98,8 +96,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060110; public override object Message => 1060110;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023643, 8787 ) // spellbook new QuestItemInfo( 1023643, 8787 ) // spellbook
}; };

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Necro
{ {
public class DarkTidesQuest : QuestSystem public class DarkTidesQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( AnimateMaabusCorpseObjective ), typeof( AnimateMaabusCorpseObjective ),
typeof( BankerConversation ), typeof( BankerConversation ),

View file

@ -7,8 +7,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060102; public override object Message => 1060102;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023643, 8787 ) // spellbook new QuestItemInfo( 1023643, 8787 ) // spellbook
}; };
@ -116,8 +115,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060109; public override object Message => 1060109;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023676, 3679 ) // glowing rune new QuestItemInfo( 1023676, 3679 ) // glowing rune
}; };
@ -197,8 +195,7 @@ namespace Server.Engines.Quests.Necro
{ {
public override object Message => 1060115; public override object Message => 1060115;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1026153, 6178 ) // teleporter new QuestItemInfo( 1026153, 6178 ) // teleporter
}; };

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Ninja
{ {
public class EminosUndertakingQuest : QuestSystem public class EminosUndertakingQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( FindZoelConversation ), typeof( FindZoelConversation ),
typeof( RadarConversation ), typeof( RadarConversation ),

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Ninja
{ {
public class HiddenFigure : BaseQuester public class HiddenFigure : BaseQuester
{ {
public static int[] Messages = new[] public static int[] Messages = {
{
1063191, // They won<6F>t find me here. 1063191, // They won<6F>t find me here.
1063192 // Ah, a quiet hideout. 1063192 // Ah, a quiet hideout.
}; };

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Samurai
{ {
public class HaochisTrialsQuest : QuestSystem public class HaochisTrialsQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( RadarConversation ), typeof( RadarConversation ),
typeof( FirstTrialIntroConversation ), typeof( FirstTrialIntroConversation ),

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Matriarch
{ {
public class SolenMatriarchQuest : QuestSystem public class SolenMatriarchQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( DontOfferConversation ), typeof( DontOfferConversation ),
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( DuringKillInfiltratorsConversation ), typeof( DuringKillInfiltratorsConversation ),

View file

@ -2,8 +2,7 @@ namespace Server.Engines.Quests.Naturalist
{ {
public class NestArea public class NestArea
{ {
private static readonly NestArea[] m_Areas = new[] private static readonly NestArea[] m_Areas = {
{
new NestArea( false, new Rectangle2D( 5861, 1787, 26, 25 ) ), new NestArea( false, new Rectangle2D( 5861, 1787, 26, 25 ) ),
new NestArea( false, new Rectangle2D( 5734, 1788, 14, 50 ), new NestArea( false, new Rectangle2D( 5734, 1788, 14, 50 ),

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Naturalist
{ {
public class StudyOfSolenQuest : QuestSystem public class StudyOfSolenQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( StudyNestsObjective ), typeof( StudyNestsObjective ),
typeof( ReturnToNaturalistObjective ), typeof( ReturnToNaturalistObjective ),
typeof( DontOfferConversation ), typeof( DontOfferConversation ),

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Zento
{ {
public class TerribleHatchlingsQuest : QuestSystem public class TerribleHatchlingsQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( DirectionConversation ), typeof( DirectionConversation ),
typeof( TakeCareConversation ), typeof( TakeCareConversation ),

View file

@ -95,8 +95,7 @@ namespace Server.Engines.Quests.Doom
Delete(); Delete();
} }
private static int[] m_Offsets = new[] private static int[] m_Offsets = {
{
-1, -1, -1, -1,
-1, 0, -1, 0,
-1, 1, -1, 1,

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Doom
{ {
public class TheSummoningQuest : QuestSystem public class TheSummoningQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( CollectBonesObjective ), typeof( CollectBonesObjective ),
typeof( VanquishDaemonConversation ), typeof( VanquishDaemonConversation ),

View file

@ -125,8 +125,7 @@ namespace Server.Engines.Quests.Haven
} }
} }
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023676, 0xE68 ) // glowing rune new QuestItemInfo( 1023676, 0xE68 ) // glowing rune
}; };
@ -214,8 +213,7 @@ namespace Server.Engines.Quests.Haven
} }
} }
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1026153, 0x1822 ), // teleporter new QuestItemInfo( 1026153, 0x1822 ), // teleporter
new QuestItemInfo( 1048032, 0xE76 ) // a bag new QuestItemInfo( 1048032, 0xE76 ) // a bag
}; };
@ -291,8 +289,7 @@ namespace Server.Engines.Quests.Haven
} }
} }
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023637, 0xE34 ) // scroll new QuestItemInfo( 1023637, 0xE34 ) // scroll
}; };
@ -312,8 +309,7 @@ namespace Server.Engines.Quests.Haven
{ {
public override object Message => 1049325; public override object Message => 1049325;
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1048030, 0x14EB ), // a Treasure Map new QuestItemInfo( 1048030, 0x14EB ), // a Treasure Map
new QuestItemInfo( 1023969, 0xF81 ), // Fertile Dirt new QuestItemInfo( 1023969, 0xF81 ), // Fertile Dirt
new QuestItemInfo( 1049117, 0xFC4 ) // Horn of Retreat new QuestItemInfo( 1049117, 0xFC4 ) // Horn of Retreat
@ -401,8 +397,7 @@ namespace Server.Engines.Quests.Haven
} }
} }
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1023965, 0xF7D ), // Daemon Blood new QuestItemInfo( 1023965, 0xF7D ), // Daemon Blood
new QuestItemInfo( 1022581, 0xA22 ), // lantern new QuestItemInfo( 1022581, 0xA22 ), // lantern
}; };
@ -469,13 +464,11 @@ namespace Server.Engines.Quests.Haven
} }
} }
private static QuestItemInfo[] m_Info = new[] private static QuestItemInfo[] m_Info = {
{
new QuestItemInfo( 1017412, 0xF80 ), // Daemon Bone new QuestItemInfo( 1017412, 0xF80 ), // Daemon Bone
}; };
private static QuestItemInfo[] m_InfoPaladin = new[] private static QuestItemInfo[] m_InfoPaladin = {
{
new QuestItemInfo( 1017412, 0xF80 ), // Daemon Bone new QuestItemInfo( 1017412, 0xF80 ), // Daemon Bone
new QuestItemInfo( 1060577, 0x1F14 ), // Recall Rune new QuestItemInfo( 1060577, 0x1F14 ), // Recall Rune
}; };

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Haven
{ {
public class UzeraanTurmoilQuest : QuestSystem public class UzeraanTurmoilQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( AcceptConversation ), typeof( AcceptConversation ),
typeof( UzeraanTitheConversation ), typeof( UzeraanTitheConversation ),
typeof( UzeraanFirstTaskConversation ), typeof( UzeraanFirstTaskConversation ),

View file

@ -24,8 +24,7 @@ namespace Server.Engines.Quests.Hag
public class IngredientInfo public class IngredientInfo
{ {
private static IngredientInfo[] m_Table = new[] private static IngredientInfo[] m_Table = {
{
// sheep liver // sheep liver
new IngredientInfo( 1055020, 5, typeof( Sheep ) ), new IngredientInfo( 1055020, 5, typeof( Sheep ) ),
// rabbit's foot // rabbit's foot

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Hag
{ {
public class FindApprenticeObjective : QuestObjective public class FindApprenticeObjective : QuestObjective
{ {
private static Point3D[] m_CorpseLocations = new[] private static Point3D[] m_CorpseLocations = {
{
new Point3D( 778, 1158, 0 ), new Point3D( 778, 1158, 0 ),
new Point3D( 698, 1443, 0 ), new Point3D( 698, 1443, 0 ),
new Point3D( 785, 1548, 0 ), new Point3D( 785, 1548, 0 ),

View file

@ -5,8 +5,7 @@ namespace Server.Engines.Quests.Hag
{ {
public class WitchApprenticeQuest : QuestSystem public class WitchApprenticeQuest : QuestSystem
{ {
private static Type[] m_TypeReferenceTable = new[] private static Type[] m_TypeReferenceTable = {
{
typeof( FindApprenticeObjective ), typeof( FindApprenticeObjective ),
typeof( FindGrizeldaAboutMurderObjective ), typeof( FindGrizeldaAboutMurderObjective ),
typeof( KillImpsObjective ), typeof( KillImpsObjective ),
@ -58,8 +57,7 @@ namespace Server.Engines.Quests.Hag
AddConversation( new AcceptConversation() ); AddConversation( new AcceptConversation() );
} }
private static Point3D[] m_ZeefzorpulLocations = new[] private static Point3D[] m_ZeefzorpulLocations = {
{
new Point3D( 1226, 1573, 0 ), new Point3D( 1226, 1573, 0 ),
new Point3D( 1929, 1148, 0 ), new Point3D( 1929, 1148, 0 ),
new Point3D( 1366, 2723, 0 ), new Point3D( 1366, 2723, 0 ),

View file

@ -347,8 +347,7 @@ namespace Server.Engines.Reports
float oh = item.SweepSize; float oh = item.SweepSize;
float of = 9.5f; float of = 9.5f;
PointF[] pts = new[] PointF[] pts = {
{
new PointF( ox, oy ), new PointF( ox, oy ),
new PointF( ox + ow, oy ), new PointF( ox + ow, oy ),
new PointF( ox + of, oy + of ), new PointF( ox + of, oy + of ),

View file

@ -6,8 +6,7 @@ namespace Server.Items
{ {
public abstract class BasePigmentsOfTokuno : Item, IUsesRemaining public abstract class BasePigmentsOfTokuno : Item, IUsesRemaining
{ {
private static Type[] m_Glasses = new[] private static Type[] m_Glasses = {
{
typeof( MaritimeGlasses ), typeof( MaritimeGlasses ),
typeof( WizardsGlasses ), typeof( WizardsGlasses ),
typeof( TradeGlasses ), typeof( TradeGlasses ),
@ -22,8 +21,7 @@ namespace Server.Items
typeof( AnthropomorphistGlasses ) typeof( AnthropomorphistGlasses )
}; };
private static Type[] m_Replicas = new[] private static Type[] m_Replicas = {
{
typeof( ANecromancerShroud ), typeof( ANecromancerShroud ),
typeof( BraveKnightOfTheBritannia ), typeof( BraveKnightOfTheBritannia ),
typeof( CaptainJohnsHat ), typeof( CaptainJohnsHat ),
@ -49,8 +47,7 @@ namespace Server.Items
typeof( Subdue ) typeof( Subdue )
}; };
private static Type[] m_DyableHeritageItems = new[] private static Type[] m_DyableHeritageItems = {
{
typeof( ChargerOfTheFallen ), typeof( ChargerOfTheFallen ),
typeof( SamuraiHelm ), typeof( SamuraiHelm ),
typeof( HolySword ), typeof( HolySword ),

View file

@ -393,8 +393,7 @@ namespace Server.Items
public class PigmentsOfTokuno : BasePigmentsOfTokuno public class PigmentsOfTokuno : BasePigmentsOfTokuno
{ {
private static int[][] m_Table = new[] private static int[][] m_Table = {
{
// Hue, Label // Hue, Label
new[]{ /*PigmentType.None,*/ 0, -1 }, new[]{ /*PigmentType.None,*/ 0, -1 },
new[]{ /*PigmentType.ParagonGold,*/ 0x501, 1070987 }, new[]{ /*PigmentType.ParagonGold,*/ 0x501, 1070987 },

View file

@ -625,8 +625,7 @@ namespace Server.Items
public class AncientUrn : Item public class AncientUrn : Item
{ {
private static string[] m_Names = new[] private static string[] m_Names = {
{
"Akira", "Akira",
"Avaniaga", "Avaniaga",
"Aya", "Aya",
@ -917,8 +916,7 @@ namespace Server.Items
public class LesserPigmentsOfTokuno : BasePigmentsOfTokuno public class LesserPigmentsOfTokuno : BasePigmentsOfTokuno
{ {
private static int[][] m_Table = new[] private static int[][] m_Table = {
{
// Hue, Label // Hue, Label
new[]{ /*PigmentType.None,*/ 0, -1 }, new[]{ /*PigmentType.None,*/ 0, -1 },
new[]{ /*PigmentType.PaleOrange,*/ 0x02E, 1071458 }, new[]{ /*PigmentType.PaleOrange,*/ 0x02E, 1071458 },

View file

@ -21,8 +21,7 @@ namespace Server.Misc
{ {
public const int ItemsPerReward = 10; public const int ItemsPerReward = 10;
private static Type[] m_LesserArtifactsTotal = new[] private static Type[] m_LesserArtifactsTotal = {
{
typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ), typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ),
typeof( DaimyosHelm ), typeof( DemonForks ), typeof( DragonNunchaku ), typeof( Exiler ), typeof( GlovesOfTheSun ), typeof( DaimyosHelm ), typeof( DemonForks ), typeof( DragonNunchaku ), typeof( Exiler ), typeof( GlovesOfTheSun ),
typeof( HanzosBow ), typeof( LegsOfStability ), typeof( PeasantsBokuto ), typeof( PilferedDancerFans ), typeof( TheDestroyer ), typeof( HanzosBow ), typeof( LegsOfStability ), typeof( PeasantsBokuto ), typeof( PilferedDancerFans ), typeof( TheDestroyer ),
@ -47,8 +46,7 @@ namespace Server.Misc
set => _RewardEra = value; set => _RewardEra = value;
} }
private static Type[][] m_LesserArtifacts = new[] private static Type[][] m_LesserArtifacts = {
{
// ToT One Rewards // ToT One Rewards
new[] { new[] {
typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ), typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ),
@ -432,8 +430,7 @@ namespace Server.Gumps
} }
#region ToT Normal Rewards Table #region ToT Normal Rewards Table
private static TypeTileButtonInfo[][] m_NormalRewards = new[] private static TypeTileButtonInfo[][] m_NormalRewards = {
{
// ToT One Rewards // ToT One Rewards
new[] { new[] {
new TypeTileButtonInfo( typeof( SwordsOfProsperity ), 0x27A9, 1070963, 1071002 ), new TypeTileButtonInfo( typeof( SwordsOfProsperity ), 0x27A9, 1070963, 1071002 ),
@ -478,8 +475,7 @@ namespace Server.Gumps
public static TypeTileButtonInfo[][] NormalRewards => m_NormalRewards; public static TypeTileButtonInfo[][] NormalRewards => m_NormalRewards;
#region ToT Pigment Rewards Table #region ToT Pigment Rewards Table
private static PigmentsTileButtonInfo[][] m_PigmentRewards = new[] private static PigmentsTileButtonInfo[][] m_PigmentRewards = {
{
// ToT One Pigment Rewards // ToT One Pigment Rewards
new[] { new[] {
new PigmentsTileButtonInfo( PigmentType.ParagonGold ), new PigmentsTileButtonInfo( PigmentType.ParagonGold ),

View file

@ -101,8 +101,7 @@ namespace Server.Gumps
e.Mobile.SendGump( new AddDoorGump() ); e.Mobile.SendGump( new AddDoorGump() );
} }
public static DoorInfo[] m_Types = new[] public static DoorInfo[] m_Types = {
{
new DoorInfo( typeof( MetalDoor ), 0x675 ), new DoorInfo( typeof( MetalDoor ), 0x675 ),
new DoorInfo( typeof( RattanDoor ), 0x695 ), new DoorInfo( typeof( RattanDoor ), 0x695 ),
new DoorInfo( typeof( DarkWoodDoor ), 0x6A5 ), new DoorInfo( typeof( DarkWoodDoor ), 0x6A5 ),

View file

@ -160,8 +160,7 @@ namespace Server.Gumps
} }
} }
private static string[] m_AccessLevelStrings = new[] private static string[] m_AccessLevelStrings = {
{
"Player", "Player",
"Counselor", "Counselor",
"Game Master", "Game Master",

View file

@ -106,7 +106,6 @@ namespace Server.Guilds
#endregion #endregion
private static InfoField<PlayerMobile>[] m_Fields = private static InfoField<PlayerMobile>[] m_Fields =
new[]
{ {
new InfoField<PlayerMobile>( 1062955, 130, NameComparer.Instance ), //Name new InfoField<PlayerMobile>( 1062955, 130, NameComparer.Instance ), //Name
new InfoField<PlayerMobile>( 1062956, 80, RankComparer.Instance ), //Rank new InfoField<PlayerMobile>( 1062956, 80, RankComparer.Instance ), //Rank

View file

@ -163,8 +163,7 @@ namespace Server.Gumps
return 1 + (index * 15) + type; return 1 + (index * 15) + type;
} }
private static int[] m_HangerNumbers = new[] private static int[] m_HangerNumbers = {
{
2968, 2970, 2972, 2968, 2970, 2972,
2974, 2976, 2978 2974, 2976, 2978
}; };
@ -178,8 +177,7 @@ namespace Server.Gumps
20, 189, 765, 65, 101 20, 189, 765, 65, 101
}); });
private static int[] m_PostNumbers = new[] private static int[] m_PostNumbers = {
{
9, 29, 54, 90, 147, 169, 9, 29, 54, 90, 147, 169,
177, 204, 251, 257, 263, 177, 204, 251, 257, 263,
298, 347, 424, 441, 466, 298, 347, 424, 441, 466,

View file

@ -381,7 +381,7 @@ namespace Server.Gumps
public int LocNumber => m_LocNum; public int LocNumber => m_LocNum;
} }
private static CustomCategory[] Categories = new[]{ private static CustomCategory[] Categories = {
new CustomCategory( Layer.InnerTorso, 1011357, true, new[]{// Upper Torso new CustomCategory( Layer.InnerTorso, 1011357, true, new[]{// Upper Torso
new CustomItem( typeof( Shirt ), 1011359, 5399 ), new CustomItem( typeof( Shirt ), 1011359, 5399 ),
new CustomItem( typeof( FancyShirt ), 1011360, 7933 ), new CustomItem( typeof( FancyShirt ), 1011360, 7933 ),
@ -799,8 +799,7 @@ namespace Server.Gumps
} }
} }
private static HairOrBeard[] m_HairStyles = new[] private static HairOrBeard[] m_HairStyles = {
{
new HairOrBeard( 0x203B, 1011052 ), // Short new HairOrBeard( 0x203B, 1011052 ), // Short
new HairOrBeard( 0x203C, 1011053 ), // Long new HairOrBeard( 0x203C, 1011053 ), // Long
new HairOrBeard( 0x203D, 1011054 ), // Ponytail new HairOrBeard( 0x203D, 1011054 ), // Ponytail
@ -812,8 +811,7 @@ namespace Server.Gumps
new HairOrBeard( 0x2049, 1011049 ) // 2-tails new HairOrBeard( 0x2049, 1011049 ) // 2-tails
}; };
private static HairOrBeard[] m_BeardStyles = new[] private static HairOrBeard[] m_BeardStyles = {
{
new HairOrBeard( 0x2041, 1011062 ), // Mustache new HairOrBeard( 0x2041, 1011062 ), // Mustache
new HairOrBeard( 0x203F, 1011060 ), // Short beard new HairOrBeard( 0x203F, 1011060 ), // Short beard
new HairOrBeard( 0x204B, 1015321 ), // Short Beard & Moustache new HairOrBeard( 0x204B, 1015321 ), // Short Beard & Moustache

View file

@ -62,8 +62,7 @@ namespace Server.Gumps
public int LocNumber => m_Num; public int LocNumber => m_Num;
} }
private static PolymorphCategory[] Categories = new[] private static PolymorphCategory[] Categories = {
{
new PolymorphCategory( 1015235, // Animals new PolymorphCategory( 1015235, // Animals
PolymorphEntry.Chicken, PolymorphEntry.Chicken,
PolymorphEntry.Dog, PolymorphEntry.Dog,
@ -155,8 +154,7 @@ namespace Server.Gumps
public class NewPolymorphGump : Gump public class NewPolymorphGump : Gump
{ {
private static readonly PolymorphEntry[] m_Entries = new[] private static readonly PolymorphEntry[] m_Entries = {
{
PolymorphEntry.Chicken, PolymorphEntry.Chicken,
PolymorphEntry.Dog, PolymorphEntry.Dog,
PolymorphEntry.Wolf, PolymorphEntry.Wolf,

View file

@ -231,11 +231,11 @@ namespace Server.Gumps
} }
} }
public static string[] m_BoolNames = new[]{ "True", "False" }; public static string[] m_BoolNames = { "True", "False" };
public static object[] m_BoolValues = new object[]{ true, false }; public static object[] m_BoolValues = { true, false };
public static string[] m_PoisonNames = new[]{ "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" }; public static string[] m_PoisonNames = { "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" };
public static object[] m_PoisonValues = new object[]{ null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal }; public static object[] m_PoisonValues = { null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal };
public override void OnResponse( NetState state, RelayInfo info ) public override void OnResponse( NetState state, RelayInfo info )
{ {
@ -415,14 +415,12 @@ namespace Server.Gumps
private static Type typeofPropertyObject = typeof( PropertyObjectAttribute ); private static Type typeofPropertyObject = typeof( PropertyObjectAttribute );
private static Type typeofNoSort = typeof( NoSortAttribute ); private static Type typeofNoSort = typeof( NoSortAttribute );
private static Type[] typeofReal = new[] private static Type[] typeofReal = {
{
typeof( Single ), typeof( Single ),
typeof( Double ) typeof( Double )
}; };
private static Type[] typeofNumeric = new[] private static Type[] typeofNumeric = {
{
typeof( Byte ), typeof( Byte ),
typeof( Int16 ), typeof( Int16 ),
typeof( Int32 ), typeof( Int32 ),

View file

@ -238,8 +238,7 @@ namespace Server.Gumps
public string Name => m_Name; public string Name => m_Name;
public string DisplayName => m_DisplayName; public string DisplayName => m_DisplayName;
private static string[] m_GroupNames = new[] private static string[] m_GroupNames = {
{
"ogres_", "ettins_", "walking_dead_", "gargoyles_", "ogres_", "ettins_", "walking_dead_", "gargoyles_",
"orcs_", "flails_", "daemons_", "arachnids_", "orcs_", "flails_", "daemons_", "arachnids_",
"dragons_", "elementals_", "serpents_", "gazers_", "dragons_", "elementals_", "serpents_", "gazers_",

View file

@ -457,8 +457,7 @@ namespace Server.Gumps
} }
} }
private static SkillsGumpGroup[] m_Groups = new[] private static SkillsGumpGroup[] m_Groups = {
{
new SkillsGumpGroup( "Crafting", new[] new SkillsGumpGroup( "Crafting", new[]
{ {
SkillName.Alchemy, SkillName.Alchemy,

View file

@ -24,8 +24,7 @@ namespace Server.Engines.Events
private static List<PlayerMobile> m_DeathQueue; private static List<PlayerMobile> m_DeathQueue;
private static Rectangle2D[] m_Cemetaries = new[] private static Rectangle2D[] m_Cemetaries = {
{
new Rectangle2D(1272,3712,30,20), // Jhelom new Rectangle2D(1272,3712,30,20), // Jhelom
new Rectangle2D(1337,1444,48,52), // Britain new Rectangle2D(1337,1444,48,52), // Britain
new Rectangle2D(2424,1098,20,28), // Trinsic new Rectangle2D(2424,1098,20,28), // Trinsic

View file

@ -244,8 +244,7 @@ namespace Server.Items
} }
} }
private static LightEntry[] m_Entries = new[] private static LightEntry[] m_Entries = {
{
new LightEntry( LightType.WestSmall, 1122, 1123, 1124, 1141, 1142, 1143, 1144, 1145, 1146, 2347, 2359, 2360, 2361, 2362, 2363, 2364, 2387, 2388, 2389, 2390, 2391, 2392 ), new LightEntry( LightType.WestSmall, 1122, 1123, 1124, 1141, 1142, 1143, 1144, 1145, 1146, 2347, 2359, 2360, 2361, 2362, 2363, 2364, 2387, 2388, 2389, 2390, 2391, 2392 ),
new LightEntry( LightType.NorthSmall, 1131, 1133, 1134, 1147, 1148, 1149, 1150, 1151, 1152, 2352, 2373, 2374, 2375, 2376, 2377, 2378, 2401, 2402, 2403, 2404, 2405, 2406 ), new LightEntry( LightType.NorthSmall, 1131, 1133, 1134, 1147, 1148, 1149, 1150, 1151, 1152, 2352, 2373, 2374, 2375, 2376, 2377, 2378, 2401, 2402, 2403, 2404, 2405, 2406 ),
new LightEntry( LightType.Circle300, 6526, 6538, 6571 ), new LightEntry( LightType.Circle300, 6526, 6538, 6571 ),

View file

@ -80,8 +80,7 @@ namespace Server.Items
UpdateStage(); UpdateStage();
} }
private static int[][] m_StageTable = new[] private static int[][] m_StageTable = {
{
new[]{ 0x1920, 0x1921, 0x1925 }, new[]{ 0x1920, 0x1921, 0x1925 },
new[]{ 0x1922, 0x1923, 0x1926 }, new[]{ 0x1922, 0x1923, 0x1926 },
new[]{ 0x1924, 0x1924, 0x1928 } new[]{ 0x1924, 0x1924, 0x1928 }

View file

@ -66,8 +66,7 @@ namespace Server.Items
UpdateStage(); UpdateStage();
} }
private static int[][] m_StageTable = new[] private static int[][] m_StageTable = {
{
new[]{ 0x192C, 0x192D, 0x1931 }, new[]{ 0x192C, 0x192D, 0x1931 },
new[]{ 0x192E, 0x192F, 0x1932 }, new[]{ 0x192E, 0x192F, 0x1932 },
new[]{ 0x1930, 0x1930, 0x1934 } new[]{ 0x1930, 0x1930, 0x1934 }

View file

@ -895,8 +895,7 @@ namespace Server.Items
return null; return null;
} }
private static Type[] m_Decorations = new[] private static Type[] m_Decorations = {
{
typeof( FishBones ), typeof( FishBones ),
typeof( WaterloggedBoots ), typeof( WaterloggedBoots ),
typeof( CaptainBlackheartsFishingPole ), typeof( CaptainBlackheartsFishingPole ),
@ -924,8 +923,7 @@ namespace Server.Items
return false; return false;
} }
private static int[] m_FishHues = new[] private static int[] m_FishHues = {
{
0x1C2, 0x1C3, 0x2A3, 0x47E, 0x51D 0x1C2, 0x1C3, 0x2A3, 0x47E, 0x51D
}; };

View file

@ -16,8 +16,7 @@ namespace Server.Items
* *
*/ */
private static int[] m_itemids = new[] private static int[] m_itemids = {
{
0x3486, 0x348b, 0x3ae 0x3486, 0x348b, 0x3ae
}; };

View file

@ -2,8 +2,7 @@ namespace Server.Items
{ {
public class Web : Item public class Web : Item
{ {
private static int[] m_itemids = new[] private static int[] m_itemids = {
{
0x10d7, 0x10d8, 0x10dd 0x10d7, 0x10d8, 0x10dd
}; };

View file

@ -17,8 +17,7 @@ namespace Server.Items
private Timer m_Timer; private Timer m_Timer;
private static Point3D[] m_Offsets = new[] private static Point3D[] m_Offsets = {
{
new Point3D(-1, 1, 0 ), new Point3D(-1, 1, 0 ),
new Point3D( 1, 1, 0 ), new Point3D( 1, 1, 0 ),
new Point3D(-1, 0, 0 ), new Point3D(-1, 0, 0 ),

View file

@ -1470,8 +1470,7 @@ namespace Server.Items
private static Hashtable m_AcquireTable; private static Hashtable m_AcquireTable;
private static FillableContent[] m_ContentTypes = new[] private static FillableContent[] m_ContentTypes = {
{
Weaponsmith, Provisioner, Mage, Weaponsmith, Provisioner, Mage,
Alchemist, Armorer, ArtisanGuild, Alchemist, Armorer, ArtisanGuild,
Baker, Bard, Blacksmith, Baker, Bard, Blacksmith,

View file

@ -3,13 +3,11 @@ namespace Server.Items
[Flippable] [Flippable]
public class ParagonChest : LockableContainer public class ParagonChest : LockableContainer
{ {
private static int[] m_ItemIDs = new[] private static int[] m_ItemIDs = {
{
0x9AB, 0xE40, 0xE41, 0xE7C 0x9AB, 0xE40, 0xE41, 0xE7C
}; };
private static int[] m_Hues = new[] private static int[] m_Hues = {
{
0x0, 0x455, 0x47E, 0x89F, 0x8A5, 0x8AB, 0x0, 0x455, 0x47E, 0x89F, 0x8A5, 0x8AB,
0x966, 0x96D, 0x972, 0x973, 0x979 0x966, 0x96D, 0x972, 0x973, 0x979
}; };

View file

@ -13,8 +13,7 @@ namespace Server.Items
public static Type[] Artifacts => m_Artifacts; public static Type[] Artifacts => m_Artifacts;
private static Type[] m_Artifacts = new[] private static Type[] m_Artifacts = {
{
typeof( CandelabraOfSouls ), typeof( GoldBricks ), typeof( PhillipsWoodenSteed ), typeof( CandelabraOfSouls ), typeof( GoldBricks ), typeof( PhillipsWoodenSteed ),
typeof( ArcticDeathDealer ), typeof( BlazeOfDeath ), typeof( BurglarsBandana ), typeof( ArcticDeathDealer ), typeof( BlazeOfDeath ), typeof( BurglarsBandana ),
typeof( CavortingClub ), typeof( DreadPirateHat ), typeof( CavortingClub ), typeof( DreadPirateHat ),

View file

@ -50,8 +50,7 @@ namespace Server.Items
} }
} }
private static StealableEntry[] m_Entries = new[] private static StealableEntry[] m_Entries = {
{
// Doom - Artifact rarity 1 // Doom - Artifact rarity 1
new StealableEntry( Map.Malas, new Point3D( 317, 56, -1 ), 72, 108, typeof( RockArtifact ) ), new StealableEntry( Map.Malas, new Point3D( 317, 56, -1 ), 72, 108, typeof( RockArtifact ) ),
new StealableEntry( Map.Malas, new Point3D( 360, 31, 8 ), 72, 108, typeof( SkullCandleArtifact ) ), new StealableEntry( Map.Malas, new Point3D( 360, 31, 8 ), 72, 108, typeof( SkullCandleArtifact ) ),

View file

@ -814,8 +814,7 @@ namespace Server.Items
} }
} }
private static int[] m_SwampTiles = new[] private static int[] m_SwampTiles = {
{
0x9C4, 0x9EB, 0x9C4, 0x9EB,
0x3D65, 0x3D65, 0x3D65, 0x3D65,
0x3DC0, 0x3DD9, 0x3DC0, 0x3DD9,

View file

@ -79,8 +79,7 @@ namespace Server.Items
m_Bounds = new Rectangle2D( xLeft, yTop, xRight - xLeft, yBottom - yTop ); m_Bounds = new Rectangle2D( xLeft, yTop, xRight - xLeft, yBottom - yTop );
} }
private static PresetMapEntry[] m_Table = new[] private static PresetMapEntry[] m_Table = {
{
new PresetMapEntry( 1041189, 200, 200, 1092, 1396, 1736, 1924 ), // map of Britain new PresetMapEntry( 1041189, 200, 200, 1092, 1396, 1736, 1924 ), // map of Britain
new PresetMapEntry( 1041203, 200, 200, 0256, 1792, 1736, 2560 ), // map of Britain to Skara Brae new PresetMapEntry( 1041203, 200, 200, 0256, 1792, 1736, 2560 ), // map of Britain to Skara Brae
new PresetMapEntry( 1041192, 200, 200, 1024, 1280, 2304, 3072 ), // map of Britain to Trinsic new PresetMapEntry( 1041192, 200, 200, 1024, 1280, 2304, 3072 ), // map of Britain to Trinsic

View file

@ -45,8 +45,7 @@ namespace Server.Items
private static Point2D[] m_Locations; private static Point2D[] m_Locations;
private static Point2D[] m_HavenLocations; private static Point2D[] m_HavenLocations;
private static Type[][] m_SpawnTypes = new[] private static Type[][] m_SpawnTypes = {
{
new[]{ typeof( HeadlessOne ), typeof( Skeleton ) }, new[]{ typeof( HeadlessOne ), typeof( Skeleton ) },
new[]{ typeof( Mongbat ), typeof( Ratman ), typeof( HeadlessOne ), typeof( Skeleton ), typeof( Zombie ) }, new[]{ typeof( Mongbat ), typeof( Ratman ), typeof( HeadlessOne ), typeof( Skeleton ), typeof( Zombie ) },
new[]{ typeof( OrcishMage ), typeof( Gargoyle ), typeof( Gazer ), typeof( HellHound ), typeof( EarthElemental ) }, new[]{ typeof( OrcishMage ), typeof( Gargoyle ), typeof( Gazer ), typeof( HellHound ), typeof( EarthElemental ) },

View file

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

View file

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

View file

@ -9,8 +9,7 @@ namespace Server.Items
{ {
private static string m_MethodName = "Flip"; private static string m_MethodName = "Flip";
private static Type[] m_Params = new[] private static Type[] m_Params = {
{
typeof( Mobile ), typeof( Direction ) 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( "*****", 1602, 26 ),
new HairDyeEntry( "*****", 1628, 27 ), new HairDyeEntry( "*****", 1628, 27 ),
new HairDyeEntry( "*****", 1502, 32 ), new HairDyeEntry( "*****", 1502, 32 ),

View file

@ -5,8 +5,7 @@ namespace Server.Items
public override int LabelNumber => 1075095; // Shimmering Crystals public override int LabelNumber => 1075095; // Shimmering Crystals
public override bool ForceShowProperties => true; 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, 0x2206, 0x2207, 0x2208, 0x2209, 0x220A, 0x220B, 0x220C, 0x220D, 0x220E,
0x2210, 0x2211, 0x2212, 0x2213, 0x2214, 0x2215, 0x2216, 0x2217, 0x2218, 0x2210, 0x2211, 0x2212, 0x2213, 0x2214, 0x2215, 0x2216, 0x2217, 0x2218,
0x221A, 0x221B, 0x221C, 0x221D, 0x221E, 0x221F, 0x2220, 0x2221, 0x2222, 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 new PMEntry( new Point3D( 270, 628, 15 ), 1063414 ) // Homare-Jima
} ); } );
public static readonly PMList[] UORLists = new[] { Trammel, Felucca }; public static readonly PMList[] UORLists = { Trammel, Felucca };
public static readonly PMList[] UORListsYoung = new[] { Trammel }; public static readonly PMList[] UORListsYoung = { Trammel };
public static readonly PMList[] LBRLists = new[] { Trammel, Felucca, Ilshenar }; public static readonly PMList[] LBRLists = { Trammel, Felucca, Ilshenar };
public static readonly PMList[] LBRListsYoung = new[] { Trammel, Ilshenar }; public static readonly PMList[] LBRListsYoung = { Trammel, Ilshenar };
public static readonly PMList[] AOSLists = new[] { Trammel, Felucca, Ilshenar, Malas }; public static readonly PMList[] AOSLists = { Trammel, Felucca, Ilshenar, Malas };
public static readonly PMList[] AOSListsYoung = new[] { Trammel, Ilshenar, Malas }; public static readonly PMList[] AOSListsYoung = { Trammel, Ilshenar, Malas };
public static readonly PMList[] SELists = new[] { Trammel, Felucca, Ilshenar, Malas, Tokuno }; public static readonly PMList[] SELists = { Trammel, Felucca, Ilshenar, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new[] { Trammel, Ilshenar, Malas, Tokuno }; public static readonly PMList[] SEListsYoung = { Trammel, Ilshenar, Malas, Tokuno };
public static readonly PMList[] RedLists = new[] { Felucca }; public static readonly PMList[] RedLists = { Felucca };
public static readonly PMList[] SigilLists = new[] { Felucca }; public static readonly PMList[] SigilLists = { Felucca };
} }
public class MoongateGump : Gump 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( "*****", 12, 10 ),
new SpecialBeardDyeEntry( "*****", 32, 5 ), new SpecialBeardDyeEntry( "*****", 32, 5 ),
new SpecialBeardDyeEntry( "*****", 38, 8 ), 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( "*****", 12, 10 ),
new SpecialHairDyeEntry( "*****", 32, 5 ), new SpecialHairDyeEntry( "*****", 32, 5 ),
new SpecialHairDyeEntry( "*****", 38, 8 ), 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; public static int[] Sounds => m_Sounds;

Some files were not shown because too many files have changed in this diff Show more