Removes implicit types

This commit is contained in:
Kamron Batman 2018-09-14 08:48:39 -07:00
parent 33f5e77a24
commit 04b4cfe75b
261 changed files with 1329 additions and 1329 deletions

View file

@ -88,7 +88,7 @@ namespace Server.Misc
World.Save( true, permitBackgroundWrite );
}
private static string[] m_Backups = new string[]
private static string[] m_Backups = new[]
{
"Third Backup",
"Second Backup",

View file

@ -926,7 +926,7 @@ namespace Server.Misc
{
case 1: // Warrior
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Anatomy, 30 ),
new SkillNameValue( SkillName.Healing, 45 ),
@ -938,7 +938,7 @@ namespace Server.Misc
}
case 2: // Magician
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.EvalInt, 30 ),
new SkillNameValue( SkillName.Wrestling, 30 ),
@ -950,7 +950,7 @@ namespace Server.Misc
}
case 3: // Blacksmith
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Mining, 30 ),
new SkillNameValue( SkillName.ArmsLore, 30 ),
@ -962,7 +962,7 @@ namespace Server.Misc
}
case 4: // Necromancer
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Necromancy, 50 ),
new SkillNameValue( SkillName.Focus, 30 ),
@ -975,7 +975,7 @@ namespace Server.Misc
}
case 5: // Paladin
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Chivalry, 51 ),
new SkillNameValue( SkillName.Swords, 49 ),
@ -987,7 +987,7 @@ namespace Server.Misc
}
case 6: //Samurai
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Bushido, 50 ),
new SkillNameValue( SkillName.Swords, 50 ),
@ -998,7 +998,7 @@ namespace Server.Misc
}
case 7: //Ninja
{
skills = new SkillNameValue[]
skills = new[]
{
new SkillNameValue( SkillName.Ninjitsu, 50 ),
new SkillNameValue( SkillName.Hiding, 50 ),
@ -1141,7 +1141,7 @@ namespace Server.Misc
addSkillItems = false;
EquipItem( new Kasa() );
int[] hues = new int[] { 0x1A8, 0xEC, 0x99, 0x90, 0xB5, 0x336, 0x89 };
int[] hues = new[] { 0x1A8, 0xEC, 0x99, 0x90, 0xB5, 0x336, 0x89 };
//TODO: Verify that's ALL the hues for that above.
EquipItem( new TattsukeHakama( hues[Utility.Random(hues.Length)] ) );

View file

@ -5,7 +5,7 @@ namespace Server
{
public class DoorGenerator
{
private static Rectangle2D[] m_BritRegions = new Rectangle2D[]
private static Rectangle2D[] m_BritRegions = new[]
{
new Rectangle2D( new Point2D( 250, 750 ), new Point2D( 775, 1330 ) ),
new Rectangle2D( new Point2D( 525, 2095 ), new Point2D( 925, 2430 ) ),
@ -25,17 +25,17 @@ namespace Server
new Rectangle2D( new Point2D( 5120, 2300 ), new Point2D( 6143, 4095 ) )
};
private static Rectangle2D[] m_IlshRegions = new Rectangle2D[]
private static Rectangle2D[] m_IlshRegions = new[]
{
new Rectangle2D( new Point2D( 0, 0 ), new Point2D( 288*8, 200*8 ) )
};
private static Rectangle2D[] m_MalasRegions = new Rectangle2D[]
private static Rectangle2D[] m_MalasRegions = new[]
{
new Rectangle2D( new Point2D( 0, 0 ), new Point2D( 320*8, 256*8 ) )
};
private static int[] m_SouthFrames = new int[]
private static int[] m_SouthFrames = new[]
{
0x0006,
0x0008,
@ -109,7 +109,7 @@ namespace Server
0x020A
};
private static int[] m_NorthFrames = new int[]
private static int[] m_NorthFrames = new[]
{
0x0006,
0x0008,
@ -182,7 +182,7 @@ namespace Server
0x020A
};
private static int[] m_EastFrames = new int[]
private static int[] m_EastFrames = new[]
{
0x0007,
0x000A,
@ -256,7 +256,7 @@ namespace Server
0x0209
};
private static int[] m_WestFrames = new int[]
private static int[] m_WestFrames = new[]
{
0x0007,
0x000C,

View file

@ -481,7 +481,7 @@ namespace Server
{
Type active = this.Active;
MethodInfo compareTo = active.GetMethod( "CompareTo", new Type[] { active } );
MethodInfo compareTo = active.GetMethod( "CompareTo", new[] { active } );
if ( compareTo == null )
{
@ -517,7 +517,7 @@ namespace Server
if ( ifaces.Length > 0 )
{
compareTo = ifaces[0].GetMethod( "CompareTo", new Type[] { active } );
compareTo = ifaces[0].GetMethod( "CompareTo", new[] { active } );
}
else
{
@ -527,7 +527,7 @@ namespace Server
}, null );
if ( ifaces.Length > 0 )
compareTo = ifaces[0].GetMethod( "CompareTo", new Type[] { active } );
compareTo = ifaces[0].GetMethod( "CompareTo", new[] { active } );
}
}

View file

@ -5,7 +5,7 @@ namespace Server.Items
[FlippableAttribute( 0x236E, 0x2371 )]
public class LightOfTheWinterSolstice : Item
{
private static string[] m_StaffNames = new string[]
private static string[] m_StaffNames = new[]
{
"Aenima",
"Alkiser",

View file

@ -113,7 +113,7 @@ namespace Server.Items
{
from.SendMessage( "You may not throw snow here." );
}
else if ( pack != null && pack.FindItemByType( new Type[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
else if ( pack != null && pack.FindItemByType( new[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
{
if ( from.BeginAction( typeof( SnowPile ) ) )
{

View file

@ -99,7 +99,7 @@ namespace Server.Items
{
from.SendMessage( "You may not throw snow here." );
}
else if ( pack?.FindItemByType( new Type[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
else if ( pack?.FindItemByType( new[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
{
if ( from.BeginAction( typeof( SnowPile ) ) )
{

View file

@ -31,7 +31,7 @@ namespace Server.Guilds
public class RankDefinition
{
public static RankDefinition[] Ranks = new RankDefinition[]
public static RankDefinition[] Ranks = new[]
{
new RankDefinition( 1062963, 0, RankFlags.None ), //Ronin
new RankDefinition( 1062962, 1, RankFlags.Member ), //Member

View file

@ -32,7 +32,7 @@ namespace Server.Misc
m_RatmanSpeech.Flags = IHSFlags.All;
m_RatmanSpeech.Keywords = new string[]
m_RatmanSpeech.Keywords = new[]
{
"meat", "gold", "kill", "killing", "slay",
"sword", "axe", "spell", "magic", "spells",
@ -47,7 +47,7 @@ namespace Server.Misc
"jerk", "fool", "foolish", "ugly", "insult", "scum"
};
m_RatmanSpeech.Responses = new string[]
m_RatmanSpeech.Responses = new[]
{
"meat", "kill", "pound", "crush", "yum yum",
"crunch", "destroy", "murder", "eat", "munch",
@ -61,7 +61,7 @@ namespace Server.Misc
"loser", "lose", "scum"
};
m_RatmanSpeech.Syllables = new string[]
m_RatmanSpeech.Syllables = new[]
{
"skrit",
@ -108,7 +108,7 @@ namespace Server.Misc
m_OrcSpeech.Flags = IHSFlags.All;
m_OrcSpeech.Keywords = new string[]
m_OrcSpeech.Keywords = new[]
{
"meat", "gold", "kill", "killing", "slay",
"sword", "axe", "spell", "magic", "spells",
@ -123,7 +123,7 @@ namespace Server.Misc
"jerk", "fool", "foolish", "ugly", "insult", "scum"
};
m_OrcSpeech.Responses = new string[]
m_OrcSpeech.Responses = new[]
{
"meat", "kill", "pound", "crush", "yum yum",
"crunch", "destroy", "murder", "eat", "munch",
@ -137,7 +137,7 @@ namespace Server.Misc
"loser", "lose", "scum"
};
m_OrcSpeech.Syllables = new string[]
m_OrcSpeech.Syllables = new[]
{
"bu", "du", "fu", "ju", "gu",
"ulg", "gug", "gub", "gur", "oog",
@ -195,7 +195,7 @@ namespace Server.Misc
m_LizardmanSpeech.Flags = IHSFlags.All;
m_LizardmanSpeech.Keywords = new string[]
m_LizardmanSpeech.Keywords = new[]
{
"meat", "gold", "kill", "killing", "slay",
"sword", "axe", "spell", "magic", "spells",
@ -210,7 +210,7 @@ namespace Server.Misc
"jerk", "fool", "foolish", "ugly", "insult", "scum"
};
m_LizardmanSpeech.Responses = new string[]
m_LizardmanSpeech.Responses = new[]
{
"meat", "kill", "pound", "crush", "yum yum",
"crunch", "destroy", "murder", "eat", "munch",
@ -224,7 +224,7 @@ namespace Server.Misc
"loser", "lose", "scum"
};
m_LizardmanSpeech.Syllables = new string[]
m_LizardmanSpeech.Syllables = new[]
{
"ss", "sth", "iss", "is", "ith", "kth",
"sith", "this", "its", "sit", "tis", "tsi",
@ -259,7 +259,7 @@ namespace Server.Misc
m_WispSpeech.Flags = IHSFlags.OnMovement;
m_WispSpeech.Syllables = new string[]
m_WispSpeech.Syllables = new[]
{
"b", "c", "d", "f", "g", "h", "i",
"j", "k", "l", "m", "n", "p", "r",

View file

@ -8,7 +8,7 @@ namespace Server
#region List definitions
#region Mondain's Legacy
private static Type[] m_MLWeaponTypes = new Type[]
private static Type[] m_MLWeaponTypes = new[]
{
typeof( AssassinSpike ), typeof( DiamondMace ), typeof( ElvenMachete ),
typeof( ElvenSpellblade ), typeof( Leafblade ), typeof( OrnateAxe ),
@ -18,14 +18,14 @@ namespace Server
public static Type[] MLWeaponTypes => m_MLWeaponTypes;
private static Type[] m_MLRangedWeaponTypes = new Type[]
private static Type[] m_MLRangedWeaponTypes = new[]
{
typeof( ElvenCompositeLongbow ), typeof( MagicalShortbow )
};
public static Type[] MLRangedWeaponTypes => m_MLRangedWeaponTypes;
private static Type[] m_MLArmorTypes = new Type[]
private static Type[] m_MLArmorTypes = new[]
{
typeof( Circlet ), typeof( GemmedCirclet ), typeof( LeafTonlet ),
typeof( RavenHelm ), typeof( RoyalCirclet ), typeof( VultureHelm ),
@ -39,7 +39,7 @@ namespace Server
public static Type[] MLArmorTypes => m_MLArmorTypes;
private static Type[] m_MLClothingTypes = new Type[]
private static Type[] m_MLClothingTypes = new[]
{
typeof( MaleElvenRobe ), typeof( FemaleElvenRobe ), typeof( ElvenPants ),
typeof( ElvenShirt ), typeof( ElvenDarkShirt ), typeof( ElvenBoots ),
@ -50,7 +50,7 @@ namespace Server
#endregion
private static Type[] m_SEWeaponTypes = new Type[]
private static Type[] m_SEWeaponTypes = new[]
{
typeof( Bokuto ), typeof( Daisho ), typeof( Kama ),
typeof( Lajatang ), typeof( NoDachi ), typeof( Nunchaku ),
@ -60,7 +60,7 @@ namespace Server
public static Type[] SEWeaponTypes => m_SEWeaponTypes;
private static Type[] m_AosWeaponTypes = new Type[]
private static Type[] m_AosWeaponTypes = new[]
{
typeof( Scythe ), typeof( BoneHarvester ), typeof( Scepter ),
typeof( BladedStaff ), typeof( Pike ), typeof( DoubleBladedStaff ),
@ -69,7 +69,7 @@ namespace Server
public static Type[] AosWeaponTypes => m_AosWeaponTypes;
private static Type[] m_WeaponTypes = new Type[]
private static Type[] m_WeaponTypes = new[]
{
typeof( Axe ), typeof( BattleAxe ), typeof( DoubleAxe ),
typeof( ExecutionersAxe ), typeof( Hatchet ), typeof( LargeBattleAxe ),
@ -87,28 +87,28 @@ namespace Server
public static Type[] WeaponTypes => m_WeaponTypes;
private static Type[] m_SERangedWeaponTypes = new Type[]
private static Type[] m_SERangedWeaponTypes = new[]
{
typeof( Yumi )
};
public static Type[] SERangedWeaponTypes => m_SERangedWeaponTypes;
private static Type[] m_AosRangedWeaponTypes = new Type[]
private static Type[] m_AosRangedWeaponTypes = new[]
{
typeof( CompositeBow ), typeof( RepeatingCrossbow )
};
public static Type[] AosRangedWeaponTypes => m_AosRangedWeaponTypes;
private static Type[] m_RangedWeaponTypes = new Type[]
private static Type[] m_RangedWeaponTypes = new[]
{
typeof( Bow ), typeof( Crossbow ), typeof( HeavyCrossbow )
};
public static Type[] RangedWeaponTypes => m_RangedWeaponTypes;
private static Type[] m_SEArmorTypes = new Type[]
private static Type[] m_SEArmorTypes = new[]
{
typeof( ChainHatsuburi ), typeof( LeatherDo ), typeof( LeatherHaidate ),
typeof( LeatherHiroSode ), typeof( LeatherJingasa ), typeof( LeatherMempo ),
@ -124,7 +124,7 @@ namespace Server
public static Type[] SEArmorTypes => m_SEArmorTypes;
private static Type[] m_ArmorTypes = new Type[]
private static Type[] m_ArmorTypes = new[]
{
typeof( BoneArms ), typeof( BoneChest ), typeof( BoneGloves ),
typeof( BoneLegs ), typeof( BoneHelm ), typeof( ChainChest ),
@ -144,14 +144,14 @@ namespace Server
public static Type[] ArmorTypes => m_ArmorTypes;
private static Type[] m_AosShieldTypes = new Type[]
private static Type[] m_AosShieldTypes = new[]
{
typeof( ChaosShield ), typeof( OrderShield )
};
public static Type[] AosShieldTypes => m_AosShieldTypes;
private static Type[] m_ShieldTypes = new Type[]
private static Type[] m_ShieldTypes = new[]
{
typeof( BronzeShield ), typeof( Buckler ), typeof( HeaterShield ),
typeof( MetalShield ), typeof( MetalKiteShield ), typeof( WoodenKiteShield ),
@ -160,7 +160,7 @@ namespace Server
public static Type[] ShieldTypes => m_ShieldTypes;
private static Type[] m_GemTypes = new Type[]
private static Type[] m_GemTypes = new[]
{
typeof( Amber ), typeof( Amethyst ), typeof( Citrine ),
typeof( Diamond ), typeof( Emerald ), typeof( Ruby ),
@ -169,7 +169,7 @@ namespace Server
public static Type[] GemTypes => m_GemTypes;
private static Type[] m_JewelryTypes = new Type[]
private static Type[] m_JewelryTypes = new[]
{
typeof( GoldRing ), typeof( GoldBracelet ),
typeof( SilverRing ), typeof( SilverBracelet )
@ -177,7 +177,7 @@ namespace Server
public static Type[] JewelryTypes => m_JewelryTypes;
private static Type[] m_RegTypes = new Type[]
private static Type[] m_RegTypes = new[]
{
typeof( BlackPearl ), typeof( Bloodmoss ), typeof( Garlic ),
typeof( Ginseng ), typeof( MandrakeRoot ), typeof( Nightshade ),
@ -186,7 +186,7 @@ namespace Server
public static Type[] RegTypes => m_RegTypes;
private static Type[] m_NecroRegTypes = new Type[]
private static Type[] m_NecroRegTypes = new[]
{
typeof( BatWing ), typeof( GraveDust ), typeof( DaemonBlood ),
typeof( NoxCrystal ), typeof( PigIron )
@ -194,7 +194,7 @@ namespace Server
public static Type[] NecroRegTypes => m_NecroRegTypes;
private static Type[] m_PotionTypes = new Type[]
private static Type[] m_PotionTypes = new[]
{
typeof( AgilityPotion ), typeof( StrengthPotion ), typeof( RefreshPotion ),
typeof( LesserCurePotion ), typeof( LesserHealPotion ), typeof( LesserPoisonPotion )
@ -202,14 +202,14 @@ namespace Server
public static Type[] PotionTypes => m_PotionTypes;
private static Type[] m_SEInstrumentTypes = new Type[]
private static Type[] m_SEInstrumentTypes = new[]
{
typeof( BambooFlute )
};
public static Type[] SEInstrumentTypes => m_SEInstrumentTypes;
private static Type[] m_InstrumentTypes = new Type[]
private static Type[] m_InstrumentTypes = new[]
{
typeof( Drums ), typeof( Harp ), typeof( LapHarp ),
typeof( Lute ), typeof( Tambourine ), typeof( TambourineTassel )
@ -217,7 +217,7 @@ namespace Server
public static Type[] InstrumentTypes => m_InstrumentTypes;
private static Type[] m_StatueTypes = new Type[]
private static Type[] m_StatueTypes = new[]
{
typeof( StatueSouth ), typeof( StatueSouth2 ), typeof( StatueNorth ),
typeof( StatueWest ), typeof( StatueEast ), typeof( StatueEast2 ),
@ -226,7 +226,7 @@ namespace Server
public static Type[] StatueTypes => m_StatueTypes;
private static Type[] m_RegularScrollTypes = new Type[]
private static Type[] m_RegularScrollTypes = new[]
{
typeof( ReactiveArmorScroll ), typeof( ClumsyScroll ), typeof( CreateFoodScroll ), typeof( FeeblemindScroll ),
typeof( HealScroll ), typeof( MagicArrowScroll ), typeof( NightSightScroll ), typeof( WeakenScroll ),
@ -246,7 +246,7 @@ namespace Server
typeof( SummonDaemonScroll ), typeof( SummonEarthElementalScroll ), typeof( SummonFireElementalScroll ), typeof( SummonWaterElementalScroll )
};
private static Type[] m_NecromancyScrollTypes = new Type[]
private static Type[] m_NecromancyScrollTypes = new[]
{
typeof( AnimateDeadScroll ), typeof( BloodOathScroll ), typeof( CorpseSkinScroll ), typeof( CurseWeaponScroll ),
typeof( EvilOmenScroll ), typeof( HorrificBeastScroll ), typeof( LichFormScroll ), typeof( MindRotScroll ),
@ -254,7 +254,7 @@ namespace Server
typeof( VampiricEmbraceScroll ), typeof( VengefulSpiritScroll ), typeof( WitherScroll ), typeof( WraithFormScroll )
};
private static Type[] m_SENecromancyScrollTypes = new Type[]
private static Type[] m_SENecromancyScrollTypes = new[]
{
typeof( AnimateDeadScroll ), typeof( BloodOathScroll ), typeof( CorpseSkinScroll ), typeof( CurseWeaponScroll ),
typeof( EvilOmenScroll ), typeof( HorrificBeastScroll ), typeof( LichFormScroll ), typeof( MindRotScroll ),
@ -266,7 +266,7 @@ namespace Server
private static Type[] m_PaladinScrollTypes = new Type[0];
#region Mondain's Legacy
private static Type[] m_ArcanistScrollTypes = new Type[]
private static Type[] m_ArcanistScrollTypes = new[]
{
typeof( ArcaneCircleScroll ), typeof( GiftOfRenewalScroll ), typeof( ImmolatingWeaponScroll ), typeof( AttuneWeaponScroll ),
typeof( ThunderstormScroll ), typeof( NatureFuryScroll ), /*typeof( SummonFeyScroll ), typeof( SummonFiendScroll ),*/
@ -285,7 +285,7 @@ namespace Server
#endregion
private static Type[] m_GrimmochJournalTypes = new Type[]
private static Type[] m_GrimmochJournalTypes = new[]
{
typeof( GrimmochJournal1 ), typeof( GrimmochJournal2 ), typeof( GrimmochJournal3 ),
typeof( GrimmochJournal6 ), typeof( GrimmochJournal7 ), typeof( GrimmochJournal11 ),
@ -294,7 +294,7 @@ namespace Server
public static Type[] GrimmochJournalTypes => m_GrimmochJournalTypes;
private static Type[] m_LysanderNotebookTypes = new Type[]
private static Type[] m_LysanderNotebookTypes = new[]
{
typeof( LysanderNotebook1 ), typeof( LysanderNotebook2 ), typeof( LysanderNotebook3 ),
typeof( LysanderNotebook7 ), typeof( LysanderNotebook8 ), typeof( LysanderNotebook11 )
@ -302,7 +302,7 @@ namespace Server
public static Type[] LysanderNotebookTypes => m_LysanderNotebookTypes;
private static Type[] m_TavarasJournalTypes = new Type[]
private static Type[] m_TavarasJournalTypes = new[]
{
typeof( TavarasJournal1 ), typeof( TavarasJournal2 ), typeof( TavarasJournal3 ),
typeof( TavarasJournal6 ), typeof( TavarasJournal7 ), typeof( TavarasJournal8 ),
@ -314,27 +314,27 @@ namespace Server
public static Type[] TavarasJournalTypes => m_TavarasJournalTypes;
private static Type[] m_NewWandTypes = new Type[]
private static Type[] m_NewWandTypes = new[]
{
typeof( FireballWand ), typeof( LightningWand ), typeof( MagicArrowWand ),
typeof( GreaterHealWand ), typeof( HarmWand ), typeof( HealWand )
};
public static Type[] NewWandTypes => m_NewWandTypes;
private static Type[] m_WandTypes = new Type[]
private static Type[] m_WandTypes = new[]
{
typeof( ClumsyWand ), typeof( FeebleWand ),
typeof( ManaDrainWand ), typeof( WeaknessWand )
};
public static Type[] WandTypes => m_WandTypes;
private static Type[] m_OldWandTypes = new Type[]
private static Type[] m_OldWandTypes = new[]
{
typeof( IDWand )
};
public static Type[] OldWandTypes => m_OldWandTypes;
private static Type[] m_SEClothingTypes = new Type[]
private static Type[] m_SEClothingTypes = new[]
{
typeof( ClothNinjaJacket ), typeof( FemaleKimono ), typeof( Hakama ),
typeof( HakamaShita ), typeof( JinBaori ), typeof( Kamishimo ),
@ -344,7 +344,7 @@ namespace Server
public static Type[] SEClothingTypes => m_SEClothingTypes;
private static Type[] m_AosClothingTypes = new Type[]
private static Type[] m_AosClothingTypes = new[]
{
typeof( FurSarong ), typeof( FurCape ), typeof( FlowerGarland ),
typeof( GildedDress ), typeof( FurBoots ), typeof( FormalShirt ),
@ -352,7 +352,7 @@ namespace Server
public static Type[] AosClothingTypes => m_AosClothingTypes;
private static Type[] m_ClothingTypes = new Type[]
private static Type[] m_ClothingTypes = new[]
{
typeof( Cloak ),
typeof( Bonnet ), typeof( Cap ), typeof( FeatheredHat ),
@ -369,21 +369,21 @@ namespace Server
};
public static Type[] ClothingTypes => m_ClothingTypes;
private static Type[] m_SEHatTypes = new Type[]
private static Type[] m_SEHatTypes = new[]
{
typeof( ClothNinjaHood ), typeof( Kasa )
};
public static Type[] SEHatTypes => m_SEHatTypes;
private static Type[] m_AosHatTypes = new Type[]
private static Type[] m_AosHatTypes = new[]
{
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 Type[]
private static Type[] m_HatTypes = new[]
{
typeof( SkullCap ), typeof( Bandana ), typeof( FloppyHat ),
typeof( Cap ), typeof( WideBrimHat ), typeof( StrawHat ),
@ -393,7 +393,7 @@ namespace Server
public static Type[] HatTypes => m_HatTypes;
private static Type[] m_LibraryBookTypes = new Type[]
private static Type[] m_LibraryBookTypes = new[]
{
typeof( GrammarOfOrcish ), typeof( CallToAnarchy ), typeof( ArmsAndWeaponsPrimer ),
typeof( SongOfSamlethe ), typeof( TaleOfThreeTribes ), typeof( GuideToGuilds ),

View file

@ -92,38 +92,38 @@ namespace Server
}
}
public static readonly LootPackItem[] Gold = new LootPackItem[]
public static readonly LootPackItem[] Gold = new[]
{
new LootPackItem( typeof( Gold ), 1 )
};
public static readonly LootPackItem[] Instruments = new LootPackItem[]
public static readonly LootPackItem[] Instruments = new[]
{
new LootPackItem( typeof( BaseInstrument ), 1 )
};
public static readonly LootPackItem[] LowScrollItems = new LootPackItem[]
public static readonly LootPackItem[] LowScrollItems = new[]
{
new LootPackItem( typeof( ClumsyScroll ), 1 )
};
public static readonly LootPackItem[] MedScrollItems = new LootPackItem[]
public static readonly LootPackItem[] MedScrollItems = new[]
{
new LootPackItem( typeof( ArchCureScroll ), 1 )
};
public static readonly LootPackItem[] HighScrollItems = new LootPackItem[]
public static readonly LootPackItem[] HighScrollItems = new[]
{
new LootPackItem( typeof( SummonAirElementalScroll ), 1 )
};
public static readonly LootPackItem[] GemItems = new LootPackItem[]
public static readonly LootPackItem[] GemItems = new[]
{
new LootPackItem( typeof( Amber ), 1 )
};
public static readonly LootPackItem[] PotionItems = new LootPackItem[]
public static readonly LootPackItem[] PotionItems = new[]
{
new LootPackItem( typeof( AgilityPotion ), 1 ),
new LootPackItem( typeof( StrengthPotion ), 1 ),
@ -134,7 +134,7 @@ namespace Server
};
#region Old Magic Items
public static readonly LootPackItem[] OldMagicItems = new LootPackItem[]
public static readonly LootPackItem[] OldMagicItems = new[]
{
new LootPackItem( typeof( BaseJewel ), 1 ),
new LootPackItem( typeof( BaseArmor ), 4 ),
@ -145,7 +145,7 @@ namespace Server
#endregion
#region AOS Magic Items
public static readonly LootPackItem[] AosMagicItemsPoor = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsPoor = new[]
{
new LootPackItem( typeof( BaseWeapon ), 3 ),
new LootPackItem( typeof( BaseRanged ), 1 ),
@ -154,7 +154,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 2 )
};
public static readonly LootPackItem[] AosMagicItemsMeagerType1 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsMeagerType1 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 56 ),
new LootPackItem( typeof( BaseRanged ), 14 ),
@ -163,7 +163,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 42 )
};
public static readonly LootPackItem[] AosMagicItemsMeagerType2 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsMeagerType2 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 28 ),
new LootPackItem( typeof( BaseRanged ), 7 ),
@ -172,7 +172,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 21 )
};
public static readonly LootPackItem[] AosMagicItemsAverageType1 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsAverageType1 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 90 ),
new LootPackItem( typeof( BaseRanged ), 23 ),
@ -181,7 +181,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 68 )
};
public static readonly LootPackItem[] AosMagicItemsAverageType2 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsAverageType2 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 54 ),
new LootPackItem( typeof( BaseRanged ), 13 ),
@ -190,7 +190,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 40 )
};
public static readonly LootPackItem[] AosMagicItemsRichType1 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsRichType1 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 211 ),
new LootPackItem( typeof( BaseRanged ), 53 ),
@ -199,7 +199,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 158 )
};
public static readonly LootPackItem[] AosMagicItemsRichType2 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsRichType2 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 170 ),
new LootPackItem( typeof( BaseRanged ), 43 ),
@ -208,7 +208,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 128 )
};
public static readonly LootPackItem[] AosMagicItemsFilthyRichType1 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsFilthyRichType1 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 219 ),
new LootPackItem( typeof( BaseRanged ), 55 ),
@ -217,7 +217,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 164 )
};
public static readonly LootPackItem[] AosMagicItemsFilthyRichType2 = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsFilthyRichType2 = new[]
{
new LootPackItem( typeof( BaseWeapon ), 239 ),
new LootPackItem( typeof( BaseRanged ), 60 ),
@ -226,7 +226,7 @@ namespace Server
new LootPackItem( typeof( BaseJewel ), 45 )
};
public static readonly LootPackItem[] AosMagicItemsUltraRich = new LootPackItem[]
public static readonly LootPackItem[] AosMagicItemsUltraRich = new[]
{
new LootPackItem( typeof( BaseWeapon ), 276 ),
new LootPackItem( typeof( BaseRanged ), 69 ),
@ -237,7 +237,7 @@ namespace Server
#endregion
#region ML definitions
public static readonly LootPack MlRich = new LootPack( new LootPackEntry[]
public static readonly LootPack MlRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "4d50+450" ),
new LootPackEntry( false, AosMagicItemsRichType1, 100.00, 1, 3, 0, 75 ),
@ -248,14 +248,14 @@ namespace Server
#endregion
#region SE definitions
public static readonly LootPack SePoor = new LootPack( new LootPackEntry[]
public static readonly LootPack SePoor = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "2d10+20" ),
new LootPackEntry( false, AosMagicItemsPoor, 1.00, 1, 5, 0, 100 ),
new LootPackEntry( false, Instruments, 0.02, 1 )
} );
public static readonly LootPack SeMeager = new LootPack( new LootPackEntry[]
public static readonly LootPack SeMeager = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "4d10+40" ),
new LootPackEntry( false, AosMagicItemsMeagerType1, 20.40, 1, 2, 0, 50 ),
@ -263,7 +263,7 @@ namespace Server
new LootPackEntry( false, Instruments, 0.10, 1 )
} );
public static readonly LootPack SeAverage = new LootPack( new LootPackEntry[]
public static readonly LootPack SeAverage = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "8d10+100" ),
new LootPackEntry( false, AosMagicItemsAverageType1, 32.80, 1, 3, 0, 50 ),
@ -272,7 +272,7 @@ namespace Server
new LootPackEntry( false, Instruments, 0.40, 1 )
} );
public static readonly LootPack SeRich = new LootPack( new LootPackEntry[]
public static readonly LootPack SeRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "15d10+225" ),
new LootPackEntry( false, AosMagicItemsRichType1, 76.30, 1, 4, 0, 75 ),
@ -281,7 +281,7 @@ namespace Server
new LootPackEntry( false, Instruments, 1.00, 1 )
} );
public static readonly LootPack SeFilthyRich = new LootPack( new LootPackEntry[]
public static readonly LootPack SeFilthyRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "3d100+400" ),
new LootPackEntry( false, AosMagicItemsFilthyRichType1, 79.50, 1, 5, 0, 100 ),
@ -290,7 +290,7 @@ namespace Server
new LootPackEntry( false, Instruments, 2.00, 1 )
} );
public static readonly LootPack SeUltraRich = new LootPack( new LootPackEntry[]
public static readonly LootPack SeUltraRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "6d100+600" ),
new LootPackEntry( false, AosMagicItemsUltraRich, 100.00, 1, 5, 25, 100 ),
@ -302,7 +302,7 @@ namespace Server
new LootPackEntry( false, Instruments, 2.00, 1 )
} );
public static readonly LootPack SeSuperBoss = new LootPack( new LootPackEntry[]
public static readonly LootPack SeSuperBoss = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "10d100+800" ),
new LootPackEntry( false, AosMagicItemsUltraRich, 100.00, 1, 5, 25, 100 ),
@ -320,14 +320,14 @@ namespace Server
#endregion
#region AOS definitions
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]
public static readonly LootPack AosPoor = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "1d10+10" ),
new LootPackEntry( false, AosMagicItemsPoor, 0.02, 1, 5, 0, 90 ),
new LootPackEntry( false, Instruments, 0.02, 1 )
} );
public static readonly LootPack AosMeager = new LootPack( new LootPackEntry[]
public static readonly LootPack AosMeager = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "3d10+20" ),
new LootPackEntry( false, AosMagicItemsMeagerType1, 1.00, 1, 2, 0, 10 ),
@ -335,7 +335,7 @@ namespace Server
new LootPackEntry( false, Instruments, 0.10, 1 )
} );
public static readonly LootPack AosAverage = new LootPack( new LootPackEntry[]
public static readonly LootPack AosAverage = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d10+50" ),
new LootPackEntry( false, AosMagicItemsAverageType1, 5.00, 1, 4, 0, 20 ),
@ -344,7 +344,7 @@ namespace Server
new LootPackEntry( false, Instruments, 0.40, 1 )
} );
public static readonly LootPack AosRich = new LootPack( new LootPackEntry[]
public static readonly LootPack AosRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "10d10+150" ),
new LootPackEntry( false, AosMagicItemsRichType1, 20.00, 1, 4, 0, 40 ),
@ -353,7 +353,7 @@ namespace Server
new LootPackEntry( false, Instruments, 1.00, 1 )
} );
public static readonly LootPack AosFilthyRich = new LootPack( new LootPackEntry[]
public static readonly LootPack AosFilthyRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "2d100+200" ),
new LootPackEntry( false, AosMagicItemsFilthyRichType1, 33.00, 1, 4, 0, 50 ),
@ -363,7 +363,7 @@ namespace Server
new LootPackEntry( false, Instruments, 2.00, 1 )
} );
public static readonly LootPack AosUltraRich = new LootPack( new LootPackEntry[]
public static readonly LootPack AosUltraRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d100+500" ),
new LootPackEntry( false, AosMagicItemsUltraRich, 100.00, 1, 5, 25, 100 ),
@ -375,7 +375,7 @@ namespace Server
new LootPackEntry( false, Instruments, 2.00, 1 )
} );
public static readonly LootPack AosSuperBoss = new LootPack( new LootPackEntry[]
public static readonly LootPack AosSuperBoss = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d100+500" ),
new LootPackEntry( false, AosMagicItemsUltraRich, 100.00, 1, 5, 25, 100 ),
@ -393,13 +393,13 @@ namespace Server
#endregion
#region Pre-AOS definitions
public static readonly LootPack OldPoor = new LootPack( new LootPackEntry[]
public static readonly LootPack OldPoor = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "1d25" ),
new LootPackEntry( false, Instruments, 0.02, 1 )
} );
public static readonly LootPack OldMeager = new LootPack( new LootPackEntry[]
public static readonly LootPack OldMeager = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d10+25" ),
new LootPackEntry( false, Instruments, 0.10, 1 ),
@ -407,7 +407,7 @@ namespace Server
new LootPackEntry( false, OldMagicItems, 0.20, 1, 1, 10, 70 )
} );
public static readonly LootPack OldAverage = new LootPack( new LootPackEntry[]
public static readonly LootPack OldAverage = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "10d10+50" ),
new LootPackEntry( false, Instruments, 0.40, 1 ),
@ -416,7 +416,7 @@ namespace Server
new LootPackEntry( false, OldMagicItems, 0.50, 1, 1, 40, 100 )
} );
public static readonly LootPack OldRich = new LootPack( new LootPackEntry[]
public static readonly LootPack OldRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "10d10+250" ),
new LootPackEntry( false, Instruments, 1.00, 1 ),
@ -425,7 +425,7 @@ namespace Server
new LootPackEntry( false, OldMagicItems, 1.00, 1, 1, 70, 100 )
} );
public static readonly LootPack OldFilthyRich = new LootPack( new LootPackEntry[]
public static readonly LootPack OldFilthyRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "2d125+400" ),
new LootPackEntry( false, Instruments, 2.00, 1 ),
@ -435,7 +435,7 @@ namespace Server
new LootPackEntry( false, OldMagicItems, 5.00, 1, 1, 80, 100 )
} );
public static readonly LootPack OldUltraRich = new LootPack( new LootPackEntry[]
public static readonly LootPack OldUltraRich = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d100+500" ),
new LootPackEntry( false, Instruments, 2.00, 1 ),
@ -447,7 +447,7 @@ namespace Server
new LootPackEntry( false, OldMagicItems, 100.00, 1, 1, 60, 100 )
} );
public static readonly LootPack OldSuperBoss = new LootPack( new LootPackEntry[]
public static readonly LootPack OldSuperBoss = new LootPack( new[]
{
new LootPackEntry( true, Gold, 100.00, "5d100+500" ),
new LootPackEntry( false, Instruments, 2.00, 1 ),
@ -475,27 +475,27 @@ namespace Server
#endregion
public static readonly LootPack LowScrolls = new LootPack( new LootPackEntry[]
public static readonly LootPack LowScrolls = new LootPack( new[]
{
new LootPackEntry( false, LowScrollItems, 100.00, 1 )
} );
public static readonly LootPack MedScrolls = new LootPack( new LootPackEntry[]
public static readonly LootPack MedScrolls = new LootPack( new[]
{
new LootPackEntry( false, MedScrollItems, 100.00, 1 )
} );
public static readonly LootPack HighScrolls = new LootPack( new LootPackEntry[]
public static readonly LootPack HighScrolls = new LootPack( new[]
{
new LootPackEntry( false, HighScrollItems, 100.00, 1 )
} );
public static readonly LootPack Gems = new LootPack( new LootPackEntry[]
public static readonly LootPack Gems = new LootPack( new[]
{
new LootPackEntry( false, GemItems, 100.00, 1 )
} );
public static readonly LootPack Potions = new LootPack( new LootPackEntry[]
public static readonly LootPack Potions = new LootPack( new[]
{
new LootPackEntry( false, PotionItems, 100.00, 1 )
} );
@ -806,26 +806,26 @@ namespace Server
set => m_Chance = value;
}
private static Type[] m_BlankTypes = new Type[]{ typeof( BlankScroll ) };
private static Type[][] m_NecroTypes = new Type[][]
{
new Type[] // low
private static Type[] m_BlankTypes = new[]{ typeof( BlankScroll ) };
private static Type[][] m_NecroTypes = new[]
{
new[] // low
{
typeof( AnimateDeadScroll ), typeof( BloodOathScroll ), typeof( CorpseSkinScroll ), typeof( CurseWeaponScroll ),
typeof( EvilOmenScroll ), typeof( HorrificBeastScroll ), typeof( MindRotScroll ), typeof( PainSpikeScroll ),
typeof( SummonFamiliarScroll ), typeof( WraithFormScroll )
},
new Type[] // med
new[] // med
{
typeof( LichFormScroll ), typeof( PoisonStrikeScroll ), typeof( StrangleScroll ), typeof( WitherScroll )
},
((Core.SE) ?
new Type[] // high
new[] // high
{
typeof( VengefulSpiritScroll ), typeof( VampiricEmbraceScroll ), typeof( ExorcismScroll )
} :
new Type[] // high
new[] // high
{
typeof( VengefulSpiritScroll ), typeof( VampiricEmbraceScroll )
})

View file

@ -8,7 +8,7 @@ namespace Server
{
public static Type[] Artifacts => m_Artifacts;
private static Type[] m_Artifacts = new Type[]
private static Type[] m_Artifacts = new[]
{
typeof( AegisOfGrace ), typeof( BladeDance ), typeof( BloodwoodSpirit ), typeof( Bonesmasher ),
typeof( Boomstick ), typeof( BrightsightLenses ), typeof( FeyLeggings ), typeof( FleshRipper ),

View file

@ -4,7 +4,7 @@ namespace Server.Misc
{
public class NameVerification
{
public static readonly char[] SpaceDashPeriodQuote = new char[]
public static readonly char[] SpaceDashPeriodQuote = new[]
{
' ', '-', '.', '\''
};
@ -113,7 +113,7 @@ namespace Server.Misc
public static string[] StartDisallowed => m_StartDisallowed;
public static string[] Disallowed => m_Disallowed;
private static string[] m_StartDisallowed = new string[]
private static string[] m_StartDisallowed = new[]
{
"seer",
"counselor",
@ -123,7 +123,7 @@ namespace Server.Misc
"lord"
};
private static string[] m_Disallowed = new string[]
private static string[] m_Disallowed = new[]
{
"jigaboo",
"chigaboo",

View file

@ -63,14 +63,14 @@ namespace Server.Misc
public static string[] StartDisallowed => m_StartDisallowed;
public static string[] Disallowed => m_Disallowed;
private static char[] m_Exceptions = new char[]
private static char[] m_Exceptions = new[]
{
' ', '-', '.', '\'', '"', ',', '_', '+', '=', '~', '`', '!', '^', '*', '\\', '/', ';', ':', '<', '>', '[', ']', '{', '}', '?', '|', '(', ')', '%', '$', '&', '#', '@'
};
private static string[] m_StartDisallowed = new string[]{};
private static string[] m_Disallowed = new string[]
private static string[] m_Disallowed = new[]
{
"jigaboo",
"chigaboo",

View file

@ -123,7 +123,7 @@ namespace Server.Misc
private class Elf : Race
{
private static int[] m_SkinHues = new int[]
private static int[] m_SkinHues = new[]
{
0x0BF, 0x24D, 0x24E, 0x24F, 0x353, 0x361, 0x367, 0x374,
0x375, 0x376, 0x381, 0x382, 0x383, 0x384, 0x385, 0x389,
@ -131,7 +131,7 @@ namespace Server.Misc
0x51D, 0x53F, 0x579, 0x76B, 0x76C, 0x76D, 0x835, 0x903
};
private static int[] m_HairHues = new int[]
private static int[] m_HairHues = new[]
{
0x034, 0x035, 0x036, 0x037, 0x038, 0x039, 0x058, 0x08E,
0x08F, 0x090, 0x091, 0x092, 0x101, 0x159, 0x15A, 0x15B,
@ -288,7 +288,7 @@ namespace Server.Misc
}
// Todo Finish body hues
private static readonly int[] m_BodyHues = new int[]
private static readonly int[] m_BodyHues = new[]
{
0x86DB, 0x86DC, 0x86DD, 0x86DE,
0x86DF, 0x86E0, 0x86E1, 0x86E2,
@ -308,7 +308,7 @@ namespace Server.Misc
return m_BodyHues[Utility.Random(m_BodyHues.Length)] | 0x8000;
}
private static readonly int[] m_HornHues = new int[]
private static readonly int[] m_HornHues = new[]
{
0x709, 0x70B, 0x70D, 0x70F, 0x711, 0x763,
0x765, 0x768, 0x76B, 0x6F3, 0x6F1, 0x6EF,

View file

@ -468,7 +468,7 @@ namespace Server.Items
public class CraftResources
{
private static CraftResourceInfo[] m_MetalInfo = new CraftResourceInfo[]
private static CraftResourceInfo[] m_MetalInfo = new[]
{
new CraftResourceInfo( 0x000, 1053109, "Iron", CraftAttributeInfo.Blank, CraftResource.Iron, typeof( IronIngot ), typeof( IronOre ), typeof( Granite ) ),
new CraftResourceInfo( 0x973, 1053108, "Dull Copper", CraftAttributeInfo.DullCopper, CraftResource.DullCopper, typeof( DullCopperIngot ), typeof( DullCopperOre ), typeof( DullCopperGranite ) ),
@ -481,7 +481,7 @@ namespace Server.Items
new CraftResourceInfo( 0x8AB, 1053101, "Valorite", CraftAttributeInfo.Valorite, CraftResource.Valorite, typeof( ValoriteIngot ), typeof( ValoriteOre ), typeof( ValoriteGranite ) ),
};
private static CraftResourceInfo[] m_ScaleInfo = new CraftResourceInfo[]
private static CraftResourceInfo[] m_ScaleInfo = new[]
{
new CraftResourceInfo( 0x66D, 1053129, "Red Scales", CraftAttributeInfo.RedScales, CraftResource.RedScales, typeof( RedScales ) ),
new CraftResourceInfo( 0x8A8, 1053130, "Yellow Scales", CraftAttributeInfo.YellowScales, CraftResource.YellowScales, typeof( YellowScales ) ),
@ -491,7 +491,7 @@ namespace Server.Items
new CraftResourceInfo( 0x8B0, 1053134, "Blue Scales", CraftAttributeInfo.BlueScales, CraftResource.BlueScales, typeof( BlueScales ) )
};
private static CraftResourceInfo[] m_LeatherInfo = new CraftResourceInfo[]
private static CraftResourceInfo[] m_LeatherInfo = new[]
{
new CraftResourceInfo( 0x000, 1049353, "Normal", CraftAttributeInfo.Blank, CraftResource.RegularLeather, typeof( Leather ), typeof( Hides ) ),
new CraftResourceInfo( 0x283, 1049354, "Spined", CraftAttributeInfo.Spined, CraftResource.SpinedLeather, typeof( SpinedLeather ), typeof( SpinedHides ) ),
@ -499,7 +499,7 @@ namespace Server.Items
new CraftResourceInfo( 0x1C1, 1049356, "Barbed", CraftAttributeInfo.Barbed, CraftResource.BarbedLeather, typeof( BarbedLeather ), typeof( BarbedHides ) )
};
private static CraftResourceInfo[] m_AOSLeatherInfo = new CraftResourceInfo[]
private static CraftResourceInfo[] m_AOSLeatherInfo = new[]
{
new CraftResourceInfo( 0x000, 1049353, "Normal", CraftAttributeInfo.Blank, CraftResource.RegularLeather, typeof( Leather ), typeof( Hides ) ),
new CraftResourceInfo( 0x8AC, 1049354, "Spined", CraftAttributeInfo.Spined, CraftResource.SpinedLeather, typeof( SpinedLeather ), typeof( SpinedHides ) ),
@ -507,7 +507,7 @@ namespace Server.Items
new CraftResourceInfo( 0x851, 1049356, "Barbed", CraftAttributeInfo.Barbed, CraftResource.BarbedLeather, typeof( BarbedLeather ), typeof( BarbedHides ) ),
};
private static CraftResourceInfo[] m_WoodInfo = new CraftResourceInfo[]
private static CraftResourceInfo[] m_WoodInfo = new[]
{
new CraftResourceInfo( 0x000, 1011542, "Normal", CraftAttributeInfo.Blank, CraftResource.RegularWood, typeof( Log ), typeof( Board ) ),
new CraftResourceInfo( 0x7DA, 1072533, "Oak", CraftAttributeInfo.OakWood, CraftResource.OakWood, typeof( OakLog ), typeof( OakBoard ) ),

View file

@ -11,7 +11,7 @@ namespace Server.Misc
public static TimeSpan AntiMacroExpire = TimeSpan.FromMinutes( 5.0 ); //How long do we remember targets/locations?
public const int Allowance = 3; //How many times may we use the same location/target for gain
private const int LocationSize = 5; //The size of eeach location, make this smaller so players dont have to move as far
private static bool[] UseAntiMacro = new bool[]
private static bool[] UseAntiMacro = new[]
{
// true if this skill uses the anti-macro code, false if it does not
false,// Alchemy = 0,

View file

@ -9,7 +9,7 @@ namespace Server
private const bool NagleEnabled = false; // Should the Nagle algorithm be enabled? This may reduce performance
private const int CoalesceBufferSize = 512; // MSS that the core will use when buffering packets
private static IPEndPoint[] m_ListenerEndPoints = new IPEndPoint[] {
private static IPEndPoint[] m_ListenerEndPoints = new[] {
new IPEndPoint( IPAddress.Any, 2593 ), // Default: Listen on port 2593 on all IP addresses
// Examples:

View file

@ -128,7 +128,7 @@ namespace Server.Misc
}
}
public static string[] HarrowerTitles = new string[] { "Spite", "Opponent", "Hunter", "Venom", "Executioner", "Annihilator", "Champion", "Assailant", "Purifier", "Nullifier" };
public static string[] HarrowerTitles = new[] { "Spite", "Opponent", "Hunter", "Venom", "Executioner", "Annihilator", "Champion", "Assailant", "Purifier", "Nullifier" };
public static string ComputeTitle( Mobile beholder, Mobile beheld )
{
@ -264,7 +264,7 @@ namespace Server.Misc
return highest;
}
private static string[,] m_Levels = new string[,]
private static string[,] m_Levels = new[,]
{
{ "Neophyte", "Neophyte", "Neophyte" },
{ "Novice", "Novice", "Novice" },
@ -300,9 +300,9 @@ namespace Server.Misc
return (fp - 300) / 100;
}
private static FameEntry[] m_FameEntries = new FameEntry[]
private static FameEntry[] m_FameEntries = new[]
{
new FameEntry( 1249, new KarmaEntry[]
new FameEntry( 1249, new[]
{
new KarmaEntry( -10000, "The Outcast {0}" ),
new KarmaEntry( -5000, "The Despicable {0}" ),
@ -316,7 +316,7 @@ namespace Server.Misc
new KarmaEntry( 9999, "The Honest {0}" ),
new KarmaEntry( 10000, "The Trustworthy {0}" )
} ),
new FameEntry( 2499, new KarmaEntry[]
new FameEntry( 2499, new[]
{
new KarmaEntry( -10000, "The Wretched {0}" ),
new KarmaEntry( -5000, "The Dastardly {0}" ),
@ -330,7 +330,7 @@ namespace Server.Misc
new KarmaEntry( 9999, "The Commendable {0}" ),
new KarmaEntry( 10000, "The Estimable {0}" )
} ),
new FameEntry( 4999, new KarmaEntry[]
new FameEntry( 4999, new[]
{
new KarmaEntry( -10000, "The Nefarious {0}" ),
new KarmaEntry( -5000, "The Wicked {0}" ),
@ -344,7 +344,7 @@ namespace Server.Misc
new KarmaEntry( 9999, "The Famed {0}" ),
new KarmaEntry( 10000, "The Great {0}" )
} ),
new FameEntry( 9999, new KarmaEntry[]
new FameEntry( 9999, new[]
{
new KarmaEntry( -10000, "The Dread {0}" ),
new KarmaEntry( -5000, "The Evil {0}" ),
@ -358,7 +358,7 @@ namespace Server.Misc
new KarmaEntry( 9999, "The Illustrious {0}" ),
new KarmaEntry( 10000, "The Glorious {0}" )
} ),
new FameEntry( 10000, new KarmaEntry[]
new FameEntry( 10000, new[]
{
new KarmaEntry( -10000, "The Dread {1} {0}" ),
new KarmaEntry( -5000, "The Evil {1} {0}" ),

View file

@ -11,7 +11,7 @@ namespace Server.Items
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllItems;
Commands = new string[]{ "Toggle" };
Commands = new[]{ "Toggle" };
ObjectTypes = ObjectTypes.Items;
Usage = "Toggle";
Description = "Toggles a targeted ToggleItem.";

View file

@ -13,7 +13,7 @@ namespace Server
CommandSystem.Register( "VendorGen", AccessLevel.Administrator, new CommandEventHandler( VendorGenerator.VendorGen_OnCommand ) );
}
private static Rectangle2D[] m_BritRegions = new Rectangle2D[]
private static Rectangle2D[] m_BritRegions = new[]
{
new Rectangle2D( new Point2D( 250, 750 ), new Point2D( 775, 1330 ) ),
new Rectangle2D( new Point2D( 525, 2095 ), new Point2D( 925, 2430 ) ),
@ -33,7 +33,7 @@ namespace Server
new Rectangle2D( new Point2D( 5120, 2300 ), new Point2D( 6143, 4095 ) )
};
private static Rectangle2D[] m_IlshRegions = new Rectangle2D[]
private static Rectangle2D[] m_IlshRegions = new[]
{
new Rectangle2D( new Point2D( 0, 0 ), new Point2D( 288*8, 200*8 ) )
};

View file

@ -12,7 +12,7 @@ namespace Server.Misc
public static void Initialize()
{
m_Facets = new Map[]{ Map.Felucca, Map.Trammel };
m_Facets = new[]{ Map.Felucca, Map.Trammel };
/* Static weather:
*
@ -74,7 +74,7 @@ namespace Server.Misc
if ( !isValid )
continue;
Weather w = new Weather( m_Facets[i], new Rectangle2D[]{ area }, temperature, chanceOfPercipitation, chanceOfExtremeTemperature, TimeSpan.FromSeconds( 30.0 ) );
Weather w = new Weather( m_Facets[i], new[]{ area }, temperature, chanceOfPercipitation, chanceOfExtremeTemperature, TimeSpan.FromSeconds( 30.0 ) );
w.m_Bounds = bounds;
w.m_MoveSpeed = moveSpeed;

View file

@ -11,7 +11,7 @@ namespace Server.Misc
private int m_State, m_Count;
private static string[] m_Messages = ( TestCenter.Enabled ?
new string[]
new[]
{
"Welcome to this test shard. You are able to customize your character's stats and skills at anytime to anything you wish. To see the commands to do this just say 'help'.",
"You will find a bank check worth 1,000,000 gold in your bank!",
@ -24,7 +24,7 @@ namespace Server.Misc
"You will find 9000 gold pieces deposited into your bank box. Spend it as you see fit and enjoy yourself!",
"A bag of PowerScrolls has been placed in your bank box."
} :
new string[]
new[]
{ //Yes, this message is a pathetic message, It's suggested that you change it.
"Welcome to this shard.",
"Please enjoy your stay."

View file

@ -60,7 +60,7 @@ namespace Server
if ( split.Length < 3 )
continue;
split = new string[]{ type, split[0], split[1], split[2] };
split = new[]{ type, split[0], split[1], split[2] };
switch(split[0].ToLower())
{