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

@ -8,8 +8,7 @@ namespace Server
#region List definitions
#region Mondain's Legacy
private static Type[] m_MLWeaponTypes = new[]
{
private static Type[] m_MLWeaponTypes = {
typeof( AssassinSpike ), typeof( DiamondMace ), typeof( ElvenMachete ),
typeof( ElvenSpellblade ), typeof( Leafblade ), typeof( OrnateAxe ),
typeof( RadiantScimitar ), typeof( RuneBlade ), typeof( WarCleaver ),
@ -18,15 +17,13 @@ namespace Server
public static Type[] MLWeaponTypes => m_MLWeaponTypes;
private static Type[] m_MLRangedWeaponTypes = new[]
{
private static Type[] m_MLRangedWeaponTypes = {
typeof( ElvenCompositeLongbow ), typeof( MagicalShortbow )
};
public static Type[] MLRangedWeaponTypes => m_MLRangedWeaponTypes;
private static Type[] m_MLArmorTypes = new[]
{
private static Type[] m_MLArmorTypes = {
typeof( Circlet ), typeof( GemmedCirclet ), typeof( LeafTonlet ),
typeof( RavenHelm ), typeof( RoyalCirclet ), typeof( VultureHelm ),
typeof( WingedHelm ), typeof( LeafArms ), typeof( LeafChest ),
@ -39,8 +36,7 @@ namespace Server
public static Type[] MLArmorTypes => m_MLArmorTypes;
private static Type[] m_MLClothingTypes = new[]
{
private static Type[] m_MLClothingTypes = {
typeof( MaleElvenRobe ), typeof( FemaleElvenRobe ), typeof( ElvenPants ),
typeof( ElvenShirt ), typeof( ElvenDarkShirt ), typeof( ElvenBoots ),
typeof( VultureHelm ), typeof( WoodlandBelt )
@ -50,8 +46,7 @@ namespace Server
#endregion
private static Type[] m_SEWeaponTypes = new[]
{
private static Type[] m_SEWeaponTypes = {
typeof( Bokuto ), typeof( Daisho ), typeof( Kama ),
typeof( Lajatang ), typeof( NoDachi ), typeof( Nunchaku ),
typeof( Sai ), typeof( Tekagi ), typeof( Tessen ),
@ -60,8 +55,7 @@ namespace Server
public static Type[] SEWeaponTypes => m_SEWeaponTypes;
private static Type[] m_AosWeaponTypes = new[]
{
private static Type[] m_AosWeaponTypes = {
typeof( Scythe ), typeof( BoneHarvester ), typeof( Scepter ),
typeof( BladedStaff ), typeof( Pike ), typeof( DoubleBladedStaff ),
typeof( Lance ), typeof( CrescentBlade )
@ -69,8 +63,7 @@ namespace Server
public static Type[] AosWeaponTypes => m_AosWeaponTypes;
private static Type[] m_WeaponTypes = new[]
{
private static Type[] m_WeaponTypes = {
typeof( Axe ), typeof( BattleAxe ), typeof( DoubleAxe ),
typeof( ExecutionersAxe ), typeof( Hatchet ), typeof( LargeBattleAxe ),
typeof( TwoHandedAxe ), typeof( WarAxe ), typeof( Club ),
@ -87,29 +80,25 @@ namespace Server
public static Type[] WeaponTypes => m_WeaponTypes;
private static Type[] m_SERangedWeaponTypes = new[]
{
private static Type[] m_SERangedWeaponTypes = {
typeof( Yumi )
};
public static Type[] SERangedWeaponTypes => m_SERangedWeaponTypes;
private static Type[] m_AosRangedWeaponTypes = new[]
{
private static Type[] m_AosRangedWeaponTypes = {
typeof( CompositeBow ), typeof( RepeatingCrossbow )
};
public static Type[] AosRangedWeaponTypes => m_AosRangedWeaponTypes;
private static Type[] m_RangedWeaponTypes = new[]
{
private static Type[] m_RangedWeaponTypes = {
typeof( Bow ), typeof( Crossbow ), typeof( HeavyCrossbow )
};
public static Type[] RangedWeaponTypes => m_RangedWeaponTypes;
private static Type[] m_SEArmorTypes = new[]
{
private static Type[] m_SEArmorTypes = {
typeof( ChainHatsuburi ), typeof( LeatherDo ), typeof( LeatherHaidate ),
typeof( LeatherHiroSode ), typeof( LeatherJingasa ), typeof( LeatherMempo ),
typeof( LeatherNinjaHood ), typeof( LeatherNinjaJacket ), typeof( LeatherNinjaMitts ),
@ -124,8 +113,7 @@ namespace Server
public static Type[] SEArmorTypes => m_SEArmorTypes;
private static Type[] m_ArmorTypes = new[]
{
private static Type[] m_ArmorTypes = {
typeof( BoneArms ), typeof( BoneChest ), typeof( BoneGloves ),
typeof( BoneLegs ), typeof( BoneHelm ), typeof( ChainChest ),
typeof( ChainLegs ), typeof( ChainCoif ), typeof( Bascinet ),
@ -144,15 +132,13 @@ namespace Server
public static Type[] ArmorTypes => m_ArmorTypes;
private static Type[] m_AosShieldTypes = new[]
{
private static Type[] m_AosShieldTypes = {
typeof( ChaosShield ), typeof( OrderShield )
};
public static Type[] AosShieldTypes => m_AosShieldTypes;
private static Type[] m_ShieldTypes = new[]
{
private static Type[] m_ShieldTypes = {
typeof( BronzeShield ), typeof( Buckler ), typeof( HeaterShield ),
typeof( MetalShield ), typeof( MetalKiteShield ), typeof( WoodenKiteShield ),
typeof( WoodenShield )
@ -160,8 +146,7 @@ namespace Server
public static Type[] ShieldTypes => m_ShieldTypes;
private static Type[] m_GemTypes = new[]
{
private static Type[] m_GemTypes = {
typeof( Amber ), typeof( Amethyst ), typeof( Citrine ),
typeof( Diamond ), typeof( Emerald ), typeof( Ruby ),
typeof( Sapphire ), typeof( StarSapphire ), typeof( Tourmaline )
@ -169,16 +154,14 @@ namespace Server
public static Type[] GemTypes => m_GemTypes;
private static Type[] m_JewelryTypes = new[]
{
private static Type[] m_JewelryTypes = {
typeof( GoldRing ), typeof( GoldBracelet ),
typeof( SilverRing ), typeof( SilverBracelet )
};
public static Type[] JewelryTypes => m_JewelryTypes;
private static Type[] m_RegTypes = new[]
{
private static Type[] m_RegTypes = {
typeof( BlackPearl ), typeof( Bloodmoss ), typeof( Garlic ),
typeof( Ginseng ), typeof( MandrakeRoot ), typeof( Nightshade ),
typeof( SulfurousAsh ), typeof( SpidersSilk )
@ -186,39 +169,34 @@ namespace Server
public static Type[] RegTypes => m_RegTypes;
private static Type[] m_NecroRegTypes = new[]
{
private static Type[] m_NecroRegTypes = {
typeof( BatWing ), typeof( GraveDust ), typeof( DaemonBlood ),
typeof( NoxCrystal ), typeof( PigIron )
};
public static Type[] NecroRegTypes => m_NecroRegTypes;
private static Type[] m_PotionTypes = new[]
{
private static Type[] m_PotionTypes = {
typeof( AgilityPotion ), typeof( StrengthPotion ), typeof( RefreshPotion ),
typeof( LesserCurePotion ), typeof( LesserHealPotion ), typeof( LesserPoisonPotion )
};
public static Type[] PotionTypes => m_PotionTypes;
private static Type[] m_SEInstrumentTypes = new[]
{
private static Type[] m_SEInstrumentTypes = {
typeof( BambooFlute )
};
public static Type[] SEInstrumentTypes => m_SEInstrumentTypes;
private static Type[] m_InstrumentTypes = new[]
{
private static Type[] m_InstrumentTypes = {
typeof( Drums ), typeof( Harp ), typeof( LapHarp ),
typeof( Lute ), typeof( Tambourine ), typeof( TambourineTassel )
};
public static Type[] InstrumentTypes => m_InstrumentTypes;
private static Type[] m_StatueTypes = new[]
{
private static Type[] m_StatueTypes = {
typeof( StatueSouth ), typeof( StatueSouth2 ), typeof( StatueNorth ),
typeof( StatueWest ), typeof( StatueEast ), typeof( StatueEast2 ),
typeof( StatueSouthEast ), typeof( BustSouth ), typeof( BustEast )
@ -226,8 +204,7 @@ namespace Server
public static Type[] StatueTypes => m_StatueTypes;
private static Type[] m_RegularScrollTypes = new[]
{
private static Type[] m_RegularScrollTypes = {
typeof( ReactiveArmorScroll ), typeof( ClumsyScroll ), typeof( CreateFoodScroll ), typeof( FeeblemindScroll ),
typeof( HealScroll ), typeof( MagicArrowScroll ), typeof( NightSightScroll ), typeof( WeakenScroll ),
typeof( AgilityScroll ), typeof( CunningScroll ), typeof( CureScroll ), typeof( HarmScroll ),
@ -246,16 +223,14 @@ namespace Server
typeof( SummonDaemonScroll ), typeof( SummonEarthElementalScroll ), typeof( SummonFireElementalScroll ), typeof( SummonWaterElementalScroll )
};
private static Type[] m_NecromancyScrollTypes = new[]
{
private static Type[] m_NecromancyScrollTypes = {
typeof( AnimateDeadScroll ), typeof( BloodOathScroll ), typeof( CorpseSkinScroll ), typeof( CurseWeaponScroll ),
typeof( EvilOmenScroll ), typeof( HorrificBeastScroll ), typeof( LichFormScroll ), typeof( MindRotScroll ),
typeof( PainSpikeScroll ), typeof( PoisonStrikeScroll ), typeof( StrangleScroll ), typeof( SummonFamiliarScroll ),
typeof( VampiricEmbraceScroll ), typeof( VengefulSpiritScroll ), typeof( WitherScroll ), typeof( WraithFormScroll )
};
private static Type[] m_SENecromancyScrollTypes = new[]
{
private static Type[] m_SENecromancyScrollTypes = {
typeof( AnimateDeadScroll ), typeof( BloodOathScroll ), typeof( CorpseSkinScroll ), typeof( CurseWeaponScroll ),
typeof( EvilOmenScroll ), typeof( HorrificBeastScroll ), typeof( LichFormScroll ), typeof( MindRotScroll ),
typeof( PainSpikeScroll ), typeof( PoisonStrikeScroll ), typeof( StrangleScroll ), typeof( SummonFamiliarScroll ),
@ -266,8 +241,7 @@ namespace Server
private static Type[] m_PaladinScrollTypes = new Type[0];
#region Mondain's Legacy
private static Type[] m_ArcanistScrollTypes = new[]
{
private static Type[] m_ArcanistScrollTypes = {
typeof( ArcaneCircleScroll ), typeof( GiftOfRenewalScroll ), typeof( ImmolatingWeaponScroll ), typeof( AttuneWeaponScroll ),
typeof( ThunderstormScroll ), typeof( NatureFuryScroll ), /*typeof( SummonFeyScroll ), typeof( SummonFiendScroll ),*/
typeof( ReaperFormScroll ), typeof( WildfireScroll ), typeof( EssenceOfWindScroll ), typeof( DryadAllureScroll ),
@ -285,8 +259,7 @@ namespace Server
#endregion
private static Type[] m_GrimmochJournalTypes = new[]
{
private static Type[] m_GrimmochJournalTypes = {
typeof( GrimmochJournal1 ), typeof( GrimmochJournal2 ), typeof( GrimmochJournal3 ),
typeof( GrimmochJournal6 ), typeof( GrimmochJournal7 ), typeof( GrimmochJournal11 ),
typeof( GrimmochJournal14 ), typeof( GrimmochJournal17 ), typeof( GrimmochJournal23 )
@ -294,16 +267,14 @@ namespace Server
public static Type[] GrimmochJournalTypes => m_GrimmochJournalTypes;
private static Type[] m_LysanderNotebookTypes = new[]
{
private static Type[] m_LysanderNotebookTypes = {
typeof( LysanderNotebook1 ), typeof( LysanderNotebook2 ), typeof( LysanderNotebook3 ),
typeof( LysanderNotebook7 ), typeof( LysanderNotebook8 ), typeof( LysanderNotebook11 )
};
public static Type[] LysanderNotebookTypes => m_LysanderNotebookTypes;
private static Type[] m_TavarasJournalTypes = new[]
{
private static Type[] m_TavarasJournalTypes = {
typeof( TavarasJournal1 ), typeof( TavarasJournal2 ), typeof( TavarasJournal3 ),
typeof( TavarasJournal6 ), typeof( TavarasJournal7 ), typeof( TavarasJournal8 ),
typeof( TavarasJournal9 ), typeof( TavarasJournal11 ), typeof( TavarasJournal14 ),
@ -314,28 +285,24 @@ namespace Server
public static Type[] TavarasJournalTypes => m_TavarasJournalTypes;
private static Type[] m_NewWandTypes = new[]
{
private static Type[] m_NewWandTypes = {
typeof( FireballWand ), typeof( LightningWand ), typeof( MagicArrowWand ),
typeof( GreaterHealWand ), typeof( HarmWand ), typeof( HealWand )
};
public static Type[] NewWandTypes => m_NewWandTypes;
private static Type[] m_WandTypes = new[]
{
private static Type[] m_WandTypes = {
typeof( ClumsyWand ), typeof( FeebleWand ),
typeof( ManaDrainWand ), typeof( WeaknessWand )
};
public static Type[] WandTypes => m_WandTypes;
private static Type[] m_OldWandTypes = new[]
{
private static Type[] m_OldWandTypes = {
typeof( IDWand )
};
public static Type[] OldWandTypes => m_OldWandTypes;
private static Type[] m_SEClothingTypes = new[]
{
private static Type[] m_SEClothingTypes = {
typeof( ClothNinjaJacket ), typeof( FemaleKimono ), typeof( Hakama ),
typeof( HakamaShita ), typeof( JinBaori ), typeof( Kamishimo ),
typeof( MaleKimono ), typeof( NinjaTabi ), typeof( Obi ),
@ -344,16 +311,14 @@ namespace Server
public static Type[] SEClothingTypes => m_SEClothingTypes;
private static Type[] m_AosClothingTypes = new[]
{
private static Type[] m_AosClothingTypes = {
typeof( FurSarong ), typeof( FurCape ), typeof( FlowerGarland ),
typeof( GildedDress ), typeof( FurBoots ), typeof( FormalShirt ),
};
public static Type[] AosClothingTypes => m_AosClothingTypes;
private static Type[] m_ClothingTypes = new[]
{
private static Type[] m_ClothingTypes = {
typeof( Cloak ),
typeof( Bonnet ), typeof( Cap ), typeof( FeatheredHat ),
typeof( FloppyHat ), typeof( JesterHat ), typeof( Surcoat ),
@ -369,22 +334,19 @@ namespace Server
};
public static Type[] ClothingTypes => m_ClothingTypes;
private static Type[] m_SEHatTypes = new[]
{
private static Type[] m_SEHatTypes = {
typeof( ClothNinjaHood ), typeof( Kasa )
};
public static Type[] SEHatTypes => m_SEHatTypes;
private static Type[] m_AosHatTypes = new[]
{
private static Type[] m_AosHatTypes = {
typeof( FlowerGarland ), typeof( BearMask ), typeof( DeerMask ) //Are Bear& Deer mask inside the Pre-AoS loottables too?
};
public static Type[] AosHatTypes => m_AosHatTypes;
private static Type[] m_HatTypes = new[]
{
private static Type[] m_HatTypes = {
typeof( SkullCap ), typeof( Bandana ), typeof( FloppyHat ),
typeof( Cap ), typeof( WideBrimHat ), typeof( StrawHat ),
typeof( TallStrawHat ), typeof( WizardsHat ), typeof( Bonnet ),
@ -393,8 +355,7 @@ namespace Server
public static Type[] HatTypes => m_HatTypes;
private static Type[] m_LibraryBookTypes = new[]
{
private static Type[] m_LibraryBookTypes = {
typeof( GrammarOfOrcish ), typeof( CallToAnarchy ), typeof( ArmsAndWeaponsPrimer ),
typeof( SongOfSamlethe ), typeof( TaleOfThreeTribes ), typeof( GuideToGuilds ),
typeof( BirdsOfBritannia ), typeof( BritannianFlora ), typeof( ChildrenTalesVol2 ),