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

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

View file

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

View file

@ -31,8 +31,7 @@ namespace Server.Engines.Quests.Collector
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( 9735, typeof( Bogling ), 75, 45 ),
new ImageTypeInfo( 9736, typeof( BogThing ), 60, 47 ),

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,8 +2,7 @@ namespace Server.Engines.Quests.Naturalist
{
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( 5734, 1788, 14, 50 ),

View file

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

View file

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

View file

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

View file

@ -6,8 +6,7 @@ namespace Server.Engines.Quests.Doom
{
public class TheSummoningQuest : QuestSystem
{
private static Type[] m_TypeReferenceTable = new[]
{
private static Type[] m_TypeReferenceTable = {
typeof( AcceptConversation ),
typeof( CollectBonesObjective ),
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
};
@ -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( 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
};
@ -312,8 +309,7 @@ namespace Server.Engines.Quests.Haven
{
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( 1023969, 0xF81 ), // Fertile Dirt
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( 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
};
private static QuestItemInfo[] m_InfoPaladin = new[]
{
private static QuestItemInfo[] m_InfoPaladin = {
new QuestItemInfo( 1017412, 0xF80 ), // Daemon Bone
new QuestItemInfo( 1060577, 0x1F14 ), // Recall Rune
};

View file

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

View file

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

View file

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

View file

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