Removes implicit types
This commit is contained in:
parent
33f5e77a24
commit
04b4cfe75b
261 changed files with 1329 additions and 1329 deletions
|
|
@ -12,7 +12,7 @@ using Server.Commands.Generic;
|
|||
|
||||
namespace Server.Factions
|
||||
{
|
||||
[CustomEnum( new string[]{ "Minax", "Council of Mages", "True Britannians", "Shadowlords" } )]
|
||||
[CustomEnum( new[]{ "Minax", "Council of Mages", "True Britannians", "Shadowlords" } )]
|
||||
public abstract class Faction : IComparable
|
||||
{
|
||||
public int ZeroRankOffset;
|
||||
|
|
@ -1299,21 +1299,21 @@ namespace Server.Factions
|
|||
{
|
||||
case FactionKickType.Kick:
|
||||
{
|
||||
Commands = new string[]{ "FactionKick" };
|
||||
Commands = new[]{ "FactionKick" };
|
||||
Usage = "FactionKick";
|
||||
Description = "Kicks the targeted player out of his current faction. This does not prevent them from rejoining.";
|
||||
break;
|
||||
}
|
||||
case FactionKickType.Ban:
|
||||
{
|
||||
Commands = new string[]{ "FactionBan" };
|
||||
Commands = new[]{ "FactionBan" };
|
||||
Usage = "FactionBan";
|
||||
Description = "Bans the account of a targeted player from joining factions. All players on the account are removed from their current faction, if any.";
|
||||
break;
|
||||
}
|
||||
case FactionKickType.Unban:
|
||||
{
|
||||
Commands = new string[]{ "FactionUnban" };
|
||||
Commands = new[]{ "FactionUnban" };
|
||||
Usage = "FactionUnban";
|
||||
Description = "Unbans the account of a targeted player from joining factions.";
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace Server.Factions
|
|||
|
||||
public class MerchantTitles
|
||||
{
|
||||
private static MerchantTitleInfo[] m_Info = new MerchantTitleInfo[]
|
||||
private static MerchantTitleInfo[] m_Info = new[]
|
||||
{
|
||||
new MerchantTitleInfo( SkillName.Inscribe, 90.0, new TextDefinition( 1060773, "Scribe" ), new TextDefinition( 1011468, "SCRIBE" ), new TextDefinition( 1010121, "You now have the faction title of scribe" ) ),
|
||||
new MerchantTitleInfo( SkillName.Carpentry, 90.0, new TextDefinition( 1060774, "Carpenter" ), new TextDefinition( 1011469, "CARPENTER" ), new TextDefinition( 1010122, "You now have the faction title of carpenter" ) ),
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Server.Factions
|
||||
{
|
||||
[CustomEnum( new string[]{ "Britain", "Magincia", "Minoc", "Moonglow", "Skara Brae", "Trinsic", "Vesper", "Yew" } )]
|
||||
[CustomEnum( new[]{ "Britain", "Magincia", "Minoc", "Moonglow", "Skara Brae", "Trinsic", "Vesper", "Yew" } )]
|
||||
public abstract class Town : IComparable
|
||||
{
|
||||
private TownDefinition m_Definition;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace Server.Factions
|
|||
m_Label = label;
|
||||
}
|
||||
|
||||
private static VendorDefinition[] m_Definitions = new VendorDefinition[]
|
||||
private static VendorDefinition[] m_Definitions = new[]
|
||||
{
|
||||
new VendorDefinition( typeof( FactionBottleVendor ), 0xF0E,
|
||||
5000,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Factions
|
|||
private Faction m_Faction;
|
||||
private Town m_Town;
|
||||
|
||||
private static int[] m_PriceOffsets = new int[]
|
||||
private static int[] m_PriceOffsets = new[]
|
||||
{
|
||||
-30, -25, -20, -15, -10, -5,
|
||||
+50, +100, +150, +200, +250, +300
|
||||
|
|
|
|||
|
|
@ -38,14 +38,14 @@ namespace Server.Factions
|
|||
new TextDefinition( 1005189, "Members of the Council of Mages will now be beaten with a stick." ),
|
||||
// Moonglow
|
||||
new StrongholdDefinition(
|
||||
new Rectangle2D[]
|
||||
new[]
|
||||
{
|
||||
new Rectangle2D( 4463, 1487, 15, 35 ),
|
||||
new Rectangle2D( 4450, 1522, 35, 48 ),
|
||||
},
|
||||
new Point3D( 4469, 1486, 0 ),
|
||||
new Point3D( 4457, 1544, 0 ),
|
||||
new Point3D[]
|
||||
new[]
|
||||
{
|
||||
new Point3D( 4464, 1534, 21 ),
|
||||
new Point3D( 4470, 1536, 21 ),
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Factions
|
|||
new Point3D( 3797, 2249, 20 ),
|
||||
new Point3D( 3797, 2246, 20 )
|
||||
} ), */
|
||||
new RankDefinition[]
|
||||
new[]
|
||||
{
|
||||
new RankDefinition( 10, 991, 8, new TextDefinition( 1060789, "Inquisitor of the Council" ) ),
|
||||
new RankDefinition( 9, 950, 7, new TextDefinition( 1060788, "Archon of Principle" ) ),
|
||||
|
|
@ -91,7 +91,7 @@ namespace Server.Factions
|
|||
new RankDefinition( 2, 200, 4, new TextDefinition( 1060785, "Mystic" ) ),
|
||||
new RankDefinition( 1, 0, 4, new TextDefinition( 1060785, "Mystic" ) )
|
||||
},
|
||||
new GuardDefinition[]
|
||||
new[]
|
||||
{
|
||||
new GuardDefinition( typeof( FactionHenchman ), 0x1403, 5000, 1000, 10, new TextDefinition( 1011526, "HENCHMAN" ), new TextDefinition( 1011510, "Hire Henchman" ) ),
|
||||
new GuardDefinition( typeof( FactionMercenary ), 0x0F62, 6000, 2000, 10, new TextDefinition( 1011527, "MERCENARY" ), new TextDefinition( 1011511, "Hire Mercenary" ) ),
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ namespace Server.Factions
|
|||
new TextDefinition( 1005191, "Followers of Minax will now be told to go away." ),
|
||||
new TextDefinition( 1005192, "Followers of Minax will now be hanged by their toes." ),
|
||||
new StrongholdDefinition(
|
||||
new Rectangle2D[]
|
||||
new[]
|
||||
{
|
||||
new Rectangle2D( 1097, 2570, 70, 50 )
|
||||
},
|
||||
new Point3D( 1172, 2593, 0 ),
|
||||
new Point3D( 1117, 2587, 18 ),
|
||||
new Point3D[]
|
||||
new[]
|
||||
{
|
||||
new Point3D( 1113, 2601, 18 ),
|
||||
new Point3D( 1113, 2598, 18 ),
|
||||
|
|
@ -55,7 +55,7 @@ namespace Server.Factions
|
|||
new Point3D( 1116, 2595, 18 ),
|
||||
new Point3D( 1116, 2592, 18 )
|
||||
} ),
|
||||
new RankDefinition[]
|
||||
new[]
|
||||
{
|
||||
new RankDefinition( 10, 991, 8, new TextDefinition( 1060784, "Avenger of Mondain" ) ),
|
||||
new RankDefinition( 9, 950, 7, new TextDefinition( 1060783, "Dread Knight" ) ),
|
||||
|
|
@ -68,7 +68,7 @@ namespace Server.Factions
|
|||
new RankDefinition( 2, 200, 4, new TextDefinition( 1060780, "Defiler" ) ),
|
||||
new RankDefinition( 1, 0, 4, new TextDefinition( 1060780, "Defiler" ) )
|
||||
},
|
||||
new GuardDefinition[]
|
||||
new[]
|
||||
{
|
||||
new GuardDefinition( typeof( FactionHenchman ), 0x1403, 5000, 1000, 10, new TextDefinition( 1011526, "HENCHMAN" ), new TextDefinition( 1011510, "Hire Henchman" ) ),
|
||||
new GuardDefinition( typeof( FactionMercenary ), 0x0F62, 6000, 2000, 10, new TextDefinition( 1011527, "MERCENARY" ), new TextDefinition( 1011511, "Hire Mercenary" ) ),
|
||||
|
|
|
|||
|
|
@ -37,14 +37,14 @@ namespace Server.Factions
|
|||
new TextDefinition( 1005185, "Minions of the Shadowlords will now be warned of their impending deaths." ),
|
||||
new TextDefinition( 1005186, "Minions of the Shadowlords will now be attacked at will." ),
|
||||
new StrongholdDefinition(
|
||||
new Rectangle2D[]
|
||||
new[]
|
||||
{
|
||||
new Rectangle2D( 960, 688, 8, 9 ),
|
||||
new Rectangle2D( 944, 697, 24, 23 )
|
||||
},
|
||||
new Point3D( 969, 768, 0 ),
|
||||
new Point3D( 947, 713, 0 ),
|
||||
new Point3D[]
|
||||
new[]
|
||||
{
|
||||
new Point3D( 953, 713, 20 ),
|
||||
new Point3D( 953, 709, 20 ),
|
||||
|
|
@ -55,7 +55,7 @@ namespace Server.Factions
|
|||
new Point3D( 957, 705, 20 ),
|
||||
new Point3D( 957, 701, 20 )
|
||||
} ),
|
||||
new RankDefinition[]
|
||||
new[]
|
||||
{
|
||||
new RankDefinition( 10, 991, 8, new TextDefinition( 1060799, "Purveyor of Darkness" ) ),
|
||||
new RankDefinition( 9, 950, 7, new TextDefinition( 1060798, "Agent of Evil" ) ),
|
||||
|
|
@ -68,7 +68,7 @@ namespace Server.Factions
|
|||
new RankDefinition( 2, 200, 4, new TextDefinition( 1060795, "Servant" ) ),
|
||||
new RankDefinition( 1, 0, 4, new TextDefinition( 1060795, "Servant" ) )
|
||||
},
|
||||
new GuardDefinition[]
|
||||
new[]
|
||||
{
|
||||
new GuardDefinition( typeof( FactionHenchman ), 0x1403, 5000, 1000, 10, new TextDefinition( 1011526, "HENCHMAN" ), new TextDefinition( 1011510, "Hire Henchman" ) ),
|
||||
new GuardDefinition( typeof( FactionMercenary ), 0x0F62, 6000, 2000, 10, new TextDefinition( 1011527, "MERCENARY" ), new TextDefinition( 1011511, "Hire Mercenary" ) ),
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace Server.Factions
|
|||
new TextDefinition( 1005182, "Followers of Lord British will now be warned of their impending doom." ),
|
||||
new TextDefinition( 1005183, "Followers of Lord British will now be attacked on sight." ),
|
||||
new StrongholdDefinition(
|
||||
new Rectangle2D[]
|
||||
new[]
|
||||
{
|
||||
new Rectangle2D( 1292, 1556, 25, 25 ),
|
||||
new Rectangle2D( 1292, 1676, 120, 25 ),
|
||||
|
|
@ -49,7 +49,7 @@ namespace Server.Factions
|
|||
},
|
||||
new Point3D( 1419, 1622, 20 ),
|
||||
new Point3D( 1330, 1621, 50 ),
|
||||
new Point3D[]
|
||||
new[]
|
||||
{
|
||||
new Point3D( 1328, 1627, 50 ),
|
||||
new Point3D( 1328, 1621, 50 ),
|
||||
|
|
@ -60,7 +60,7 @@ namespace Server.Factions
|
|||
new Point3D( 1345, 1621, 50 ),
|
||||
new Point3D( 1345, 1627, 50 )
|
||||
} ),
|
||||
new RankDefinition[]
|
||||
new[]
|
||||
{
|
||||
new RankDefinition( 10, 991, 8, new TextDefinition( 1060794, "Knight of the Codex" ) ),
|
||||
new RankDefinition( 9, 950, 7, new TextDefinition( 1060793, "Knight of Virtue" ) ),
|
||||
|
|
@ -73,7 +73,7 @@ namespace Server.Factions
|
|||
new RankDefinition( 2, 200, 4, new TextDefinition( 1060790, "Defender" ) ),
|
||||
new RankDefinition( 1, 0, 4, new TextDefinition( 1060790, "Defender" ) )
|
||||
},
|
||||
new GuardDefinition[]
|
||||
new[]
|
||||
{
|
||||
new GuardDefinition( typeof( FactionHenchman ), 0x1403, 5000, 1000, 10, new TextDefinition( 1011526, "HENCHMAN" ), new TextDefinition( 1011510, "Hire Henchman" ) ),
|
||||
new GuardDefinition( typeof( FactionMercenary ), 0x0F62, 6000, 2000, 10, new TextDefinition( 1011527, "MERCENARY" ), new TextDefinition( 1011511, "Hire Mercenary" ) ),
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ namespace Server.Factions
|
|||
Utility.AssignRandomFacialHair( this, HairHue );
|
||||
}
|
||||
|
||||
private static Type[] m_StrongPotions = new Type[]
|
||||
private static Type[] m_StrongPotions = new[]
|
||||
{
|
||||
typeof( GreaterHealPotion ), typeof( GreaterHealPotion ), typeof( GreaterHealPotion ),
|
||||
typeof( GreaterCurePotion ), typeof( GreaterCurePotion ), typeof( GreaterCurePotion ),
|
||||
|
|
@ -278,7 +278,7 @@ namespace Server.Factions
|
|||
typeof( GreaterExplosionPotion )
|
||||
};
|
||||
|
||||
private static Type[] m_WeakPotions = new Type[]
|
||||
private static Type[] m_WeakPotions = new[]
|
||||
{
|
||||
typeof( HealPotion ), typeof( HealPotion ), typeof( HealPotion ),
|
||||
typeof( CurePotion ), typeof( CurePotion ), typeof( CurePotion ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue