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

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