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

@ -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.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 ),

View file

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

View file

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

View file

@ -895,8 +895,7 @@ namespace Server.Items
return null;
}
private static Type[] m_Decorations = new[]
{
private static Type[] m_Decorations = {
typeof( FishBones ),
typeof( WaterloggedBoots ),
typeof( CaptainBlackheartsFishingPole ),
@ -924,8 +923,7 @@ namespace Server.Items
return false;
}
private static int[] m_FishHues = new[]
{
private static int[] m_FishHues = {
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
};

View file

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

View file

@ -17,8 +17,7 @@ namespace Server.Items
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, 0, 0 ),

View file

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

View file

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

View file

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

View file

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

View file

@ -79,8 +79,7 @@ namespace Server.Items
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( 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -114,8 +114,7 @@ namespace Server.Items
return total;
}
private static Type[] m_Ammo = new[]
{
private static Type[] m_Ammo = {
typeof( Arrow ), typeof( Bolt )
};

View file

@ -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 ),

View file

@ -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..." ),

View file

@ -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
};

View file

@ -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 ),

View file

@ -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 ),

View file

@ -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 )

View file

@ -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%
};

View file

@ -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 ),

View file

@ -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

View file

@ -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,

View file

@ -257,8 +257,7 @@ namespace Server.Items
m_Info.Add( MusicName.ValoriaShips, new DawnsMusicInfo( 1075140, DawnsMusicRarity.Rare ) );
}
public static MusicName[] m_CommonTracks = new[]
{
public static MusicName[] m_CommonTracks = {
MusicName.Samlethe, MusicName.Sailing, MusicName.Britain2, MusicName.Britain1,
MusicName.Bucsden, MusicName.Forest_a, MusicName.Cove, MusicName.Death,
MusicName.Dungeon9, MusicName.Dungeon2, MusicName.Cave01, MusicName.Combat3,
@ -271,16 +270,14 @@ namespace Server.Items
MusicName.Mountn_a, MusicName.Wind, MusicName.Yew, MusicName.Zento
};
public static MusicName[] m_UncommonTracks = new[]
{
public static MusicName[] m_UncommonTracks = {
MusicName.GwennoConversation, MusicName.DreadHornArea, MusicName.ElfCity,
MusicName.GoodEndGame, MusicName.GoodVsEvil, MusicName.GreatEarthSerpents,
MusicName.GrizzleDungeon, MusicName.Humanoids_U9, MusicName.MelisandesLair,
MusicName.MinocNegative, MusicName.ParoxysmusLair, MusicName.Paws
};
public static MusicName[] m_RareTracks = new[]
{
public static MusicName[] m_RareTracks = {
MusicName.SelimsBar, MusicName.SerpentIsleCombat_U7, MusicName.ValoriaShips
};

View file

@ -4,8 +4,7 @@ namespace Server.Items
{
public class HolidayBell : Item
{
private static string[] m_StaffNames = new[]
{
private static string[] m_StaffNames = {
"Adrick",
"Alai",
"Bulldoz",
@ -29,8 +28,7 @@ namespace Server.Items
"Tyrant",
"Vex"
};
private static int[] m_Hues = new[]
{
private static int[] m_Hues = {
0xA, 0x24, 0x42, 0x56, 0x1A, 0x4C, 0x3C, 0x60, 0x2E, 0x55, 0x23, 0x38, 0x482, 0x6, 0x10
};

View file

@ -37,7 +37,7 @@ namespace Server.Items
[Constructible]
public BadCard() : base( 0x14ef )
{
int[] m_CardHues=new[]{ 0x45, 0x27, 0x3d0 };
int[] m_CardHues={ 0x45, 0x27, 0x3d0 };
Hue = m_CardHues[Utility.Random(m_CardHues.Length)];
Stackable = false;
LootType=LootType.Blessed;

View file

@ -137,8 +137,7 @@ namespace Server.Items
public class SnowGlobeTwo : SnowGlobe
{
/* Oddly, these are not localized. */
private static readonly string[] m_PlaceNames = new[]
{
private static readonly string[] m_PlaceNames = {
/* AncientCitadel */ "Ancient Citadel",
/* BlackthornesCastle */ "Blackthorne's Castle",
/* CityofMontor */ "City of Montor",

View file

@ -5,7 +5,7 @@
public override string DefaultName => "Snow Pile";
public override double DefaultWeight => 2.0;
private static readonly int[] m_Types = new[] { 0x8E2, 0x8E0, 0x8E6, 0x8E5, 0x8E3 };
private static readonly int[] m_Types = { 0x8E2, 0x8E0, 0x8E6, 0x8E5, 0x8E3 };
[Constructible]
public SnowPileDeco()

View file

@ -6,8 +6,7 @@ namespace Server.Items
public static string GetRandomTitle()
{
// All hail OSI staff
string[] titles = new[]
{
string[] titles = {
/* 1 */ "Backflash",
/* 2 */ "Carbon",
/* 3 */ "Colbalistic",

View file

@ -197,8 +197,7 @@ namespace Server.Items
m_Graphics = graphics;
}
private static MiniHouseInfo[] m_Info = new[]
{
private static MiniHouseInfo[] m_Info = {
/* Stone and plaster house */ new MiniHouseInfo( 0x22C4, 1, 1011303 ),
/* Field stone house */ new MiniHouseInfo( 0x22DE, 1, 1011304 ),
/* Small brick house */ new MiniHouseInfo( 0x22DF, 1, 1011305 ),

View file

@ -73,8 +73,7 @@ namespace Server.Items
m_Sounds = sounds;
}
private static MonsterStatuetteInfo[] m_Table = new[]
{
private static MonsterStatuetteInfo[] m_Table = {
/* Crocodile */ new MonsterStatuetteInfo( 1041249, 0x20DA, 660 ),
/* Daemon */ new MonsterStatuetteInfo( 1041250, 0x20D3, 357 ),
/* Dragon */ new MonsterStatuetteInfo( 1041251, 0x20D6, 362 ),

View file

@ -9,15 +9,13 @@ namespace Server.Items
public override int DefaultGumpID => 0x2A63;
public override int DefaultDropSound => 0x23F;
private static int[,,] m_Positions = new[,,]
{
private static int[,,] m_Positions = {
{ { 275, 85 }, { 360, 111 }, { 375, 184 }, { 332, 228 }, { 141, 105 }, { 189, 75 } },
{ { 274, 34 }, { 327, 89 }, { 354, 168 }, { 304, 225 }, { 113, 86 }, { 189, 75 } },
{ { 276, 79 }, { 369, 117 }, { 372, 192 }, { 336, 230 }, { 141, 116 }, { 189, 75 } },
};
private static int[] m_BrainHues = new[]
{
private static int[] m_BrainHues = {
0x2B, 0x42, 0x54, 0x60
};

View file

@ -284,8 +284,7 @@ namespace Server.Items
Opened = true;
}
private static int[] m_Hues = new[]
{
private static int[] m_Hues = {
0xD, 0x17, 0x2B, 0x42, 0x54, 0x5D
};

View file

@ -27,8 +27,7 @@ namespace Server.Items
public override string DefaultTitle => $"<basefont color=#FFFFFF>Power Scroll ({Value} Skill):</basefont>";
private static SkillName[] m_Skills = new[]
{
private static SkillName[] m_Skills = {
SkillName.Blacksmith,
SkillName.Tailoring,
SkillName.Swords,
@ -53,8 +52,7 @@ namespace Server.Items
SkillName.Peacemaking
};
private static SkillName[] m_AOSSkills = new[]
{
private static SkillName[] m_AOSSkills = {
SkillName.Chivalry,
SkillName.Focus,
SkillName.Necromancy,
@ -63,14 +61,12 @@ namespace Server.Items
SkillName.SpiritSpeak
};
private static SkillName[] m_SESkills = new[]
{
private static SkillName[] m_SESkills = {
SkillName.Ninjitsu,
SkillName.Bushido
};
private static SkillName[] m_MLSkills = new[]
{
private static SkillName[] m_MLSkills = {
SkillName.Spellweaving
};

View file

@ -27,8 +27,7 @@ namespace Server.Items
base.OnDelete();
}
private static int[] m_Art = new[]
{
private static int[] m_Art = {
0x19AA, 0x19BB
};

View file

@ -194,8 +194,7 @@ namespace Server.Items
from.SendLocalizedMessage( 1076198 ); // You do not have a full keg of explosion potions needed to recharge the cannon.
}
private static int[] m_Effects = new[]
{
private static int[] m_Effects = {
0x36B0, 0x3728, 0x3709, 0x36FE
};

View file

@ -749,8 +749,7 @@ namespace Server.Items
#endregion
#region Randomize
private static int[] m_ItemIDs = new[]
{
private static int[] m_ItemIDs = {
0x2F58, 0x2F59, 0x2F5A, 0x2F5B
};
@ -759,8 +758,7 @@ namespace Server.Items
return Utility.RandomList(m_ItemIDs);
}
private static Type[] m_Summons = new[]
{
private static Type[] m_Summons = {
typeof( SummonedAntLion ),
typeof( SummonedCow ),
typeof( SummonedLavaSerpent ),
@ -784,8 +782,7 @@ namespace Server.Items
typeof( Bandage ),
};
private static int[] m_SummonLabels = new[]
{
private static int[] m_SummonLabels = {
1075211, // Ant Lion
1072494, // Cow
1072434, // Lava Serpent
@ -837,8 +834,7 @@ namespace Server.Items
return TalismanRemoval.None;
}
private static Type[] m_Killers = new[]
{
private static Type[] m_Killers = {
typeof( OrcBomber ), typeof( OrcBrute ), typeof( SewerRat ), typeof( Rat ), typeof( GiantRat ),
typeof( Ratman ), typeof( RatmanArcher ), typeof( GiantSpider ), typeof( FrostSpider ), typeof( GiantBlackWidow ),
typeof( DreadSpider ), typeof( SilverSerpent ), typeof( DeepSeaSerpent ), typeof( GiantSerpent ), typeof( Snake ),
@ -855,8 +851,7 @@ namespace Server.Items
// TODO Meraktus, Tormented Minotaur, Minotaur
};
private static int[] m_KillerLabels = new[]
{
private static int[] m_KillerLabels = {
1072413, 1072414, 1072418, 1072419, 1072420,
1072421, 1072423, 1072424, 1072425, 1072426,
1072427, 1072428, 1072429, 1072430, 1072431,
@ -902,8 +897,7 @@ namespace Server.Items
return new TalismanAttribute(m_Killers[num], m_KillerLabels[num], Utility.RandomMinMax(5, 60));
}
private static SkillName[] m_Skills = new[]
{
private static SkillName[] m_Skills = {
SkillName.Alchemy,
SkillName.Blacksmith,
SkillName.Carpentry,

View file

@ -20,8 +20,7 @@ namespace Server.Items
WeaponAttributes.ResistPoisonBonus = 15;
}
private static SkillName[] m_PossibleBonusSkills = new[]
{
private static SkillName[] m_PossibleBonusSkills = {
SkillName.Archery,
SkillName.Healing,
SkillName.MagicResist,

View file

@ -14,8 +14,7 @@ namespace Server.Items
public SlayerName Name => m_Name;
public Type[] Types => m_Types;
private static int[] m_AosTitles = new[]
{
private static int[] m_AosTitles = {
1060479, // undead slayer
1060470, // orc slayer
1060480, // troll slayer
@ -45,8 +44,7 @@ namespace Server.Items
1070855 // fey slayer
};
private static int[] m_OldTitles = new[]
{
private static int[] m_OldTitles = {
1017384, // Silver
1017385, // Orc Slaying
1017386, // Troll Slaughter

View file

@ -92,8 +92,7 @@ namespace Server.Items
}
}
private static Type[] m_ChampTamables = new[]
{
private static Type[] m_ChampTamables = {
typeof( StrongMongbat ), typeof( Imp ), typeof( Scorpion ), typeof( GiantSpider ),
typeof( Snake ), typeof( LavaLizard ), typeof( Drake ), typeof( Dragon ),
typeof( Kirin ), typeof( Unicorn ), typeof( GiantRat ), typeof( Slime ),