Fixes implicit array initializers
This commit is contained in:
parent
7d3a0ca265
commit
fee83ce560
189 changed files with 440 additions and 808 deletions
|
|
@ -51,8 +51,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private static TrophyInfo[] m_Table = new[]
|
||||
{
|
||||
private static TrophyInfo[] m_Table = {
|
||||
new TrophyInfo( typeof( BrownBear ), 0x1E60, 1041093, 1041107 ),
|
||||
new TrophyInfo( typeof( GreatHart ), 0x1E61, 1041095, 1041109 ),
|
||||
new TrophyInfo( typeof( BigFish ), 0x1E62, 1041096, 1041110 ),
|
||||
|
|
|
|||
|
|
@ -173,15 +173,14 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private static int[] m_WaterTiles = new[]
|
||||
{
|
||||
private static int[] m_WaterTiles = {
|
||||
0x00A8, 0x00AB,
|
||||
0x0136, 0x0137
|
||||
};
|
||||
|
||||
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 ) };
|
||||
private static Rectangle2D[] m_BritRegions = { new Rectangle2D( 0, 0, 5120, 4096 ) };
|
||||
private static Rectangle2D[] m_IlshRegions = { new Rectangle2D( 1472, 272, 304, 240 ), new Rectangle2D( 1240, 1000, 312, 160 ) };
|
||||
private static Rectangle2D[] m_MalasRegions = { new Rectangle2D( 1376, 1520, 464, 280 ) };
|
||||
|
||||
public static Point3D FindLocation( Map map )
|
||||
{
|
||||
|
|
@ -312,8 +311,7 @@ namespace Server.Items
|
|||
m_Message = message;
|
||||
}
|
||||
|
||||
private static MessageEntry[] m_Entries = new[]
|
||||
{
|
||||
private static MessageEntry[] m_Entries = {
|
||||
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..." ),
|
||||
new MessageEntry( 280, 285, "...grand adventure! Captain Quacklebush had me swab down the decks daily...<br> ...pirates came, I was in the rigging practicing with my sextant. {0} if I am not mistaken...<br> ....scuttled the ship, and our precious cargo went with her and the screaming pirates, down to the bottom of the sea..." ),
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@ namespace Server.Items
|
|||
Hue = 0x8A0;
|
||||
}
|
||||
|
||||
private static int[] m_Hues = new[]
|
||||
{
|
||||
private static int[] m_Hues = {
|
||||
0x09B,
|
||||
0x0CD,
|
||||
0x0D3,
|
||||
|
|
@ -312,8 +311,7 @@ namespace Server.Items
|
|||
return valid;
|
||||
}
|
||||
|
||||
private static int[] m_WaterTiles = new[]
|
||||
{
|
||||
private static int[] m_WaterTiles = {
|
||||
0x00A8, 0x00AB,
|
||||
0x0136, 0x0137
|
||||
};
|
||||
|
|
@ -329,8 +327,7 @@ namespace Server.Items
|
|||
return water;
|
||||
}
|
||||
|
||||
private static int[] m_UndeepWaterTiles = new[]
|
||||
{
|
||||
private static int[] m_UndeepWaterTiles = {
|
||||
0x1797, 0x179C
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,16 +2,14 @@ namespace Server.Items
|
|||
{
|
||||
public class CurePotion : BaseCurePotion
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = new[]
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = {
|
||||
new CureLevelInfo( Poison.Lesser, 1.00 ), // 100% chance to cure lesser poison
|
||||
new CureLevelInfo( Poison.Regular, 0.75 ), // 75% chance to cure regular poison
|
||||
new CureLevelInfo( Poison.Greater, 0.50 ), // 50% chance to cure greater poison
|
||||
new CureLevelInfo( Poison.Deadly, 0.15 ) // 15% chance to cure deadly poison
|
||||
};
|
||||
|
||||
private static CureLevelInfo[] m_AosLevelInfo = new[]
|
||||
{
|
||||
private static CureLevelInfo[] m_AosLevelInfo = {
|
||||
new CureLevelInfo( Poison.Lesser, 1.00 ),
|
||||
new CureLevelInfo( Poison.Regular, 0.95 ),
|
||||
new CureLevelInfo( Poison.Greater, 0.75 ),
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ namespace Server.Items
|
|||
{
|
||||
public class GreaterCurePotion : BaseCurePotion
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = new[]
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = {
|
||||
new CureLevelInfo( Poison.Lesser, 1.00 ), // 100% chance to cure lesser poison
|
||||
new CureLevelInfo( Poison.Regular, 1.00 ), // 100% chance to cure regular poison
|
||||
new CureLevelInfo( Poison.Greater, 1.00 ), // 100% chance to cure greater poison
|
||||
|
|
@ -11,8 +10,7 @@ namespace Server.Items
|
|||
new CureLevelInfo( Poison.Lethal, 0.25 ) // 25% chance to cure lethal poison
|
||||
};
|
||||
|
||||
private static CureLevelInfo[] m_AosLevelInfo = new[]
|
||||
{
|
||||
private static CureLevelInfo[] m_AosLevelInfo = {
|
||||
new CureLevelInfo( Poison.Lesser, 1.00 ),
|
||||
new CureLevelInfo( Poison.Regular, 1.00 ),
|
||||
new CureLevelInfo( Poison.Greater, 1.00 ),
|
||||
|
|
|
|||
|
|
@ -2,15 +2,13 @@ namespace Server.Items
|
|||
{
|
||||
public class LesserCurePotion : BaseCurePotion
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = new[]
|
||||
{
|
||||
private static CureLevelInfo[] m_OldLevelInfo = {
|
||||
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[]
|
||||
{
|
||||
private static CureLevelInfo[] m_AosLevelInfo = {
|
||||
new CureLevelInfo( Poison.Lesser, 0.75 ),
|
||||
new CureLevelInfo( Poison.Regular, 0.50 ),
|
||||
new CureLevelInfo( Poison.Greater, 0.25 )
|
||||
|
|
|
|||
|
|
@ -804,8 +804,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private static int[] m_LegendPropertyCounts = new[]
|
||||
{
|
||||
private static int[] m_LegendPropertyCounts = {
|
||||
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%
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // 2 properties : 10/52 : 19%
|
||||
|
|
@ -813,31 +812,27 @@ namespace Server.Items
|
|||
|
||||
};
|
||||
|
||||
private static int[] m_ElderPropertyCounts = new[]
|
||||
{
|
||||
private static int[] m_ElderPropertyCounts = {
|
||||
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%
|
||||
2, 2, 2, 2, 2, 2, // 2 properties : 6/34 : 18%
|
||||
3, 3, 3 // 3 properties : 3/34 : 9%
|
||||
};
|
||||
|
||||
private static int[] m_GrandPropertyCounts = new[]
|
||||
{
|
||||
private static int[] m_GrandPropertyCounts = {
|
||||
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%
|
||||
2, 2, 2, // 2 properties : 3/20 : 15%
|
||||
3 // 3 properties : 1/20 : 5%
|
||||
};
|
||||
|
||||
private static int[] m_MasterPropertyCounts = new[]
|
||||
{
|
||||
private static int[] m_MasterPropertyCounts = {
|
||||
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[]
|
||||
{
|
||||
private static int[] m_AdeptPropertyCounts = {
|
||||
0, 0, 0, // 0 properties : 3/4 : 75%
|
||||
1 // 1 property : 1/4 : 25%
|
||||
};
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
public static RepairSkillInfo[] Table => m_Table;
|
||||
private static RepairSkillInfo[] m_Table = new[]
|
||||
{
|
||||
private static RepairSkillInfo[] m_Table = {
|
||||
new RepairSkillInfo( DefBlacksmithy.CraftSystem, typeof( Blacksmith ), 1047013, 1023015 ),
|
||||
new RepairSkillInfo( DefTailoring.CraftSystem, typeof( Tailor ), 1061132, 1022981 ),
|
||||
new RepairSkillInfo( DefTinkering.CraftSystem, typeof( Tinker ), 1061166, 1022983 ),
|
||||
|
|
|
|||
|
|
@ -227,8 +227,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private static DisguiseEntry[] m_HairEntries = new[]
|
||||
{
|
||||
private static DisguiseEntry[] m_HairEntries = {
|
||||
new DisguiseEntry( 8251, 50700, 0, 5, 1011052 ), // Short
|
||||
new DisguiseEntry( 8261, 60710, 0, 3, 1011047 ), // Pageboy
|
||||
new DisguiseEntry( 8252, 60708, 0,- 5, 1011053 ), // Long
|
||||
|
|
@ -241,8 +240,7 @@ namespace Server.Items
|
|||
new DisguiseEntry( 0, 0, 0, 0, 1011051 ) // None
|
||||
};
|
||||
|
||||
private static DisguiseEntry[] m_BeardEntries = new[]
|
||||
{
|
||||
private static DisguiseEntry[] m_BeardEntries = {
|
||||
new DisguiseEntry( 8269, 50906, 0, 0, 1011401 ), // Vandyke
|
||||
new DisguiseEntry( 8257, 50808, 0,- 2, 1011062 ), // Mustache
|
||||
new DisguiseEntry( 8255, 50802, 0, 0, 1011060 ), // Short beard
|
||||
|
|
|
|||
|
|
@ -139,8 +139,7 @@ namespace Server.Items
|
|||
attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;
|
||||
}
|
||||
|
||||
private static SkillName[] m_PossibleBonusSkills = new[]
|
||||
{
|
||||
private static SkillName[] m_PossibleBonusSkills = {
|
||||
SkillName.Swords,
|
||||
SkillName.Fencing,
|
||||
SkillName.Macing,
|
||||
|
|
@ -171,8 +170,7 @@ namespace Server.Items
|
|||
SkillName.Ninjitsu
|
||||
};
|
||||
|
||||
private static SkillName[] m_PossibleSpellbookSkills = new[]
|
||||
{
|
||||
private static SkillName[] m_PossibleSpellbookSkills = {
|
||||
SkillName.Magery,
|
||||
SkillName.Meditation,
|
||||
SkillName.EvalInt,
|
||||
|
|
@ -357,8 +355,7 @@ namespace Server.Items
|
|||
|
||||
int totalDamage = phys;
|
||||
|
||||
AosElementAttribute[] attrs = new[]
|
||||
{
|
||||
AosElementAttribute[] attrs = {
|
||||
AosElementAttribute.Cold,
|
||||
AosElementAttribute.Energy,
|
||||
AosElementAttribute.Fire,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue