Removes implicit types
This commit is contained in:
parent
33f5e77a24
commit
04b4cfe75b
261 changed files with 1329 additions and 1329 deletions
|
|
@ -38,7 +38,7 @@ namespace Server.Spells
|
|||
max = avg + ChanceOffset;
|
||||
}
|
||||
|
||||
private static int[] m_ManaTable = new int[] { 4, 6, 9, 11, 14, 20, 40, 50 };
|
||||
private static int[] m_ManaTable = new[] { 4, 6, 9, 11, 14, 20, 40, 50 };
|
||||
|
||||
public override int GetMana()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -437,7 +437,7 @@ namespace Server.Spells
|
|||
return (noto != Notoriety.Innocent || from.Kills >= 5);
|
||||
}
|
||||
|
||||
private static int[] m_Offsets = new int[]
|
||||
private static int[] m_Offsets = new[]
|
||||
{
|
||||
-1, -1,
|
||||
-1, 0,
|
||||
|
|
@ -563,7 +563,7 @@ namespace Server.Spells
|
|||
|
||||
private delegate bool TravelValidator( Map map, Point3D loc );
|
||||
|
||||
private static TravelValidator[] m_Validators = new TravelValidator[]
|
||||
private static TravelValidator[] m_Validators = new[]
|
||||
{
|
||||
new TravelValidator( IsFeluccaT2A ),
|
||||
new TravelValidator( IsKhaldun ),
|
||||
|
|
@ -586,7 +586,7 @@ namespace Server.Spells
|
|||
new TravelValidator( IsMLDungeon )
|
||||
};
|
||||
|
||||
private static bool[,] m_Rules = new bool[,]
|
||||
private static bool[,] m_Rules = new[,]
|
||||
{
|
||||
/*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 },
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ namespace Server.Spells
|
|||
return null;
|
||||
}
|
||||
|
||||
private static string[] m_CircleNames = new string[]
|
||||
private static string[] m_CircleNames = new[]
|
||||
{
|
||||
"First",
|
||||
"Second",
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ namespace Server.Spells.Fifth
|
|||
return ( t != null );
|
||||
}
|
||||
|
||||
private static int[] m_HairIDs = new int[]
|
||||
private static int[] m_HairIDs = new[]
|
||||
{
|
||||
0x2044, 0x2045, 0x2046,
|
||||
0x203C, 0x203B, 0x203D,
|
||||
|
|
@ -143,7 +143,7 @@ namespace Server.Spells.Fifth
|
|||
0x204A, 0x0000
|
||||
};
|
||||
|
||||
private static int[] m_BeardIDs = new int[]
|
||||
private static int[] m_BeardIDs = new[]
|
||||
{
|
||||
0x203E, 0x203F, 0x2040,
|
||||
0x2041, 0x204B, 0x204C,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Spells.Fifth
|
|||
|
||||
// NOTE: Creature list based on 1hr of summon/release on OSI.
|
||||
|
||||
private static Type[] m_Types = new Type[]
|
||||
private static Type[] m_Types = new[]
|
||||
{
|
||||
typeof( PolarBear ),
|
||||
typeof( GrizzlyBear ),
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Server.Spells.First
|
|||
{
|
||||
}
|
||||
|
||||
private static FoodInfo[] m_Food = new FoodInfo[]
|
||||
private static FoodInfo[] m_Food = new[]
|
||||
{
|
||||
new FoodInfo( typeof( Grapes ), "a grape bunch" ),
|
||||
new FoodInfo( typeof( Ham ), "a ham" ),
|
||||
|
|
|
|||
|
|
@ -76,12 +76,12 @@ namespace Server.Spells.Necromancy
|
|||
return null;
|
||||
}
|
||||
|
||||
private static CreatureGroup[] m_Groups = new CreatureGroup[]
|
||||
private static CreatureGroup[] m_Groups = new[]
|
||||
{
|
||||
// Undead group--empty
|
||||
new CreatureGroup( SlayerGroup.GetEntryByName( SlayerName.Silver ).Types, new SummonEntry[0] ),
|
||||
// Insects
|
||||
new CreatureGroup( new Type[]
|
||||
new CreatureGroup( new[]
|
||||
{
|
||||
typeof( DreadSpider ), typeof( FrostSpider ), typeof( GiantSpider ), typeof( GiantBlackWidow ),
|
||||
typeof( BlackSolenInfiltratorQueen ), typeof( BlackSolenInfiltratorWarrior ),
|
||||
|
|
@ -92,22 +92,22 @@ namespace Server.Spells.Necromancy
|
|||
typeof( TerathanWarrior )
|
||||
// TODO: Giant beetle? Ant lion? Ophidians?
|
||||
},
|
||||
new SummonEntry[]
|
||||
new[]
|
||||
{
|
||||
new SummonEntry( 0, typeof( MoundOfMaggots ) )
|
||||
} ),
|
||||
// Mounts
|
||||
new CreatureGroup( new Type[]
|
||||
new CreatureGroup( new[]
|
||||
{
|
||||
typeof( Horse ), typeof( Nightmare ), typeof( FireSteed ),
|
||||
typeof( Kirin ), typeof( Unicorn )
|
||||
}, new SummonEntry[]
|
||||
}, new[]
|
||||
{
|
||||
new SummonEntry( 10000, typeof( HellSteed ) ),
|
||||
new SummonEntry( 0, typeof( SkeletalMount ) )
|
||||
} ),
|
||||
// Elementals
|
||||
new CreatureGroup( new Type[]
|
||||
new CreatureGroup( new[]
|
||||
{
|
||||
typeof( BloodElemental ), typeof( EarthElemental ), typeof( SummonedEarthElemental ),
|
||||
typeof( AgapiteElemental ), typeof( BronzeElemental ), typeof( CopperElemental ),
|
||||
|
|
@ -116,18 +116,18 @@ namespace Server.Spells.Necromancy
|
|||
typeof( FireElemental ), typeof( SummonedFireElemental ), typeof( SnowElemental ),
|
||||
typeof( AirElemental ), typeof( SummonedAirElemental ), typeof( WaterElemental ),
|
||||
typeof( SummonedAirElemental ), typeof ( AcidElemental )
|
||||
}, new SummonEntry[]
|
||||
}, new[]
|
||||
{
|
||||
new SummonEntry( 5000, typeof( WailingBanshee ) ),
|
||||
new SummonEntry( 0, typeof( Wraith ) )
|
||||
} ),
|
||||
// Dragons
|
||||
new CreatureGroup( new Type[]
|
||||
new CreatureGroup( new[]
|
||||
{
|
||||
typeof( AncientWyrm ), typeof( Dragon ), typeof( GreaterDragon ), typeof( SerpentineDragon ),
|
||||
typeof( ShadowWyrm ), typeof( SkeletalDragon ), typeof( WhiteWyrm ),
|
||||
typeof( Drake ), typeof( Wyvern ), typeof( LesserHiryu ), typeof( Hiryu )
|
||||
}, new SummonEntry[]
|
||||
}, new[]
|
||||
{
|
||||
new SummonEntry( 18000, typeof( SkeletalDragon ) ),
|
||||
new SummonEntry( 10000, typeof( FleshGolem ) ),
|
||||
|
|
@ -138,7 +138,7 @@ namespace Server.Spells.Necromancy
|
|||
new SummonEntry( 0, typeof( PatchworkSkeleton ) )
|
||||
} ),
|
||||
// Default group
|
||||
new CreatureGroup( new Type[0], new SummonEntry[]
|
||||
new CreatureGroup( new Type[0], new[]
|
||||
{
|
||||
new SummonEntry( 18000, typeof( LichLord ) ),
|
||||
new SummonEntry( 10000, typeof( FleshGolem ) ),
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ namespace Server.Spells.Necromancy
|
|||
return closest;
|
||||
}
|
||||
|
||||
private static readonly Point3D[] m_BritanniaLocs = new Point3D[]
|
||||
private static readonly Point3D[] m_BritanniaLocs = new[]
|
||||
{
|
||||
new Point3D( 1470, 843, 0 ),
|
||||
new Point3D( 1857, 865, -1 ),
|
||||
|
|
@ -176,7 +176,7 @@ namespace Server.Spells.Necromancy
|
|||
new Point3D( 2500, 3931, 3 ),
|
||||
new Point3D( 4264, 3707, 0 )
|
||||
};
|
||||
private static readonly Point3D[] m_IllshLocs = new Point3D[]
|
||||
private static readonly Point3D[] m_IllshLocs = new[]
|
||||
{
|
||||
new Point3D( 1222, 474, -17 ),
|
||||
new Point3D( 718, 1360, -60),
|
||||
|
|
@ -186,11 +186,11 @@ namespace Server.Spells.Necromancy
|
|||
new Point3D( 1538, 1341, -3 ),
|
||||
new Point3D( 528, 223, -38 )
|
||||
};
|
||||
private static readonly Point3D[] m_MalasLocs = new Point3D[]
|
||||
private static readonly Point3D[] m_MalasLocs = new[]
|
||||
{
|
||||
new Point3D ( 976, 517, -30 )
|
||||
};
|
||||
private static readonly Point3D[] m_TokunoLocs = new Point3D[]
|
||||
private static readonly Point3D[] m_TokunoLocs = new[]
|
||||
{
|
||||
new Point3D( 710, 1162, 25 ),
|
||||
new Point3D( 1034, 515, 18 ),
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace Server.Spells.Necromancy
|
|||
FinishSequence();
|
||||
}
|
||||
|
||||
private static SummonFamiliarEntry[] m_Entries = new SummonFamiliarEntry[]
|
||||
private static SummonFamiliarEntry[] m_Entries = new[]
|
||||
{
|
||||
new SummonFamiliarEntry( typeof( HordeMinionFamiliar ), 1060146, 30.0, 30.0 ), // Horde Minion
|
||||
new SummonFamiliarEntry( typeof( ShadowWispFamiliar ), 1060142, 50.0, 50.0 ), // Shadow Wisp
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ namespace Server.Spells.Ninjitsu
|
|||
}
|
||||
}
|
||||
|
||||
private static AnimalFormEntry[] m_Entries = new AnimalFormEntry[]
|
||||
private static AnimalFormEntry[] m_Entries = new[]
|
||||
{
|
||||
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 ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue