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

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