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

@ -38,7 +38,7 @@ namespace Server.Spells
max = avg + ChanceOffset;
}
private static int[] m_ManaTable = new[] { 4, 6, 9, 11, 14, 20, 40, 50 };
private static int[] m_ManaTable = { 4, 6, 9, 11, 14, 20, 40, 50 };
public override int GetMana()
{

View file

@ -437,8 +437,7 @@ namespace Server.Spells
return (noto != Notoriety.Innocent || from.Kills >= 5);
}
private static int[] m_Offsets = new[]
{
private static int[] m_Offsets = {
-1, -1,
-1, 0,
-1, 1,
@ -563,8 +562,7 @@ namespace Server.Spells
private delegate bool TravelValidator( Map map, Point3D loc );
private static TravelValidator[] m_Validators = new[]
{
private static TravelValidator[] m_Validators = {
new TravelValidator( IsFeluccaT2A ),
new TravelValidator( IsKhaldun ),
new TravelValidator( IsIlshenar ),
@ -586,8 +584,7 @@ namespace Server.Spells
new TravelValidator( IsMLDungeon )
};
private static bool[,] m_Rules = new[,]
{
private static bool[,] m_Rules = {
/*T2A(Fel), Khaldun, Ilshenar, Wind(Tram), Wind(Fel), Dungeons(Fel), Solen(Tram), Solen(Fel), CrystalCave(Malas), Gauntlet(Malas), Gauntlet(Ferry), SafeZone, Stronghold, ChampionSpawn, Dungeons(Tokuno[Malas]), LampRoom(Doom), GuardianRoom(Doom), Heartwood, MLDungeons */
/* Recall From */ { false, false, true, true, false, false, true, false, false, false, false, true, true, false, true, false, false, false, false },
/* Recall To */ { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false },

View file

@ -127,8 +127,7 @@ namespace Server.Spells
return null;
}
private static string[] m_CircleNames = new[]
{
private static string[] m_CircleNames = {
"First",
"Second",
"Third",

View file

@ -135,16 +135,14 @@ namespace Server.Spells.Fifth
return ( t != null );
}
private static int[] m_HairIDs = new[]
{
private static int[] m_HairIDs = {
0x2044, 0x2045, 0x2046,
0x203C, 0x203B, 0x203D,
0x2047, 0x2048, 0x2049,
0x204A, 0x0000
};
private static int[] m_BeardIDs = new[]
{
private static int[] m_BeardIDs = {
0x203E, 0x203F, 0x2040,
0x2041, 0x204B, 0x204C,
0x204D, 0x0000

View file

@ -22,8 +22,7 @@ namespace Server.Spells.Fifth
// NOTE: Creature list based on 1hr of summon/release on OSI.
private static Type[] m_Types = new[]
{
private static Type[] m_Types = {
typeof( PolarBear ),
typeof( GrizzlyBear ),
typeof( BlackBear ),

View file

@ -20,8 +20,7 @@ namespace Server.Spells.First
{
}
private static FoodInfo[] m_Food = new[]
{
private static FoodInfo[] m_Food = {
new FoodInfo( typeof( Grapes ), "a grape bunch" ),
new FoodInfo( typeof( Ham ), "a ham" ),
new FoodInfo( typeof( CheeseWedge ), "a wedge of cheese" ),

View file

@ -76,8 +76,7 @@ namespace Server.Spells.Necromancy
return null;
}
private static CreatureGroup[] m_Groups = new[]
{
private static CreatureGroup[] m_Groups = {
// Undead group--empty
new CreatureGroup( SlayerGroup.GetEntryByName( SlayerName.Silver ).Types, new SummonEntry[0] ),
// Insects

View file

@ -164,8 +164,7 @@ namespace Server.Spells.Necromancy
return closest;
}
private static readonly Point3D[] m_BritanniaLocs = new[]
{
private static readonly Point3D[] m_BritanniaLocs = {
new Point3D( 1470, 843, 0 ),
new Point3D( 1857, 865, -1 ),
new Point3D( 4220, 563, 36 ),
@ -176,8 +175,7 @@ namespace Server.Spells.Necromancy
new Point3D( 2500, 3931, 3 ),
new Point3D( 4264, 3707, 0 )
};
private static readonly Point3D[] m_IllshLocs = new[]
{
private static readonly Point3D[] m_IllshLocs = {
new Point3D( 1222, 474, -17 ),
new Point3D( 718, 1360, -60),
new Point3D( 297, 1014, -19 ),
@ -186,12 +184,10 @@ namespace Server.Spells.Necromancy
new Point3D( 1538, 1341, -3 ),
new Point3D( 528, 223, -38 )
};
private static readonly Point3D[] m_MalasLocs = new[]
{
private static readonly Point3D[] m_MalasLocs = {
new Point3D ( 976, 517, -30 )
};
private static readonly Point3D[] m_TokunoLocs = new[]
{
private static readonly Point3D[] m_TokunoLocs = {
new Point3D( 710, 1162, 25 ),
new Point3D( 1034, 515, 18 ),
new Point3D( 295, 712, 55 )

View file

@ -54,8 +54,7 @@ namespace Server.Spells.Necromancy
FinishSequence();
}
private static SummonFamiliarEntry[] m_Entries = new[]
{
private static SummonFamiliarEntry[] m_Entries = {
new SummonFamiliarEntry( typeof( HordeMinionFamiliar ), 1060146, 30.0, 30.0 ), // Horde Minion
new SummonFamiliarEntry( typeof( ShadowWispFamiliar ), 1060142, 50.0, 50.0 ), // Shadow Wisp
new SummonFamiliarEntry( typeof( DarkWolfFamiliar ), 1060143, 60.0, 60.0 ), // Dark Wolf

View file

@ -366,8 +366,7 @@ namespace Server.Spells.Ninjitsu
}
}
private static AnimalFormEntry[] m_Entries = new[]
{
private static AnimalFormEntry[] m_Entries = {
new AnimalFormEntry( typeof( Kirin ), 1029632, 9632, 0, 1070811, 100.0, 0x84, 0, 0, false, true, false ),
new AnimalFormEntry( typeof( Unicorn ), 1018214, 9678, 0, 1070812, 100.0, 0x7A, 0, 0, false, true, false ),
new AnimalFormEntry( typeof( BakeKitsune ), 1030083, 10083, 0, 1070810, 82.5, 0xF6, 0, 0, false, true, false ),