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

@ -51,7 +51,7 @@ namespace Server.Items
}
}
private static TrophyInfo[] m_Table = new TrophyInfo[]
private static TrophyInfo[] m_Table = new[]
{
new TrophyInfo( typeof( BrownBear ), 0x1E60, 1041093, 1041107 ),
new TrophyInfo( typeof( GreatHart ), 0x1E61, 1041095, 1041109 ),

View file

@ -173,15 +173,15 @@ namespace Server.Items
}
}
private static int[] m_WaterTiles = new int[]
private static int[] m_WaterTiles = new[]
{
0x00A8, 0x00AB,
0x0136, 0x0137
};
private static Rectangle2D[] m_BritRegions = new Rectangle2D[]{ new Rectangle2D( 0, 0, 5120, 4096 ) };
private static Rectangle2D[] m_IlshRegions = new Rectangle2D[]{ new Rectangle2D( 1472, 272, 304, 240 ), new Rectangle2D( 1240, 1000, 312, 160 ) };
private static Rectangle2D[] m_MalasRegions = new Rectangle2D[]{ new Rectangle2D( 1376, 1520, 464, 280 ) };
private static Rectangle2D[] m_BritRegions = new[]{ new Rectangle2D( 0, 0, 5120, 4096 ) };
private static Rectangle2D[] m_IlshRegions = new[]{ new Rectangle2D( 1472, 272, 304, 240 ), new Rectangle2D( 1240, 1000, 312, 160 ) };
private static Rectangle2D[] m_MalasRegions = new[]{ new Rectangle2D( 1376, 1520, 464, 280 ) };
public static Point3D FindLocation( Map map )
{
@ -197,7 +197,7 @@ namespace Server.Items
else if ( map == Map.Malas )
regions = m_MalasRegions;
else
regions = new Rectangle2D[]{ new Rectangle2D( 0, 0, map.Width, map.Height ) };
regions = new[]{ new Rectangle2D( 0, 0, map.Width, map.Height ) };
if ( regions.Length == 0 )
return Point3D.Zero;
@ -312,7 +312,7 @@ namespace Server.Items
m_Message = message;
}
private static MessageEntry[] m_Entries = new MessageEntry[]
private static MessageEntry[] m_Entries = new[]
{
new MessageEntry( 280, 180, "...Ar! {0} and a fair wind! No chance... storms, though--ar! Is that a sea serp...<br><br>uh oh." ),
new MessageEntry( 280, 215, "...been inside this whale for three days now. I've run out of food I can pick out of his teeth. I took a sextant reading through the blowhole: {0}. I'll never see my treasure again..." ),

View file

@ -30,7 +30,7 @@ namespace Server.Items
Hue = 0x8A0;
}
private static int[] m_Hues = new int[]
private static int[] m_Hues = new[]
{
0x09B,
0x0CD,
@ -312,7 +312,7 @@ namespace Server.Items
return valid;
}
private static int[] m_WaterTiles = new int[]
private static int[] m_WaterTiles = new[]
{
0x00A8, 0x00AB,
0x0136, 0x0137
@ -329,7 +329,7 @@ namespace Server.Items
return water;
}
private static int[] m_UndeepWaterTiles = new int[]
private static int[] m_UndeepWaterTiles = new[]
{
0x1797, 0x179C
};

View file

@ -2,7 +2,7 @@ namespace Server.Items
{
public class CurePotion : BaseCurePotion
{
private static CureLevelInfo[] m_OldLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_OldLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 1.00 ), // 100% chance to cure lesser poison
new CureLevelInfo( Poison.Regular, 0.75 ), // 75% chance to cure regular poison
@ -10,7 +10,7 @@ namespace Server.Items
new CureLevelInfo( Poison.Deadly, 0.15 ) // 15% chance to cure deadly poison
};
private static CureLevelInfo[] m_AosLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_AosLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 1.00 ),
new CureLevelInfo( Poison.Regular, 0.95 ),

View file

@ -2,7 +2,7 @@ namespace Server.Items
{
public class GreaterCurePotion : BaseCurePotion
{
private static CureLevelInfo[] m_OldLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_OldLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 1.00 ), // 100% chance to cure lesser poison
new CureLevelInfo( Poison.Regular, 1.00 ), // 100% chance to cure regular poison
@ -11,7 +11,7 @@ namespace Server.Items
new CureLevelInfo( Poison.Lethal, 0.25 ) // 25% chance to cure lethal poison
};
private static CureLevelInfo[] m_AosLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_AosLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 1.00 ),
new CureLevelInfo( Poison.Regular, 1.00 ),

View file

@ -2,14 +2,14 @@ namespace Server.Items
{
public class LesserCurePotion : BaseCurePotion
{
private static CureLevelInfo[] m_OldLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_OldLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 0.75 ), // 75% chance to cure lesser poison
new CureLevelInfo( Poison.Regular, 0.50 ), // 50% chance to cure regular poison
new CureLevelInfo( Poison.Greater, 0.15 ) // 15% chance to cure greater poison
};
private static CureLevelInfo[] m_AosLevelInfo = new CureLevelInfo[]
private static CureLevelInfo[] m_AosLevelInfo = new[]
{
new CureLevelInfo( Poison.Lesser, 0.75 ),
new CureLevelInfo( Poison.Regular, 0.50 ),

View file

@ -804,7 +804,7 @@ namespace Server.Items
}
}
private static int[] m_LegendPropertyCounts = new int[]
private static int[] m_LegendPropertyCounts = new[]
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 properties : 21/52 : 40%
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 1 property : 15/52 : 29%
@ -813,7 +813,7 @@ namespace Server.Items
};
private static int[] m_ElderPropertyCounts = new int[]
private static int[] m_ElderPropertyCounts = new[]
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0 properties : 15/34 : 44%
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 1 property : 10/34 : 29%
@ -821,7 +821,7 @@ namespace Server.Items
3, 3, 3 // 3 properties : 3/34 : 9%
};
private static int[] m_GrandPropertyCounts = new int[]
private static int[] m_GrandPropertyCounts = new[]
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 properties : 10/20 : 50%
1, 1, 1, 1, 1, 1, // 1 property : 6/20 : 30%
@ -829,14 +829,14 @@ namespace Server.Items
3 // 3 properties : 1/20 : 5%
};
private static int[] m_MasterPropertyCounts = new int[]
private static int[] m_MasterPropertyCounts = new[]
{
0, 0, 0, 0, 0, 0, // 0 properties : 6/10 : 60%
1, 1, 1, // 1 property : 3/10 : 30%
2 // 2 properties : 1/10 : 10%
};
private static int[] m_AdeptPropertyCounts = new int[]
private static int[] m_AdeptPropertyCounts = new[]
{
0, 0, 0, // 0 properties : 3/4 : 75%
1 // 1 property : 1/4 : 25%

View file

@ -29,12 +29,12 @@ namespace Server.Items
}
public RepairSkillInfo( CraftSystem system, Type nearbyType, TextDefinition notNearbyMessage, TextDefinition name )
: this( system, new Type[] { nearbyType }, notNearbyMessage, name )
: this( system, new[] { nearbyType }, notNearbyMessage, name )
{
}
public static RepairSkillInfo[] Table => m_Table;
private static RepairSkillInfo[] m_Table = new RepairSkillInfo[]
private static RepairSkillInfo[] m_Table = new[]
{
new RepairSkillInfo( DefBlacksmithy.CraftSystem, typeof( Blacksmith ), 1047013, 1023015 ),
new RepairSkillInfo( DefTailoring.CraftSystem, typeof( Tailor ), 1061132, 1022981 ),

View file

@ -59,52 +59,52 @@ namespace Server.Items
m_TitleString = title;
}
public static readonly CustomHuePicker SpecialDyeTub = new CustomHuePicker( new CustomHueGroup[]
public static readonly CustomHuePicker SpecialDyeTub = new CustomHuePicker( new[]
{
/* Violet */
new CustomHueGroup( 1018345, new int[]{ 1230, 1231, 1232, 1233, 1234, 1235 } ),
new CustomHueGroup( 1018345, new[]{ 1230, 1231, 1232, 1233, 1234, 1235 } ),
/* Tan */
new CustomHueGroup( 1018346, new int[]{ 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508 } ),
new CustomHueGroup( 1018346, new[]{ 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508 } ),
/* Brown */
new CustomHueGroup( 1018347, new int[]{ 2012, 2013, 2014, 2015, 2016, 2017 } ),
new CustomHueGroup( 1018347, new[]{ 2012, 2013, 2014, 2015, 2016, 2017 } ),
/* Dark Blue */
new CustomHueGroup( 1018348, new int[]{ 1303, 1304, 1305, 1306, 1307, 1308 } ),
new CustomHueGroup( 1018348, new[]{ 1303, 1304, 1305, 1306, 1307, 1308 } ),
/* Forest Green */
new CustomHueGroup( 1018349, new int[]{ 1420, 1421, 1422, 1423, 1424, 1425, 1426 } ),
new CustomHueGroup( 1018349, new[]{ 1420, 1421, 1422, 1423, 1424, 1425, 1426 } ),
/* Pink */
new CustomHueGroup( 1018350, new int[]{ 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626 } ),
new CustomHueGroup( 1018350, new[]{ 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626 } ),
/* Red */
new CustomHueGroup( 1018351, new int[]{ 1640, 1641, 1642, 1643, 1644 } ),
new CustomHueGroup( 1018351, new[]{ 1640, 1641, 1642, 1643, 1644 } ),
/* Olive */
new CustomHueGroup( 1018352, new int[]{ 2001, 2002, 2003, 2004, 2005 } )
new CustomHueGroup( 1018352, new[]{ 2001, 2002, 2003, 2004, 2005 } )
}, false, 1018344 );
public static readonly CustomHuePicker LeatherDyeTub = new CustomHuePicker( new CustomHueGroup[]
public static readonly CustomHuePicker LeatherDyeTub = new CustomHuePicker( new[]
{
/* Dull Copper */
new CustomHueGroup( 1018332, new int[]{ 2419, 2420, 2421, 2422, 2423, 2424 } ),
new CustomHueGroup( 1018332, new[]{ 2419, 2420, 2421, 2422, 2423, 2424 } ),
/* Shadow Iron */
new CustomHueGroup( 1018333, new int[]{ 2406, 2407, 2408, 2409, 2410, 2411, 2412 } ),
new CustomHueGroup( 1018333, new[]{ 2406, 2407, 2408, 2409, 2410, 2411, 2412 } ),
/* Copper */
new CustomHueGroup( 1018334, new int[]{ 2413, 2414, 2415, 2416, 2417, 2418 } ),
new CustomHueGroup( 1018334, new[]{ 2413, 2414, 2415, 2416, 2417, 2418 } ),
/* Bronze */
new CustomHueGroup( 1018335, new int[]{ 2414, 2415, 2416, 2417, 2418 } ),
new CustomHueGroup( 1018335, new[]{ 2414, 2415, 2416, 2417, 2418 } ),
/* Glden */
new CustomHueGroup( 1018336, new int[]{ 2213, 2214, 2215, 2216, 2217, 2218 } ),
new CustomHueGroup( 1018336, new[]{ 2213, 2214, 2215, 2216, 2217, 2218 } ),
/* Agapite */
new CustomHueGroup( 1018337, new int[]{ 2425, 2426, 2427, 2428, 2429, 2430 } ),
new CustomHueGroup( 1018337, new[]{ 2425, 2426, 2427, 2428, 2429, 2430 } ),
/* Verite */
new CustomHueGroup( 1018338, new int[]{ 2207, 2208, 2209, 2210, 2211, 2212 } ),
new CustomHueGroup( 1018338, new[]{ 2207, 2208, 2209, 2210, 2211, 2212 } ),
/* Valorite */
new CustomHueGroup( 1018339, new int[]{ 2219, 2220, 2221, 2222, 2223, 2224 } ),
new CustomHueGroup( 1018339, new[]{ 2219, 2220, 2221, 2222, 2223, 2224 } ),
/* Reds */
new CustomHueGroup( 1018340, new int[]{ 2113, 2114, 2115, 2116, 2117, 2118 } ),
new CustomHueGroup( 1018340, new[]{ 2113, 2114, 2115, 2116, 2117, 2118 } ),
/* Blues */
new CustomHueGroup( 1018341, new int[]{ 2119, 2120, 2121, 2122, 2123, 2124 } ),
new CustomHueGroup( 1018341, new[]{ 2119, 2120, 2121, 2122, 2123, 2124 } ),
/* Greens */
new CustomHueGroup( 1018342, new int[]{ 2126, 2127, 2128, 2129, 2130 } ),
new CustomHueGroup( 1018342, new[]{ 2126, 2127, 2128, 2129, 2130 } ),
/* Yellows */
new CustomHueGroup( 1018343, new int[]{ 2213, 2214, 2215, 2216, 2217, 2218 } )
new CustomHueGroup( 1018343, new[]{ 2213, 2214, 2215, 2216, 2217, 2218 } )
}, true );
}

View file

@ -227,7 +227,7 @@ namespace Server.Items
}
}
private static DisguiseEntry[] m_HairEntries = new DisguiseEntry[]
private static DisguiseEntry[] m_HairEntries = new[]
{
new DisguiseEntry( 8251, 50700, 0, 5, 1011052 ), // Short
new DisguiseEntry( 8261, 60710, 0, 3, 1011047 ), // Pageboy
@ -241,7 +241,7 @@ namespace Server.Items
new DisguiseEntry( 0, 0, 0, 0, 1011051 ) // None
};
private static DisguiseEntry[] m_BeardEntries = new DisguiseEntry[]
private static DisguiseEntry[] m_BeardEntries = new[]
{
new DisguiseEntry( 8269, 50906, 0, 0, 1011401 ), // Vandyke
new DisguiseEntry( 8257, 50808, 0,- 2, 1011062 ), // Mustache

View file

@ -139,7 +139,7 @@ namespace Server.Items
attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;
}
private static SkillName[] m_PossibleBonusSkills = new SkillName[]
private static SkillName[] m_PossibleBonusSkills = new[]
{
SkillName.Swords,
SkillName.Fencing,
@ -171,7 +171,7 @@ namespace Server.Items
SkillName.Ninjitsu
};
private static SkillName[] m_PossibleSpellbookSkills = new SkillName[]
private static SkillName[] m_PossibleSpellbookSkills = new[]
{
SkillName.Magery,
SkillName.Meditation,
@ -357,7 +357,7 @@ namespace Server.Items
int totalDamage = phys;
AosElementAttribute[] attrs = new AosElementAttribute[]
AosElementAttribute[] attrs = new[]
{
AosElementAttribute.Cold,
AosElementAttribute.Energy,