Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -20,7 +20,7 @@ namespace Server.Accounting
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int Count { get { return m_Accounts.Count; } }
|
public static int Count => m_Accounts.Count;
|
||||||
|
|
||||||
public static ICollection<IAccount> GetAccounts()
|
public static ICollection<IAccount> GetAccounts()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -181,8 +181,8 @@ namespace Server.Commands
|
||||||
// m_Writer = Docs.GetWriter( "docs/types/", m_FileName );
|
// m_Writer = Docs.GetWriter( "docs/types/", m_FileName );
|
||||||
}
|
}
|
||||||
|
|
||||||
public string FileName { get { return m_FileName; } }
|
public string FileName => m_FileName;
|
||||||
public string TypeName { get { return m_TypeName; } }
|
public string TypeName => m_TypeName;
|
||||||
|
|
||||||
public string LinkName( string dirRoot )
|
public string LinkName( string dirRoot )
|
||||||
{
|
{
|
||||||
|
|
@ -336,8 +336,7 @@ namespace Server.Commands
|
||||||
string fullName = realType.FullName;
|
string fullName = realType.FullName;
|
||||||
string aliased = null;// = realType.Name;
|
string aliased = null;// = realType.Name;
|
||||||
|
|
||||||
TypeInfo info = null;
|
m_Types.TryGetValue( realType, out TypeInfo info );
|
||||||
m_Types.TryGetValue( realType, out info );
|
|
||||||
|
|
||||||
if( info != null )
|
if( info != null )
|
||||||
{
|
{
|
||||||
|
|
@ -1419,8 +1418,8 @@ namespace Server.Commands
|
||||||
private int m_Index;
|
private int m_Index;
|
||||||
private List<string> m_Strings;
|
private List<string> m_Strings;
|
||||||
|
|
||||||
public int Index { get { return m_Index; } }
|
public int Index => m_Index;
|
||||||
public List<string> Strings { get { return m_Strings; } }
|
public List<string> Strings => m_Strings;
|
||||||
|
|
||||||
public SpeechEntry( int index )
|
public SpeechEntry( int index )
|
||||||
{
|
{
|
||||||
|
|
@ -1471,8 +1470,7 @@ namespace Server.Commands
|
||||||
|
|
||||||
lastIndex = index;
|
lastIndex = index;
|
||||||
|
|
||||||
SpeechEntry entry = null;
|
table.TryGetValue( index, out SpeechEntry entry );
|
||||||
table.TryGetValue( index, out entry );
|
|
||||||
|
|
||||||
if( entry == null )
|
if( entry == null )
|
||||||
table[index] = entry = new SpeechEntry( index );
|
table[index] = entry = new SpeechEntry( index );
|
||||||
|
|
@ -1496,11 +1494,11 @@ namespace Server.Commands
|
||||||
private string m_Usage;
|
private string m_Usage;
|
||||||
private string m_Description;
|
private string m_Description;
|
||||||
|
|
||||||
public AccessLevel AccessLevel { get { return m_AccessLevel; } }
|
public AccessLevel AccessLevel => m_AccessLevel;
|
||||||
public string Name { get { return m_Name; } }
|
public string Name => m_Name;
|
||||||
public string[] Aliases { get { return m_Aliases; } }
|
public string[] Aliases => m_Aliases;
|
||||||
public string Usage { get { return m_Usage; } }
|
public string Usage => m_Usage;
|
||||||
public string Description { get { return m_Description; } }
|
public string Description => m_Description;
|
||||||
|
|
||||||
public DocCommandEntry( AccessLevel accessLevel, string name, string[] aliases, string usage, string description )
|
public DocCommandEntry( AccessLevel accessLevel, string name, string[] aliases, string usage, string description )
|
||||||
{
|
{
|
||||||
|
|
@ -1767,8 +1765,7 @@ namespace Server.Commands
|
||||||
TypeInfo info = new TypeInfo( type );
|
TypeInfo info = new TypeInfo( type );
|
||||||
m_Types[type] = info;
|
m_Types[type] = info;
|
||||||
|
|
||||||
List<TypeInfo> nspaces = null;
|
m_Namespaces.TryGetValue( nspace, out List<TypeInfo> nspaces );
|
||||||
m_Namespaces.TryGetValue( nspace, out nspaces );
|
|
||||||
|
|
||||||
if( nspaces == null )
|
if( nspaces == null )
|
||||||
m_Namespaces[nspace] = nspaces = new List<TypeInfo>();
|
m_Namespaces[nspace] = nspaces = new List<TypeInfo>();
|
||||||
|
|
@ -1779,8 +1776,7 @@ namespace Server.Commands
|
||||||
|
|
||||||
if( baseType != null && InAssemblies( baseType, asms ) )
|
if( baseType != null && InAssemblies( baseType, asms ) )
|
||||||
{
|
{
|
||||||
TypeInfo baseInfo = null;
|
m_Types.TryGetValue( baseType, out TypeInfo baseInfo );
|
||||||
m_Types.TryGetValue( baseType, out baseInfo );
|
|
||||||
|
|
||||||
if( baseInfo == null )
|
if( baseInfo == null )
|
||||||
m_Types[baseType] = baseInfo = new TypeInfo( baseType );
|
m_Types[baseType] = baseInfo = new TypeInfo( baseType );
|
||||||
|
|
@ -1795,8 +1791,7 @@ namespace Server.Commands
|
||||||
|
|
||||||
if( decType != null )
|
if( decType != null )
|
||||||
{
|
{
|
||||||
TypeInfo decInfo = null;
|
m_Types.TryGetValue( decType, out TypeInfo decInfo );
|
||||||
m_Types.TryGetValue( decType, out decInfo );
|
|
||||||
|
|
||||||
if( decInfo == null )
|
if( decInfo == null )
|
||||||
m_Types[decType] = decInfo = new TypeInfo( decType );
|
m_Types[decType] = decInfo = new TypeInfo( decType );
|
||||||
|
|
@ -1814,8 +1809,7 @@ namespace Server.Commands
|
||||||
if( !InAssemblies( iface, asms ) )
|
if( !InAssemblies( iface, asms ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TypeInfo ifaceInfo = null;
|
m_Types.TryGetValue( iface, out TypeInfo ifaceInfo );
|
||||||
m_Types.TryGetValue( iface, out ifaceInfo );
|
|
||||||
|
|
||||||
if( ifaceInfo == null )
|
if( ifaceInfo == null )
|
||||||
m_Types[iface] = ifaceInfo = new TypeInfo( iface );
|
m_Types[iface] = ifaceInfo = new TypeInfo( iface );
|
||||||
|
|
@ -1948,8 +1942,7 @@ namespace Server.Commands
|
||||||
{
|
{
|
||||||
html.Write( " <a " );
|
html.Write( " <a " );
|
||||||
|
|
||||||
TypeInfo typeInfo = null;
|
m_Types.TryGetValue( parms[j].ParameterType, out TypeInfo typeInfo );
|
||||||
m_Types.TryGetValue( parms[j].ParameterType, out typeInfo );
|
|
||||||
|
|
||||||
if( typeInfo != null )
|
if( typeInfo != null )
|
||||||
html.Write( "href=\"types/{0}\" ", typeInfo.FileName );
|
html.Write( "href=\"types/{0}\" ", typeInfo.FileName );
|
||||||
|
|
@ -2178,8 +2171,7 @@ namespace Server.Commands
|
||||||
|
|
||||||
typeHtml.Write( '(' );
|
typeHtml.Write( '(' );
|
||||||
|
|
||||||
TypeInfo decInfo = null;
|
m_Types.TryGetValue( decType, out TypeInfo decInfo );
|
||||||
m_Types.TryGetValue( decType, out decInfo );
|
|
||||||
|
|
||||||
if( decInfo == null )
|
if( decInfo == null )
|
||||||
typeHtml.Write( decType.Name );
|
typeHtml.Write( decType.Name );
|
||||||
|
|
@ -2201,8 +2193,7 @@ namespace Server.Commands
|
||||||
{
|
{
|
||||||
typeHtml.Write( " : " );
|
typeHtml.Write( " : " );
|
||||||
|
|
||||||
TypeInfo baseInfo = null;
|
m_Types.TryGetValue( baseType, out TypeInfo baseInfo );
|
||||||
m_Types.TryGetValue( baseType, out baseInfo );
|
|
||||||
|
|
||||||
if( baseInfo == null )
|
if( baseInfo == null )
|
||||||
typeHtml.Write( baseType.Name );
|
typeHtml.Write( baseType.Name );
|
||||||
|
|
@ -2222,8 +2213,7 @@ namespace Server.Commands
|
||||||
for( int i = 0; i < ifaces.Length; ++i )
|
for( int i = 0; i < ifaces.Length; ++i )
|
||||||
{
|
{
|
||||||
Type iface = ifaces[i];
|
Type iface = ifaces[i];
|
||||||
TypeInfo ifaceInfo = null;
|
m_Types.TryGetValue( iface, out TypeInfo ifaceInfo );
|
||||||
m_Types.TryGetValue( iface, out ifaceInfo );
|
|
||||||
|
|
||||||
if( extendCount != 0 )
|
if( extendCount != 0 )
|
||||||
typeHtml.Write( ", " );
|
typeHtml.Write( ", " );
|
||||||
|
|
@ -2565,9 +2555,9 @@ namespace Server.Commands
|
||||||
private ModelBodyType m_BodyType;
|
private ModelBodyType m_BodyType;
|
||||||
private string m_Name;
|
private string m_Name;
|
||||||
|
|
||||||
public Body Body { get { return m_Body; } }
|
public Body Body => m_Body;
|
||||||
public ModelBodyType BodyType { get { return m_BodyType; } }
|
public ModelBodyType BodyType => m_BodyType;
|
||||||
public string Name { get { return m_Name; } }
|
public string Name => m_Name;
|
||||||
|
|
||||||
public BodyEntry( Body body, ModelBodyType bodyType, string name )
|
public BodyEntry( Body body, ModelBodyType bodyType, string name )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -97,9 +97,7 @@ namespace Server.Commands.Generic
|
||||||
|
|
||||||
for ( int i = args.Length - 1; i >= 0; --i )
|
for ( int i = args.Length - 1; i >= 0; --i )
|
||||||
{
|
{
|
||||||
ExtensionInfo extInfo = null;
|
if ( !ExtensionInfo.Table.TryGetValue( args[i], out ExtensionInfo extInfo ) )
|
||||||
|
|
||||||
if ( !ExtensionInfo.Table.TryGetValue( args[i], out extInfo ) )
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( extInfo.IsFixedSize && i != ( size - extInfo.Size - 1 ) )
|
if ( extInfo.IsFixedSize && i != ( size - extInfo.Size - 1 ) )
|
||||||
|
|
|
||||||
|
|
@ -282,8 +282,7 @@ namespace Server.Commands.Generic
|
||||||
{
|
{
|
||||||
if ( e.Length >= 1 )
|
if ( e.Length >= 1 )
|
||||||
{
|
{
|
||||||
BaseCommand command = null;
|
m_Commands.TryGetValue( e.GetString( 0 ), out BaseCommand command );
|
||||||
m_Commands.TryGetValue( e.GetString( 0 ), out command );
|
|
||||||
|
|
||||||
if ( command == null )
|
if ( command == null )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ namespace Server.Commands.Generic
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BaseCommand command = null;
|
Commands.TryGetValue( e.GetString( 1 ), out BaseCommand command );
|
||||||
Commands.TryGetValue( e.GetString( 1 ), out command );
|
|
||||||
|
|
||||||
if ( command == null )
|
if ( command == null )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@ namespace Server.Commands.Generic
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BaseCommand command = null;
|
Commands.TryGetValue( e.GetString( 1 ), out BaseCommand command );
|
||||||
Commands.TryGetValue( e.GetString( 1 ), out command );
|
|
||||||
|
|
||||||
if ( command == null )
|
if ( command == null )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,7 @@ namespace Server.Commands.Generic
|
||||||
|
|
||||||
public void Redirect( CommandEventArgs e )
|
public void Redirect( CommandEventArgs e )
|
||||||
{
|
{
|
||||||
BaseCommand command = null;
|
Commands.TryGetValue( e.Command, out BaseCommand command );
|
||||||
|
|
||||||
Commands.TryGetValue( e.Command, out command );
|
|
||||||
|
|
||||||
if ( command == null )
|
if ( command == null )
|
||||||
e.Mobile.SendMessage( "That is either an invalid command name or one that does not support this modifier." );
|
e.Mobile.SendMessage( "That is either an invalid command name or one that does not support this modifier." );
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ namespace Server.Commands
|
||||||
private static Dictionary<string, CommandInfo> m_HelpInfos = new Dictionary<string, CommandInfo>();
|
private static Dictionary<string, CommandInfo> m_HelpInfos = new Dictionary<string, CommandInfo>();
|
||||||
private static List<CommandInfo> m_SortedHelpInfo = new List<CommandInfo>(); //No need for SortedList cause it's only sorted once at creation...
|
private static List<CommandInfo> m_SortedHelpInfo = new List<CommandInfo>(); //No need for SortedList cause it's only sorted once at creation...
|
||||||
|
|
||||||
public static Dictionary<string, CommandInfo> HelpInfos{ get { return m_HelpInfos; } }
|
public static Dictionary<string, CommandInfo> HelpInfos => m_HelpInfos;
|
||||||
public static List<CommandInfo> SortedHelpInfo { get { return m_SortedHelpInfo; } }
|
public static List<CommandInfo> SortedHelpInfo => m_SortedHelpInfo;
|
||||||
|
|
||||||
[CallPriority( 100 )]
|
[CallPriority( 100 )]
|
||||||
public static void Initialize()
|
public static void Initialize()
|
||||||
|
|
@ -37,9 +37,7 @@ namespace Server.Commands
|
||||||
if( e.Length > 0 )
|
if( e.Length > 0 )
|
||||||
{
|
{
|
||||||
string arg = e.GetString( 0 ).ToLower();
|
string arg = e.GetString( 0 ).ToLower();
|
||||||
CommandInfo c;
|
if (m_HelpInfos.TryGetValue( arg, out CommandInfo c ))
|
||||||
|
|
||||||
if( m_HelpInfos.TryGetValue( arg, out c ) )
|
|
||||||
{
|
{
|
||||||
Mobile m = e.Mobile;
|
Mobile m = e.Mobile;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ namespace Server.Engines.BulkOrders
|
||||||
return BulkMaterialType.None;
|
return BulkMaterialType.None;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1045151; } } // a bulk order deed
|
public override int LabelNumber => 1045151; // a bulk order deed
|
||||||
|
|
||||||
public LargeBOD( int hue, int amountMax, bool requireExeptional, BulkMaterialType material, LargeBulkEntry[] entries ) : base( Core.AOS ? 0x2258 : 0x14EF )
|
public LargeBOD( int hue, int amountMax, bool requireExeptional, BulkMaterialType material, LargeBulkEntry[] entries ) : base( Core.AOS ? 0x2258 : 0x14EF )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -134,14 +134,10 @@ namespace Server.Engines.BulkOrders
|
||||||
if (m_Cache == null)
|
if (m_Cache == null)
|
||||||
m_Cache = new Dictionary<string, Dictionary<string, SmallBulkEntry[]>>();
|
m_Cache = new Dictionary<string, Dictionary<string, SmallBulkEntry[]>>();
|
||||||
|
|
||||||
Dictionary<string, SmallBulkEntry[]> table = null;
|
if (!m_Cache.TryGetValue( type, out Dictionary<string, SmallBulkEntry[]> table ))
|
||||||
|
|
||||||
if (!m_Cache.TryGetValue(type, out table))
|
|
||||||
m_Cache[type] = table = new Dictionary<string, SmallBulkEntry[]>();
|
m_Cache[type] = table = new Dictionary<string, SmallBulkEntry[]>();
|
||||||
|
|
||||||
SmallBulkEntry[] entries = null;
|
if (!table.TryGetValue( name, out SmallBulkEntry[] entries ))
|
||||||
|
|
||||||
if (!table.TryGetValue(name, out entries))
|
|
||||||
table[name] = entries = SmallBulkEntry.LoadEntries(type, name);
|
table[name] = entries = SmallBulkEntry.LoadEntries(type, name);
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Server.Engines.BulkOrders
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public bool Complete{ get{ return ( m_AmountCur == m_AmountMax ); } }
|
public bool Complete{ get{ return ( m_AmountCur == m_AmountMax ); } }
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1045151; } } // a bulk order deed
|
public override int LabelNumber => 1045151; // a bulk order deed
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public SmallBOD( int hue, int amountMax, Type type, int number, int graphic, bool requireExeptional, BulkMaterialType material ) : base( Core.AOS ? 0x2258 : 0x14EF )
|
public SmallBOD( int hue, int amountMax, Type type, int number, int graphic, bool requireExeptional, BulkMaterialType material ) : base( Core.AOS ? 0x2258 : 0x14EF )
|
||||||
|
|
|
||||||
|
|
@ -49,14 +49,10 @@ namespace Server.Engines.BulkOrders
|
||||||
if ( m_Cache == null )
|
if ( m_Cache == null )
|
||||||
m_Cache = new Dictionary<string, Dictionary<string, SmallBulkEntry[]>>();
|
m_Cache = new Dictionary<string, Dictionary<string, SmallBulkEntry[]>>();
|
||||||
|
|
||||||
Dictionary<string, SmallBulkEntry[]> table = null;
|
if (!m_Cache.TryGetValue( type, out Dictionary<string, SmallBulkEntry[]> table ))
|
||||||
|
|
||||||
if (!m_Cache.TryGetValue(type, out table))
|
|
||||||
m_Cache[type] = table = new Dictionary<string, SmallBulkEntry[]>();
|
m_Cache[type] = table = new Dictionary<string, SmallBulkEntry[]>();
|
||||||
|
|
||||||
SmallBulkEntry[] entries = null;
|
if (!table.TryGetValue( name, out SmallBulkEntry[] entries ))
|
||||||
|
|
||||||
if (!table.TryGetValue(name, out entries))
|
|
||||||
table[name] = entries = LoadEntries(type, name);
|
table[name] = entries = LoadEntries(type, name);
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace Server.Items
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public ChampionSkullType Type{ get{ return m_Type; } set{ m_Type = value; InvalidateProperties(); } }
|
public ChampionSkullType Type{ get{ return m_Type; } set{ m_Type = value; InvalidateProperties(); } }
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1049479 + (int)m_Type; } }
|
public override int LabelNumber => 1049479 + (int)m_Type;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public ChampionSkull( ChampionSkullType type ) : base( 0x1AE1 )
|
public ChampionSkull( ChampionSkullType type ) : base( 0x1AE1 )
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Server.Engines.CannedEvil
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public Item Skull{ get{ return m_Skull; } set{ m_Skull = value; if ( m_Platform != null ) m_Platform.Validate(); } }
|
public Item Skull{ get{ return m_Skull; } set{ m_Skull = value; if ( m_Platform != null ) m_Platform.Validate(); } }
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1049489 + (int)m_Type; } }
|
public override int LabelNumber => 1049489 + (int)m_Type;
|
||||||
|
|
||||||
public ChampionSkullBrazier( ChampionSkullPlatform platform, ChampionSkullType type ) : base( 0x19BB )
|
public ChampionSkullBrazier( ChampionSkullPlatform platform, ChampionSkullType type ) : base( 0x19BB )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1288,7 +1288,7 @@ namespace Server.Engines.CannedEvil
|
||||||
{
|
{
|
||||||
private ChampionSpawn m_Spawn;
|
private ChampionSpawn m_Spawn;
|
||||||
|
|
||||||
public ChampionSpawn Spawn { get { return m_Spawn; } }
|
public ChampionSpawn Spawn => m_Spawn;
|
||||||
|
|
||||||
public override string DefaultName
|
public override string DefaultName
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,10 @@ namespace Server.Engines.CannedEvil
|
||||||
private Type[][] m_SpawnTypes;
|
private Type[][] m_SpawnTypes;
|
||||||
private string[] m_LevelNames;
|
private string[] m_LevelNames;
|
||||||
|
|
||||||
public string Name { get { return m_Name; } }
|
public string Name => m_Name;
|
||||||
public Type Champion { get { return m_Champion; } }
|
public Type Champion => m_Champion;
|
||||||
public Type[][] SpawnTypes { get { return m_SpawnTypes; } }
|
public Type[][] SpawnTypes => m_SpawnTypes;
|
||||||
public string[] LevelNames { get { return m_LevelNames; } }
|
public string[] LevelNames => m_LevelNames;
|
||||||
|
|
||||||
public ChampionSpawnInfo( string name, Type champion, string[] levelNames, Type[][] spawnTypes )
|
public ChampionSpawnInfo( string name, Type champion, string[] levelNames, Type[][] spawnTypes )
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Server.Engines.CannedEvil
|
||||||
m_SpawnTypes = spawnTypes;
|
m_SpawnTypes = spawnTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ChampionSpawnInfo[] Table{ get { return m_Table; } }
|
public static ChampionSpawnInfo[] Table => m_Table;
|
||||||
|
|
||||||
private static readonly ChampionSpawnInfo[] m_Table = new ChampionSpawnInfo[]
|
private static readonly ChampionSpawnInfo[] m_Table = new ChampionSpawnInfo[]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
private Mobile m_Harrower;
|
private Mobile m_Harrower;
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1049498; } } // dark moongate
|
public override int LabelNumber => 1049498; // dark moongate
|
||||||
|
|
||||||
public HarrowerGate( Mobile harrower, Point3D loc, Map map, Point3D targLoc, Map targMap ) : base( targLoc, targMap )
|
public HarrowerGate( Mobile harrower, Point3D loc, Map map, Point3D targLoc, Map targMap ) : base( targLoc, targMap )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace Server.Items
|
||||||
private DateTime m_DecayTime;
|
private DateTime m_DecayTime;
|
||||||
private Timer m_Timer;
|
private Timer m_Timer;
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1049498; } } // dark moongate
|
public override int LabelNumber => 1049498; // dark moongate
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public StarRoomGate() : this( false )
|
public StarRoomGate() : this( false )
|
||||||
|
|
|
||||||
|
|
@ -261,8 +261,7 @@ namespace Server.Engines.Chat
|
||||||
|
|
||||||
public static ChatUser GetChatUser( Mobile from )
|
public static ChatUser GetChatUser( Mobile from )
|
||||||
{
|
{
|
||||||
ChatUser c;
|
m_Table.TryGetValue( from, out ChatUser c );
|
||||||
m_Table.TryGetValue( from, out c );
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2437,7 +2437,7 @@ namespace Server.Engines.ConPVP
|
||||||
public TournyMatch m_Match;
|
public TournyMatch m_Match;
|
||||||
public EventGame m_EventGame;
|
public EventGame m_EventGame;
|
||||||
|
|
||||||
public Tournament Tournament { get { return m_Tournament; } }
|
public Tournament Tournament => m_Tournament;
|
||||||
|
|
||||||
public void SendReadyGump( int count )
|
public void SendReadyGump( int count )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -705,7 +705,7 @@ namespace Server.Engines.ConPVP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Mobile Thrower { get { return m_Thrower; } }
|
public Mobile Thrower => m_Thrower;
|
||||||
|
|
||||||
public bool CheckScore( BRGoal goal, Mobile m, int points )
|
public bool CheckScore( BRGoal goal, Mobile m, int points )
|
||||||
{
|
{
|
||||||
|
|
@ -1178,7 +1178,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private int m_Score;
|
private int m_Score;
|
||||||
|
|
||||||
public Mobile Player { get { return m_Player; } }
|
public Mobile Player => m_Player;
|
||||||
|
|
||||||
public int CompareTo( object obj )
|
public int CompareTo( object obj )
|
||||||
{
|
{
|
||||||
|
|
@ -1287,7 +1287,7 @@ namespace Server.Engines.ConPVP
|
||||||
}
|
}
|
||||||
|
|
||||||
public BRGame Game { get { return m_Game; } set { m_Game = value; } }
|
public BRGame Game { get { return m_Game; } set { m_Game = value; } }
|
||||||
public int TeamID { get { return m_TeamID; } }
|
public int TeamID => m_TeamID;
|
||||||
|
|
||||||
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
||||||
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
||||||
|
|
@ -1426,7 +1426,7 @@ namespace Server.Engines.ConPVP
|
||||||
private TimeSpan m_Duration;
|
private TimeSpan m_Duration;
|
||||||
private Point3D m_BombHome;
|
private Point3D m_BombHome;
|
||||||
|
|
||||||
public BRTeamInfo[] TeamInfo { get { return m_TeamInfo; } }
|
public BRTeamInfo[] TeamInfo => m_TeamInfo;
|
||||||
|
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public BRTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
public BRTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
||||||
|
|
@ -1571,7 +1571,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private BRController m_Controller;
|
private BRController m_Controller;
|
||||||
|
|
||||||
public BRController Controller { get { return m_Controller; } }
|
public BRController Controller => m_Controller;
|
||||||
|
|
||||||
public void Alert( string text )
|
public void Alert( string text )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -549,7 +549,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private int m_Score;
|
private int m_Score;
|
||||||
|
|
||||||
public Mobile Player { get { return m_Player; } }
|
public Mobile Player => m_Player;
|
||||||
|
|
||||||
string IRankedCTF.Name
|
string IRankedCTF.Name
|
||||||
{
|
{
|
||||||
|
|
@ -632,7 +632,7 @@ namespace Server.Engines.ConPVP
|
||||||
}
|
}
|
||||||
|
|
||||||
public CTFGame Game { get { return m_Game; } set { m_Game = value; } }
|
public CTFGame Game { get { return m_Game; } set { m_Game = value; } }
|
||||||
public int TeamID { get { return m_TeamID; } }
|
public int TeamID => m_TeamID;
|
||||||
|
|
||||||
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
||||||
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
||||||
|
|
@ -666,9 +666,7 @@ namespace Server.Engines.ConPVP
|
||||||
if ( mob == null )
|
if ( mob == null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
CTFPlayerInfo val;
|
if (!m_Players.TryGetValue( mob, out CTFPlayerInfo val ))
|
||||||
|
|
||||||
if ( !m_Players.TryGetValue( mob, out val ) )
|
|
||||||
m_Players[mob] = val = new CTFPlayerInfo( this, mob );
|
m_Players[mob] = val = new CTFPlayerInfo( this, mob );
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
|
|
@ -789,7 +787,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private TimeSpan m_Duration;
|
private TimeSpan m_Duration;
|
||||||
|
|
||||||
public CTFTeamInfo[] TeamInfo { get { return m_TeamInfo; } }
|
public CTFTeamInfo[] TeamInfo => m_TeamInfo;
|
||||||
|
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public CTFTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
public CTFTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
||||||
|
|
@ -919,7 +917,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private CTFController m_Controller;
|
private CTFController m_Controller;
|
||||||
|
|
||||||
public CTFController Controller { get { return m_Controller; } }
|
public CTFController Controller => m_Controller;
|
||||||
|
|
||||||
public void Alert( string text )
|
public void Alert( string text )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private int m_Score;
|
private int m_Score;
|
||||||
|
|
||||||
public Mobile Player { get { return m_Player; } }
|
public Mobile Player => m_Player;
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|
@ -322,7 +322,7 @@ namespace Server.Engines.ConPVP
|
||||||
}
|
}
|
||||||
|
|
||||||
public DDGame Game { get { return m_Game; } set { m_Game = value; } }
|
public DDGame Game { get { return m_Game; } set { m_Game = value; } }
|
||||||
public int TeamID { get { return m_TeamID; } }
|
public int TeamID => m_TeamID;
|
||||||
|
|
||||||
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
||||||
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
||||||
|
|
@ -356,9 +356,7 @@ namespace Server.Engines.ConPVP
|
||||||
if ( mob == null )
|
if ( mob == null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
DDPlayerInfo val;
|
if (!m_Players.TryGetValue( mob, out DDPlayerInfo val ))
|
||||||
|
|
||||||
if ( !m_Players.TryGetValue( mob, out val ) )
|
|
||||||
m_Players[mob] = val = new DDPlayerInfo( this, mob );
|
m_Players[mob] = val = new DDPlayerInfo( this, mob );
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
|
|
@ -449,7 +447,7 @@ namespace Server.Engines.ConPVP
|
||||||
|
|
||||||
private TimeSpan m_Duration;
|
private TimeSpan m_Duration;
|
||||||
|
|
||||||
public DDTeamInfo[] TeamInfo { get { return m_TeamInfo; } }
|
public DDTeamInfo[] TeamInfo => m_TeamInfo;
|
||||||
|
|
||||||
[CommandProperty( AccessLevel.GameMaster )]
|
[CommandProperty( AccessLevel.GameMaster )]
|
||||||
public DDTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
public DDTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
|
||||||
|
|
@ -487,7 +485,7 @@ namespace Server.Engines.ConPVP
|
||||||
return new DDGame( this, context );
|
return new DDGame( this, context );
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string DefaultName { get { return "DD Controller"; } }
|
public override string DefaultName => "DD Controller";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public DDController()
|
public DDController()
|
||||||
|
|
@ -554,7 +552,7 @@ namespace Server.Engines.ConPVP
|
||||||
{
|
{
|
||||||
private DDController m_Controller;
|
private DDController m_Controller;
|
||||||
|
|
||||||
public DDController Controller { get { return m_Controller; } }
|
public DDController Controller => m_Controller;
|
||||||
|
|
||||||
public void Alert( string text )
|
public void Alert( string text )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,9 @@ namespace Server.Engines.ConPVP
|
||||||
{
|
{
|
||||||
protected DuelContext m_Context;
|
protected DuelContext m_Context;
|
||||||
|
|
||||||
public DuelContext Context { get { return m_Context; } }
|
public DuelContext Context => m_Context;
|
||||||
|
|
||||||
public virtual bool FreeConsume { get { return true; } }
|
public virtual bool FreeConsume => true;
|
||||||
|
|
||||||
public EventGame( DuelContext context )
|
public EventGame( DuelContext context )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ namespace Server.Engines.ConPVP
|
||||||
private int m_Total;
|
private int m_Total;
|
||||||
private int m_Counter;
|
private int m_Counter;
|
||||||
|
|
||||||
public int Captures { get { return m_Total; } }
|
public int Captures => m_Total;
|
||||||
|
|
||||||
public KingTimer(HillOfTheKing hill)
|
public KingTimer(HillOfTheKing hill)
|
||||||
: base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
: base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||||
|
|
@ -537,7 +537,7 @@ namespace Server.Engines.ConPVP
|
||||||
m_Player = player;
|
m_Player = player;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Mobile Player { get { return m_Player; } }
|
public Mobile Player => m_Player;
|
||||||
|
|
||||||
public int CompareTo(object obj)
|
public int CompareTo(object obj)
|
||||||
{
|
{
|
||||||
|
|
@ -647,7 +647,7 @@ namespace Server.Engines.ConPVP
|
||||||
}
|
}
|
||||||
|
|
||||||
public KHGame Game { get { return m_Game; } set { m_Game = value; } }
|
public KHGame Game { get { return m_Game; } set { m_Game = value; } }
|
||||||
public int TeamID { get { return m_TeamID; } }
|
public int TeamID => m_TeamID;
|
||||||
|
|
||||||
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
public int Kills { get { return m_Kills; } set { m_Kills = value; } }
|
||||||
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
public int Captures { get { return m_Captures; } set { m_Captures = value; } }
|
||||||
|
|
@ -756,7 +756,7 @@ namespace Server.Engines.ConPVP
|
||||||
private TimeSpan m_Duration;
|
private TimeSpan m_Duration;
|
||||||
private int m_ScoreInterval;
|
private int m_ScoreInterval;
|
||||||
|
|
||||||
public KHTeamInfo[] TeamInfo { get { return m_TeamInfo; } }
|
public KHTeamInfo[] TeamInfo => m_TeamInfo;
|
||||||
|
|
||||||
[CommandProperty(AccessLevel.GameMaster)]
|
[CommandProperty(AccessLevel.GameMaster)]
|
||||||
public KHTeamInfo Team1_W { get { return m_TeamInfo[0]; } set { } }
|
public KHTeamInfo Team1_W { get { return m_TeamInfo[0]; } set { } }
|
||||||
|
|
@ -782,7 +782,7 @@ namespace Server.Engines.ConPVP
|
||||||
[CommandProperty(AccessLevel.GameMaster)]
|
[CommandProperty(AccessLevel.GameMaster)]
|
||||||
public KHTeamInfo Team8_NE { get { return m_TeamInfo[7]; } set { } }
|
public KHTeamInfo Team8_NE { get { return m_TeamInfo[7]; } set { } }
|
||||||
|
|
||||||
public HillOfTheKing[] Hills { get { return m_Hills; } }
|
public HillOfTheKing[] Hills => m_Hills;
|
||||||
|
|
||||||
[CommandProperty(AccessLevel.GameMaster)]
|
[CommandProperty(AccessLevel.GameMaster)]
|
||||||
public HillOfTheKing Hill1 { get { return m_Hills[0]; } set { m_Hills[0] = value; } }
|
public HillOfTheKing Hill1 { get { return m_Hills[0]; } set { m_Hills[0] = value; } }
|
||||||
|
|
@ -796,7 +796,7 @@ namespace Server.Engines.ConPVP
|
||||||
[CommandProperty(AccessLevel.GameMaster)]
|
[CommandProperty(AccessLevel.GameMaster)]
|
||||||
public HillOfTheKing Hill4 { get { return m_Hills[3]; } set { m_Hills[3] = value; } }
|
public HillOfTheKing Hill4 { get { return m_Hills[3]; } set { m_Hills[3] = value; } }
|
||||||
|
|
||||||
public ArrayList Boards { get { return m_Boards; } }
|
public ArrayList Boards => m_Boards;
|
||||||
|
|
||||||
[CommandProperty(AccessLevel.GameMaster)]
|
[CommandProperty(AccessLevel.GameMaster)]
|
||||||
public TimeSpan Duration
|
public TimeSpan Duration
|
||||||
|
|
@ -911,7 +911,7 @@ namespace Server.Engines.ConPVP
|
||||||
{
|
{
|
||||||
private KHController m_Controller;
|
private KHController m_Controller;
|
||||||
|
|
||||||
public KHController Controller { get { return m_Controller; } }
|
public KHController Controller => m_Controller;
|
||||||
|
|
||||||
public override bool CantDoAnything(Mobile mob)
|
public override bool CantDoAnything(Mobile mob)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace Server.Engines.Craft
|
||||||
private bool m_DoNotColor;
|
private bool m_DoNotColor;
|
||||||
private CraftMarkOption m_MarkOption;
|
private CraftMarkOption m_MarkOption;
|
||||||
|
|
||||||
public List<CraftItem> Items { get { return m_Items; } }
|
public List<CraftItem> Items => m_Items;
|
||||||
public int LastResourceIndex{ get{ return m_LastResourceIndex; } set{ m_LastResourceIndex = value; } }
|
public int LastResourceIndex{ get{ return m_LastResourceIndex; } set{ m_LastResourceIndex = value; } }
|
||||||
public int LastResourceIndex2{ get{ return m_LastResourceIndex2; } set{ m_LastResourceIndex2 = value; } }
|
public int LastResourceIndex2{ get{ return m_LastResourceIndex2; } set{ m_LastResourceIndex2 = value; } }
|
||||||
public int LastGroupIndex{ get{ return m_LastGroupIndex; } set{ m_LastGroupIndex = value; } }
|
public int LastGroupIndex{ get{ return m_LastGroupIndex; } set{ m_LastGroupIndex = value; } }
|
||||||
|
|
|
||||||
|
|
@ -95,9 +95,7 @@ namespace Server.Engines.Craft
|
||||||
private static Dictionary<Type, int> _itemIds = new Dictionary<Type, int>();
|
private static Dictionary<Type, int> _itemIds = new Dictionary<Type, int>();
|
||||||
|
|
||||||
public static int ItemIDOf( Type type ) {
|
public static int ItemIDOf( Type type ) {
|
||||||
int itemId;
|
if (!_itemIds.TryGetValue( type, out int itemId )) {
|
||||||
|
|
||||||
if ( !_itemIds.TryGetValue( type, out itemId ) ) {
|
|
||||||
if ( type == typeof( FactionExplosionTrap ) ) {
|
if ( type == typeof( FactionExplosionTrap ) ) {
|
||||||
itemId = 14034;
|
itemId = 14034;
|
||||||
} else if ( type == typeof( FactionGasTrap ) ) {
|
} else if ( type == typeof( FactionGasTrap ) ) {
|
||||||
|
|
|
||||||
|
|
@ -29,14 +29,14 @@ namespace Server.Engines.Craft
|
||||||
private List<int> m_Recipes;
|
private List<int> m_Recipes;
|
||||||
private List<int> m_RareRecipes;
|
private List<int> m_RareRecipes;
|
||||||
|
|
||||||
public int MinCraftEffect { get { return m_MinCraftEffect; } }
|
public int MinCraftEffect => m_MinCraftEffect;
|
||||||
public int MaxCraftEffect { get { return m_MaxCraftEffect; } }
|
public int MaxCraftEffect => m_MaxCraftEffect;
|
||||||
public double Delay { get { return m_Delay; } }
|
public double Delay => m_Delay;
|
||||||
|
|
||||||
public CraftItemCol CraftItems{ get { return m_CraftItems; } }
|
public CraftItemCol CraftItems => m_CraftItems;
|
||||||
public CraftGroupCol CraftGroups{ get { return m_CraftGroups; } }
|
public CraftGroupCol CraftGroups => m_CraftGroups;
|
||||||
public CraftSubResCol CraftSubRes{ get { return m_CraftSubRes; } }
|
public CraftSubResCol CraftSubRes => m_CraftSubRes;
|
||||||
public CraftSubResCol CraftSubRes2{ get { return m_CraftSubRes2; } }
|
public CraftSubResCol CraftSubRes2 => m_CraftSubRes2;
|
||||||
|
|
||||||
public abstract SkillName MainSkill{ get; }
|
public abstract SkillName MainSkill{ get; }
|
||||||
|
|
||||||
|
|
@ -65,8 +65,7 @@ namespace Server.Engines.Craft
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
CraftContext c = null;
|
m_ContextTable.TryGetValue( m, out CraftContext c );
|
||||||
m_ContextTable.TryGetValue( m, out c );
|
|
||||||
|
|
||||||
if ( c == null )
|
if ( c == null )
|
||||||
m_ContextTable[m] = c = new CraftContext();
|
m_ContextTable[m] = c = new CraftContext();
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ namespace Server.Engines.Craft
|
||||||
|
|
||||||
private static Dictionary<int, Recipe> m_Recipes = new Dictionary<int, Recipe>();
|
private static Dictionary<int, Recipe> m_Recipes = new Dictionary<int, Recipe>();
|
||||||
|
|
||||||
public static Dictionary<int, Recipe> Recipes { get { return m_Recipes; } }
|
public static Dictionary<int, Recipe> Recipes => m_Recipes;
|
||||||
|
|
||||||
private static int m_LargestRecipeID;
|
private static int m_LargestRecipeID;
|
||||||
public static int LargestRecipeID{ get{ return m_LargestRecipeID; } }
|
public static int LargestRecipeID{ get{ return m_LargestRecipeID; } }
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ namespace Server.Engines.Craft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CraftECA ECA{ get{ return CraftECA.ChanceMinusSixtyToFourtyFive; } }
|
public override CraftECA ECA => CraftECA.ChanceMinusSixtyToFourtyFive;
|
||||||
|
|
||||||
public override double GetChanceAtMin( CraftItem item )
|
public override double GetChanceAtMin( CraftItem item )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ namespace Server.Engines.Craft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CraftECA ECA{ get{ return CraftECA.FiftyPercentChanceMinusTenPercent; } }
|
public override CraftECA ECA => CraftECA.FiftyPercentChanceMinusTenPercent;
|
||||||
|
|
||||||
public override void InitCraftList()
|
public override void InitCraftList()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ namespace Server.Engines.Craft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CraftECA ECA{ get{ return CraftECA.ChanceMinusSixtyToFourtyFive; } }
|
public override CraftECA ECA => CraftECA.ChanceMinusSixtyToFourtyFive;
|
||||||
|
|
||||||
public override double GetChanceAtMin( CraftItem item )
|
public override double GetChanceAtMin( CraftItem item )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ namespace Server.Engines.Craft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CraftECA ECA{ get{ return CraftECA.ChanceMinusSixtyToFourtyFive; } }
|
public override CraftECA ECA => CraftECA.ChanceMinusSixtyToFourtyFive;
|
||||||
|
|
||||||
public override double GetChanceAtMin( CraftItem item )
|
public override double GetChanceAtMin( CraftItem item )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -498,7 +498,7 @@ namespace Server.Engines.Craft
|
||||||
[CraftItemID( 0x1BFC )]
|
[CraftItemID( 0x1BFC )]
|
||||||
public class DartTrapCraft : TrapCraft
|
public class DartTrapCraft : TrapCraft
|
||||||
{
|
{
|
||||||
public override TrapType TrapType{ get{ return TrapType.DartTrap; } }
|
public override TrapType TrapType => TrapType.DartTrap;
|
||||||
|
|
||||||
public DartTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
public DartTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
||||||
{
|
{
|
||||||
|
|
@ -508,7 +508,7 @@ namespace Server.Engines.Craft
|
||||||
[CraftItemID( 0x113E )]
|
[CraftItemID( 0x113E )]
|
||||||
public class PoisonTrapCraft : TrapCraft
|
public class PoisonTrapCraft : TrapCraft
|
||||||
{
|
{
|
||||||
public override TrapType TrapType{ get{ return TrapType.PoisonTrap; } }
|
public override TrapType TrapType => TrapType.PoisonTrap;
|
||||||
|
|
||||||
public PoisonTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
public PoisonTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
||||||
{
|
{
|
||||||
|
|
@ -518,7 +518,7 @@ namespace Server.Engines.Craft
|
||||||
[CraftItemID( 0x370C )]
|
[CraftItemID( 0x370C )]
|
||||||
public class ExplosionTrapCraft : TrapCraft
|
public class ExplosionTrapCraft : TrapCraft
|
||||||
{
|
{
|
||||||
public override TrapType TrapType{ get{ return TrapType.ExplosionTrap; } }
|
public override TrapType TrapType => TrapType.ExplosionTrap;
|
||||||
|
|
||||||
public ExplosionTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
public ExplosionTrapCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality ) : base( from, craftItem, craftSystem, typeRes, tool, quality )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Ethics
|
||||||
{
|
{
|
||||||
private static EthicsPersistance m_Instance;
|
private static EthicsPersistance m_Instance;
|
||||||
|
|
||||||
public static EthicsPersistance Instance { get { return m_Instance; } }
|
public static EthicsPersistance Instance => m_Instance;
|
||||||
|
|
||||||
public override string DefaultName
|
public override string DefaultName
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,8 @@ namespace Server.Ethics
|
||||||
|
|
||||||
private DateTime m_Shield;
|
private DateTime m_Shield;
|
||||||
|
|
||||||
public Ethic Ethic { get { return m_Ethic; } }
|
public Ethic Ethic => m_Ethic;
|
||||||
public Mobile Mobile { get { return m_Mobile; } }
|
public Mobile Mobile => m_Mobile;
|
||||||
|
|
||||||
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
|
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
|
||||||
public int Power { get { return m_Power; } set { m_Power = value; } }
|
public int Power { get { return m_Power; } set { m_Power = value; } }
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Server.Ethics
|
||||||
{
|
{
|
||||||
protected PowerDefinition m_Definition;
|
protected PowerDefinition m_Definition;
|
||||||
|
|
||||||
public PowerDefinition Definition { get { return m_Definition; } }
|
public PowerDefinition Definition => m_Definition;
|
||||||
|
|
||||||
public virtual bool CheckInvoke( Player from )
|
public virtual bool CheckInvoke( Player from )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,14 @@ namespace Server.Ethics
|
||||||
|
|
||||||
private Power[] m_Powers;
|
private Power[] m_Powers;
|
||||||
|
|
||||||
public int PrimaryHue { get { return m_PrimaryHue; } }
|
public int PrimaryHue => m_PrimaryHue;
|
||||||
|
|
||||||
public TextDefinition Title { get { return m_Title; } }
|
public TextDefinition Title => m_Title;
|
||||||
public TextDefinition Adjunct { get { return m_Adjunct; } }
|
public TextDefinition Adjunct => m_Adjunct;
|
||||||
|
|
||||||
public TextDefinition JoinPhrase { get { return m_JoinPhrase; } }
|
public TextDefinition JoinPhrase => m_JoinPhrase;
|
||||||
|
|
||||||
public Power[] Powers { get { return m_Powers; } }
|
public Power[] Powers => m_Powers;
|
||||||
|
|
||||||
public EthicDefinition( int primaryHue, TextDefinition title, TextDefinition adjunct, TextDefinition joinPhrase, Power[] powers )
|
public EthicDefinition( int primaryHue, TextDefinition title, TextDefinition adjunct, TextDefinition joinPhrase, Power[] powers )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ namespace Server.Ethics
|
||||||
private TextDefinition m_Phrase;
|
private TextDefinition m_Phrase;
|
||||||
private TextDefinition m_Description;
|
private TextDefinition m_Description;
|
||||||
|
|
||||||
public int Power { get { return m_Power; } }
|
public int Power => m_Power;
|
||||||
|
|
||||||
public TextDefinition Name { get { return m_Name; } }
|
public TextDefinition Name => m_Name;
|
||||||
public TextDefinition Phrase { get { return m_Phrase; } }
|
public TextDefinition Phrase => m_Phrase;
|
||||||
public TextDefinition Description { get { return m_Description; } }
|
public TextDefinition Description => m_Description;
|
||||||
|
|
||||||
public PowerDefinition( int power, TextDefinition name, TextDefinition phrase, TextDefinition description )
|
public PowerDefinition( int power, TextDefinition name, TextDefinition phrase, TextDefinition description )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,10 @@ namespace Server.Mobiles
|
||||||
ControlSlots = 1;
|
ControlSlots = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Meat { get { return 1; } }
|
public override int Meat => 1;
|
||||||
public override int Hides { get { return 7; } }
|
public override int Hides => 7;
|
||||||
public override FoodType FavoriteFood { get { return FoodType.Meat; } }
|
public override FoodType FavoriteFood => FoodType.Meat;
|
||||||
public override PackInstinct PackInstinct { get { return PackInstinct.Canine; } }
|
public override PackInstinct PackInstinct => PackInstinct.Canine;
|
||||||
|
|
||||||
public UnholyFamiliar( Serial serial )
|
public UnholyFamiliar( Serial serial )
|
||||||
: base( serial )
|
: base( serial )
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ namespace Server.Mobiles
|
||||||
ControlSlots = 1;
|
ControlSlots = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override FoodType FavoriteFood { get { return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } }
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
||||||
|
|
||||||
public UnholySteed( Serial serial )
|
public UnholySteed( Serial serial )
|
||||||
: base( serial )
|
: base( serial )
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,10 @@ namespace Server.Mobiles
|
||||||
ControlSlots = 1;
|
ControlSlots = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Meat { get { return 1; } }
|
public override int Meat => 1;
|
||||||
public override int Hides { get { return 7; } }
|
public override int Hides => 7;
|
||||||
public override FoodType FavoriteFood { get { return FoodType.Meat; } }
|
public override FoodType FavoriteFood => FoodType.Meat;
|
||||||
public override PackInstinct PackInstinct { get { return PackInstinct.Canine; } }
|
public override PackInstinct PackInstinct => PackInstinct.Canine;
|
||||||
|
|
||||||
public HolyFamiliar( Serial serial )
|
public HolyFamiliar( Serial serial )
|
||||||
: base( serial )
|
: base( serial )
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ namespace Server.Mobiles
|
||||||
ControlSlots = 1;
|
ControlSlots = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override FoodType FavoriteFood { get { return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } }
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
||||||
|
|
||||||
public HolySteed( Serial serial )
|
public HolySteed( Serial serial )
|
||||||
: base( serial )
|
: base( serial )
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace Server.Factions
|
||||||
|
|
||||||
public Faction Faction{ get{ return m_Faction; } }
|
public Faction Faction{ get{ return m_Faction; } }
|
||||||
|
|
||||||
public List<Candidate> Candidates { get { return m_Candidates; } }
|
public List<Candidate> Candidates => m_Candidates;
|
||||||
|
|
||||||
public ElectionState State{ get{ return m_State; } set{ m_State = value; m_LastStateTime = DateTime.UtcNow; } }
|
public ElectionState State{ get{ return m_State; } set{ m_State = value; m_LastStateTime = DateTime.UtcNow; } }
|
||||||
public DateTime LastStateTime{ get{ return m_LastStateTime; } }
|
public DateTime LastStateTime{ get{ return m_LastStateTime; } }
|
||||||
|
|
@ -483,7 +483,7 @@ namespace Server.Factions
|
||||||
private List<Voter> m_Voters;
|
private List<Voter> m_Voters;
|
||||||
|
|
||||||
public Mobile Mobile{ get{ return m_Mobile; } }
|
public Mobile Mobile{ get{ return m_Mobile; } }
|
||||||
public List<Voter> Voters { get { return m_Voters; } }
|
public List<Voter> Voters => m_Voters;
|
||||||
|
|
||||||
public int Votes{ get{ return m_Voters.Count; } }
|
public int Votes{ get{ return m_Voters.Count; } }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -927,9 +927,7 @@ namespace Server.Factions
|
||||||
|
|
||||||
public static bool ClearSkillLoss( Mobile mob )
|
public static bool ClearSkillLoss( Mobile mob )
|
||||||
{
|
{
|
||||||
SkillLossContext context;
|
if (!m_SkillLoss.TryGetValue( mob, out SkillLossContext context ))
|
||||||
|
|
||||||
if ( !m_SkillLoss.TryGetValue( mob, out context ) )
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_SkillLoss.Remove( mob );
|
m_SkillLoss.Remove( mob );
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@ namespace Server.Factions
|
||||||
|
|
||||||
public Mobile Mobile{ get{ return m_Mobile; } }
|
public Mobile Mobile{ get{ return m_Mobile; } }
|
||||||
public Faction Faction{ get{ return m_Faction; } }
|
public Faction Faction{ get{ return m_Faction; } }
|
||||||
public List<PlayerState> Owner { get { return m_Owner; } }
|
public List<PlayerState> Owner => m_Owner;
|
||||||
public MerchantTitle MerchantTitle{ get{ return m_MerchantTitle; } set{ m_MerchantTitle = value; Invalidate(); } }
|
public MerchantTitle MerchantTitle{ get{ return m_MerchantTitle; } set{ m_MerchantTitle = value; Invalidate(); } }
|
||||||
public Town Sheriff{ get{ return m_Sheriff; } set{ m_Sheriff = value; Invalidate(); } }
|
public Town Sheriff{ get{ return m_Sheriff; } set{ m_Sheriff = value; Invalidate(); } }
|
||||||
public Town Finance{ get{ return m_Finance; } set{ m_Finance = value; Invalidate(); } }
|
public Town Finance{ get{ return m_Finance; } set{ m_Finance = value; Invalidate(); } }
|
||||||
public List<SilverGivenEntry> SilverGiven { get { return m_SilverGiven; } }
|
public List<SilverGivenEntry> SilverGiven => m_SilverGiven;
|
||||||
|
|
||||||
public int KillPoints {
|
public int KillPoints {
|
||||||
get { return m_KillPoints; }
|
get { return m_KillPoints; }
|
||||||
|
|
|
||||||
|
|
@ -436,7 +436,7 @@ namespace Server.Factions
|
||||||
return ( mob.AccessLevel >= AccessLevel.GameMaster || mob == Finance );
|
return ( mob.AccessLevel >= AccessLevel.GameMaster || mob == Finance );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<Town> Towns { get { return Reflector.Towns; } }
|
public static List<Town> Towns => Reflector.Towns;
|
||||||
|
|
||||||
public const int SilverCaptureBonus = 10000;
|
public const int SilverCaptureBonus = 10000;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ namespace Server.Factions
|
||||||
private List<BaseFactionVendor> m_Vendors;
|
private List<BaseFactionVendor> m_Vendors;
|
||||||
|
|
||||||
public VendorDefinition Definition{ get{ return m_Definition; } }
|
public VendorDefinition Definition{ get{ return m_Definition; } }
|
||||||
public List<BaseFactionVendor> Vendors { get { return m_Vendors; } }
|
public List<BaseFactionVendor> Vendors => m_Vendors;
|
||||||
|
|
||||||
public BaseFactionVendor Construct( Town town, Faction faction )
|
public BaseFactionVendor Construct( Town town, Faction faction )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ namespace Server.Factions
|
||||||
|
|
||||||
public string FriendlyName{ get{ return m_FriendlyName; } }
|
public string FriendlyName{ get{ return m_FriendlyName; } }
|
||||||
public string Keyword{ get{ return m_Keyword; } }
|
public string Keyword{ get{ return m_Keyword; } }
|
||||||
public string Abbreviation{ get { return m_Abbreviation; } }
|
public string Abbreviation => m_Abbreviation;
|
||||||
|
|
||||||
public TextDefinition Name{ get{ return m_Name; } }
|
public TextDefinition Name{ get{ return m_Name; } }
|
||||||
public TextDefinition PropName{ get{ return m_PropName; } }
|
public TextDefinition PropName{ get{ return m_PropName; } }
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Server.Factions
|
||||||
private PlayerMobile m_From;
|
private PlayerMobile m_From;
|
||||||
private Faction m_Faction;
|
private Faction m_Faction;
|
||||||
|
|
||||||
public override int ButtonTypes{ get{ return 4; } }
|
public override int ButtonTypes => 4;
|
||||||
|
|
||||||
public FactionStoneGump( PlayerMobile from, Faction faction ) : base( 20, 30 )
|
public FactionStoneGump( PlayerMobile from, Faction faction ) : base( 20, 30 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Server.Factions
|
||||||
+50, +100, +150, +200, +250, +300
|
+50, +100, +150, +200, +250, +300
|
||||||
};
|
};
|
||||||
|
|
||||||
public override int ButtonTypes{ get{ return 2; } }
|
public override int ButtonTypes => 2;
|
||||||
|
|
||||||
public FinanceGump( PlayerMobile from, Faction faction, Town town ) : base( 50, 50 )
|
public FinanceGump( PlayerMobile from, Faction faction, Town town ) : base( 50, 50 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Server.Factions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string DefaultName { get { return "faction stone"; } }
|
public override string DefaultName => "faction stone";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionStone() : this( null )
|
public FactionStone() : this( null )
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Server.Factions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string DefaultName { get { return "faction signup stone"; } }
|
public override string DefaultName => "faction signup stone";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public JoinStone() : this( null )
|
public JoinStone() : this( null )
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class StrongholdMonolith : BaseMonolith
|
public class StrongholdMonolith : BaseMonolith
|
||||||
{
|
{
|
||||||
public override int DefaultLabelNumber{ get{ return 1041042; } } // A Faction Sigil Monolith
|
public override int DefaultLabelNumber => 1041042; // A Faction Sigil Monolith
|
||||||
|
|
||||||
public override void OnTownChanged()
|
public override void OnTownChanged()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class TownMonolith : BaseMonolith
|
public class TownMonolith : BaseMonolith
|
||||||
{
|
{
|
||||||
public override int DefaultLabelNumber{ get{ return 1041403; } } // A Faction Town Sigil Monolith
|
public override int DefaultLabelNumber => 1041403; // A Faction Town Sigil Monolith
|
||||||
|
|
||||||
public override void OnTownChanged()
|
public override void OnTownChanged()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Server.Factions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string DefaultName { get { return "faction town stone"; } }
|
public override string DefaultName => "faction town stone";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TownStone() : this( null )
|
public TownStone() : this( null )
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionExplosionTrap : BaseFactionTrap
|
public class FactionExplosionTrap : BaseFactionTrap
|
||||||
{
|
{
|
||||||
public override int LabelNumber{ get{ return 1044599; } } // faction explosion trap
|
public override int LabelNumber => 1044599; // faction explosion trap
|
||||||
|
|
||||||
public override int AttackMessage{ get{ return 1010543; } } // You are enveloped in an explosion of fire!
|
public override int AttackMessage => 1010543; // You are enveloped in an explosion of fire!
|
||||||
public override int DisarmMessage{ get{ return 1010539; } } // You carefully remove the pressure trigger and disable the trap.
|
public override int DisarmMessage => 1010539; // You carefully remove the pressure trigger and disable the trap.
|
||||||
public override int EffectSound{ get{ return 0x307; } }
|
public override int EffectSound => 0x307;
|
||||||
public override int MessageHue{ get{ return 0x78; } }
|
public override int MessageHue => 0x78;
|
||||||
|
|
||||||
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.AnyFactionTown; } }
|
public override AllowedPlacing AllowedPlacing => AllowedPlacing.AnyFactionTown;
|
||||||
|
|
||||||
public override void DoVisibleEffect()
|
public override void DoVisibleEffect()
|
||||||
{
|
{
|
||||||
|
|
@ -58,8 +58,8 @@ namespace Server.Factions
|
||||||
|
|
||||||
public class FactionExplosionTrapDeed : BaseFactionTrapDeed
|
public class FactionExplosionTrapDeed : BaseFactionTrapDeed
|
||||||
{
|
{
|
||||||
public override Type TrapType{ get{ return typeof( FactionExplosionTrap ); } }
|
public override Type TrapType => typeof( FactionExplosionTrap );
|
||||||
public override int LabelNumber{ get{ return 1044603; } } // faction explosion trap deed
|
public override int LabelNumber => 1044603; // faction explosion trap deed
|
||||||
|
|
||||||
public FactionExplosionTrapDeed() : base( 0x36D2 )
|
public FactionExplosionTrapDeed() : base( 0x36D2 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionGasTrap : BaseFactionTrap
|
public class FactionGasTrap : BaseFactionTrap
|
||||||
{
|
{
|
||||||
public override int LabelNumber{ get{ return 1044598; } } // faction gas trap
|
public override int LabelNumber => 1044598; // faction gas trap
|
||||||
|
|
||||||
public override int AttackMessage{ get{ return 1010542; } } // A noxious green cloud of poison gas envelops you!
|
public override int AttackMessage => 1010542; // A noxious green cloud of poison gas envelops you!
|
||||||
public override int DisarmMessage{ get{ return 502376; } } // The poison leaks harmlessly away due to your deft touch.
|
public override int DisarmMessage => 502376; // The poison leaks harmlessly away due to your deft touch.
|
||||||
public override int EffectSound{ get{ return 0x230; } }
|
public override int EffectSound => 0x230;
|
||||||
public override int MessageHue{ get{ return 0x44; } }
|
public override int MessageHue => 0x44;
|
||||||
|
|
||||||
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.FactionStronghold; } }
|
public override AllowedPlacing AllowedPlacing => AllowedPlacing.FactionStronghold;
|
||||||
|
|
||||||
public override void DoVisibleEffect()
|
public override void DoVisibleEffect()
|
||||||
{
|
{
|
||||||
|
|
@ -58,8 +58,8 @@ namespace Server.Factions
|
||||||
|
|
||||||
public class FactionGasTrapDeed : BaseFactionTrapDeed
|
public class FactionGasTrapDeed : BaseFactionTrapDeed
|
||||||
{
|
{
|
||||||
public override Type TrapType{ get{ return typeof( FactionGasTrap ); } }
|
public override Type TrapType => typeof( FactionGasTrap );
|
||||||
public override int LabelNumber{ get{ return 1044602; } } // faction gas trap deed
|
public override int LabelNumber => 1044602; // faction gas trap deed
|
||||||
|
|
||||||
public FactionGasTrapDeed() : base( 0x11AB )
|
public FactionGasTrapDeed() : base( 0x11AB )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionSawTrap : BaseFactionTrap
|
public class FactionSawTrap : BaseFactionTrap
|
||||||
{
|
{
|
||||||
public override int LabelNumber{ get{ return 1041047; } } // faction saw trap
|
public override int LabelNumber => 1041047; // faction saw trap
|
||||||
|
|
||||||
public override int AttackMessage{ get{ return 1010544; } } // The blade cuts deep into your skin!
|
public override int AttackMessage => 1010544; // The blade cuts deep into your skin!
|
||||||
public override int DisarmMessage{ get{ return 1010540; } } // You carefully dismantle the saw mechanism and disable the trap.
|
public override int DisarmMessage => 1010540; // You carefully dismantle the saw mechanism and disable the trap.
|
||||||
public override int EffectSound{ get{ return 0x218; } }
|
public override int EffectSound => 0x218;
|
||||||
public override int MessageHue{ get{ return 0x5A; } }
|
public override int MessageHue => 0x5A;
|
||||||
|
|
||||||
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.ControlledFactionTown; } }
|
public override AllowedPlacing AllowedPlacing => AllowedPlacing.ControlledFactionTown;
|
||||||
|
|
||||||
public override void DoVisibleEffect()
|
public override void DoVisibleEffect()
|
||||||
{
|
{
|
||||||
|
|
@ -58,8 +58,8 @@ namespace Server.Factions
|
||||||
|
|
||||||
public class FactionSawTrapDeed : BaseFactionTrapDeed
|
public class FactionSawTrapDeed : BaseFactionTrapDeed
|
||||||
{
|
{
|
||||||
public override Type TrapType{ get{ return typeof( FactionSawTrap ); } }
|
public override Type TrapType => typeof( FactionSawTrap );
|
||||||
public override int LabelNumber{ get{ return 1044604; } } // faction saw trap deed
|
public override int LabelNumber => 1044604; // faction saw trap deed
|
||||||
|
|
||||||
public FactionSawTrapDeed() : base( 0x1107 )
|
public FactionSawTrapDeed() : base( 0x1107 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionSpikeTrap : BaseFactionTrap
|
public class FactionSpikeTrap : BaseFactionTrap
|
||||||
{
|
{
|
||||||
public override int LabelNumber{ get{ return 1044601; } } // faction spike trap
|
public override int LabelNumber => 1044601; // faction spike trap
|
||||||
|
|
||||||
public override int AttackMessage{ get{ return 1010545; } } // Large spikes in the ground spring up piercing your skin!
|
public override int AttackMessage => 1010545; // Large spikes in the ground spring up piercing your skin!
|
||||||
public override int DisarmMessage{ get{ return 1010541; } } // You carefully dismantle the trigger on the spikes and disable the trap.
|
public override int DisarmMessage => 1010541; // You carefully dismantle the trigger on the spikes and disable the trap.
|
||||||
public override int EffectSound{ get{ return 0x22E; } }
|
public override int EffectSound => 0x22E;
|
||||||
public override int MessageHue{ get{ return 0x5A; } }
|
public override int MessageHue => 0x5A;
|
||||||
|
|
||||||
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.ControlledFactionTown; } }
|
public override AllowedPlacing AllowedPlacing => AllowedPlacing.ControlledFactionTown;
|
||||||
|
|
||||||
public override void DoVisibleEffect()
|
public override void DoVisibleEffect()
|
||||||
{
|
{
|
||||||
|
|
@ -58,8 +58,8 @@ namespace Server.Factions
|
||||||
|
|
||||||
public class FactionSpikeTrapDeed : BaseFactionTrapDeed
|
public class FactionSpikeTrapDeed : BaseFactionTrapDeed
|
||||||
{
|
{
|
||||||
public override Type TrapType{ get{ return typeof( FactionSpikeTrap ); } }
|
public override Type TrapType => typeof( FactionSpikeTrap );
|
||||||
public override int LabelNumber{ get{ return 1044605; } } // faction spike trap deed
|
public override int LabelNumber => 1044605; // faction spike trap deed
|
||||||
|
|
||||||
public FactionSpikeTrapDeed() : base( 0x11A5 )
|
public FactionSpikeTrapDeed() : base( 0x11A5 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Server.Factions
|
||||||
set{ m_Charges = value; }
|
set{ m_Charges = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1041508; } } // a faction trap removal kit
|
public override int LabelNumber => 1041508; // a faction trap removal kit
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionTrapRemovalKit() : base( 7867 )
|
public FactionTrapRemovalKit() : base( 7867 )
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ namespace Server.Factions
|
||||||
Faction = faction;
|
Faction = faction;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } }
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
||||||
|
|
||||||
public FactionWarHorse( Serial serial ) : base( serial )
|
public FactionWarHorse( Serial serial ) : base( serial )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ namespace Server.Factions
|
||||||
get { return new FactionGuardAI( this ); }
|
get { return new FactionGuardAI( this ); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override TimeSpan ReacquireDelay{ get{ return TimeSpan.FromSeconds( 2.0 ); } }
|
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 2.0 );
|
||||||
|
|
||||||
public override bool IsEnemy( Mobile m )
|
public override bool IsEnemy( Mobile m )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionBerserker : BaseFactionGuard
|
public class FactionBerserker : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Curse | GuardAI.Bless; } }
|
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Curse | GuardAI.Bless;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionBerserker() : base( "the berserker" )
|
public FactionBerserker() : base( "the berserker" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionDeathKnight : BaseFactionGuard
|
public class FactionDeathKnight : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Curse | GuardAI.Bless; } }
|
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Curse | GuardAI.Bless;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionDeathKnight() : base( "the death knight" )
|
public FactionDeathKnight() : base( "the death knight" )
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionDragoon : BaseFactionGuard
|
public class FactionDragoon : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionDragoon() : base( "the dragoon" )
|
public FactionDragoon() : base( "the dragoon" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionHenchman : BaseFactionGuard
|
public class FactionHenchman : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Melee; } }
|
public override GuardAI GuardAI => GuardAI.Melee;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionHenchman() : base( "the henchman" )
|
public FactionHenchman() : base( "the henchman" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionKnight : BaseFactionGuard
|
public class FactionKnight : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionKnight() : base( "the knight" )
|
public FactionKnight() : base( "the knight" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionMercenary : BaseFactionGuard
|
public class FactionMercenary : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Smart; } }
|
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Smart;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionMercenary() : base( "the mercenary" )
|
public FactionMercenary() : base( "the mercenary" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionNecromancer : BaseFactionGuard
|
public class FactionNecromancer : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionNecromancer() : base( "the necromancer" )
|
public FactionNecromancer() : base( "the necromancer" )
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionPaladin : BaseFactionGuard
|
public class FactionPaladin : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionPaladin() : base( "the paladin" )
|
public FactionPaladin() : base( "the paladin" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionSorceress : BaseFactionGuard
|
public class FactionSorceress : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Bless | GuardAI.Curse; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Bless | GuardAI.Curse;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionSorceress() : base( "the sorceress" )
|
public FactionSorceress() : base( "the sorceress" )
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
public class FactionWizard : BaseFactionGuard
|
public class FactionWizard : BaseFactionGuard
|
||||||
{
|
{
|
||||||
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
|
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public FactionWizard() : base( "the wizard" )
|
public FactionWizard() : base( "the wizard" )
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
public override IShopSellInfo SellInfo => m_SellInfo;
|
||||||
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
|
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
|
||||||
|
|
||||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
public override IShopSellInfo SellInfo => m_SellInfo;
|
||||||
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
|
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
|
||||||
|
|
||||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
public override IShopSellInfo SellInfo => m_SellInfo;
|
||||||
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
|
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
|
||||||
|
|
||||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
public override IShopSellInfo SellInfo => m_SellInfo;
|
||||||
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
|
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
|
||||||
|
|
||||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Server.Engines.Harvest
|
||||||
public double ReqSkill { get { return m_ReqSkill; } set { m_ReqSkill = value; } }
|
public double ReqSkill { get { return m_ReqSkill; } set { m_ReqSkill = value; } }
|
||||||
public double Chance { get { return m_Chance; } set { m_Chance = value; } }
|
public double Chance { get { return m_Chance; } set { m_Chance = value; } }
|
||||||
|
|
||||||
public TextDefinition SuccessMessage { get { return m_SuccessMessage; } }
|
public TextDefinition SuccessMessage => m_SuccessMessage;
|
||||||
|
|
||||||
public void SendSuccessTo( Mobile m )
|
public void SendSuccessTo( Mobile m )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -77,15 +77,13 @@ namespace Server.Engines.Harvest
|
||||||
x /= m_BankWidth;
|
x /= m_BankWidth;
|
||||||
y /= m_BankHeight;
|
y /= m_BankHeight;
|
||||||
|
|
||||||
Dictionary<Point2D, HarvestBank> banks = null;
|
m_BanksByMap.TryGetValue( map, out Dictionary<Point2D, HarvestBank> banks );
|
||||||
m_BanksByMap.TryGetValue( map, out banks );
|
|
||||||
|
|
||||||
if ( banks == null )
|
if ( banks == null )
|
||||||
m_BanksByMap[map] = banks = new Dictionary<Point2D, HarvestBank>();
|
m_BanksByMap[map] = banks = new Dictionary<Point2D, HarvestBank>();
|
||||||
|
|
||||||
Point2D key = new Point2D( x, y );
|
Point2D key = new Point2D( x, y );
|
||||||
HarvestBank bank = null;
|
banks.TryGetValue( key, out HarvestBank bank );
|
||||||
banks.TryGetValue( key, out bank );
|
|
||||||
|
|
||||||
if ( bank == null )
|
if ( bank == null )
|
||||||
banks[key] = bank = new HarvestBank( this, GetVeinAt( map, x, y ) );
|
banks[key] = bank = new HarvestBank( this, GetVeinAt( map, x, y ) );
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace Server.Engines.Harvest
|
||||||
{
|
{
|
||||||
private List<HarvestDefinition> m_Definitions;
|
private List<HarvestDefinition> m_Definitions;
|
||||||
|
|
||||||
public List<HarvestDefinition> Definitions { get { return m_Definitions; } }
|
public List<HarvestDefinition> Definitions => m_Definitions;
|
||||||
|
|
||||||
public HarvestSystem()
|
public HarvestSystem()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal1() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal1() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -172,7 +172,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal2() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal2() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -276,7 +276,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal3() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal3() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -375,7 +375,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal6() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal6() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -462,7 +462,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal7() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal7() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -532,7 +532,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal11() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal11() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -619,7 +619,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal14() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal14() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -711,7 +711,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal17() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal17() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -751,7 +751,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GrimmochJournal23() : base( Utility.Random( 0xFF1, 2 ), false )
|
public GrimmochJournal23() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook1() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook1() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -131,7 +131,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook2() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook2() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -219,7 +219,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook3() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook3() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -324,7 +324,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook7() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook7() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -419,7 +419,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook8() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook8() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -511,7 +511,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public LysanderNotebook11() : base( Utility.Random( 0xFF1, 2 ), false )
|
public LysanderNotebook11() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal1() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal1() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -199,7 +199,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal2() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal2() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -296,7 +296,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal3() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal3() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -406,7 +406,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal6() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal6() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -504,7 +504,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal7() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal7() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -622,7 +622,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal8() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal8() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -716,7 +716,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal9() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal9() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -834,7 +834,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal11() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal11() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -943,7 +943,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal14() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal14() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -1064,7 +1064,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal16() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal16() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -1174,7 +1174,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal16b() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal16b() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -1245,7 +1245,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal17() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal17() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
@ -1305,7 +1305,7 @@ namespace Server.Items
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
public override BookContent DefaultContent{ get{ return Content; } }
|
public override BookContent DefaultContent => Content;
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public TavarasJournal19() : base( Utility.Random( 0xFF1, 2 ), false )
|
public TavarasJournal19() : base( Utility.Random( 0xFF1, 2 ), false )
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Server.Items
|
||||||
set { m_MapDest = value; }
|
set { m_MapDest = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int LabelNumber{ get{ return 1016511; } } // the floor of the cavern seems to have collapsed here - a faint light is visible at the bottom of the pit
|
public override int LabelNumber => 1016511; // the floor of the cavern seems to have collapsed here - a faint light is visible at the bottom of the pit
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public KhaldunPitTeleporter() : this( new Point3D( 5451, 1374, 0 ), Map.Felucca )
|
public KhaldunPitTeleporter() : this( new Point3D( 5451, 1374, 0 ), Map.Felucca )
|
||||||
|
|
|
||||||
|
|
@ -252,8 +252,7 @@ namespace Server.Items
|
||||||
|
|
||||||
public PuzzleChestSolutionAndTime GetLastGuess( Mobile m )
|
public PuzzleChestSolutionAndTime GetLastGuess( Mobile m )
|
||||||
{
|
{
|
||||||
PuzzleChestSolutionAndTime pcst = null;
|
m_Guesses.TryGetValue( m, out PuzzleChestSolutionAndTime pcst );
|
||||||
m_Guesses.TryGetValue( m, out pcst );
|
|
||||||
return pcst;
|
return pcst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -6,7 +6,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
// Base class for escorts providing the AwardHumanInNeed option
|
// Base class for escorts providing the AwardHumanInNeed option
|
||||||
public class BaseEscort : MLQuest
|
public class BaseEscort : MLQuest
|
||||||
{
|
{
|
||||||
public virtual bool AwardHumanInNeed { get { return true; } }
|
public virtual bool AwardHumanInNeed => true;
|
||||||
|
|
||||||
public BaseEscort()
|
public BaseEscort()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class VilePoison : MLQuest
|
public class VilePoison : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( ARockAndAHardPlace ); } }
|
public override Type NextQuest => typeof( ARockAndAHardPlace );
|
||||||
|
|
||||||
public VilePoison()
|
public VilePoison()
|
||||||
{
|
{
|
||||||
|
|
@ -42,7 +42,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class ARockAndAHardPlace : MLQuest
|
public class ARockAndAHardPlace : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( SympatheticMagic ); } }
|
public override Type NextQuest => typeof( SympatheticMagic );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public ARockAndAHardPlace()
|
public ARockAndAHardPlace()
|
||||||
|
|
@ -64,7 +64,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class SympatheticMagic : MLQuest
|
public class SympatheticMagic : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( AlreadyDead ); } }
|
public override Type NextQuest => typeof( AlreadyDead );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public SympatheticMagic()
|
public SympatheticMagic()
|
||||||
|
|
@ -84,7 +84,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class AlreadyDead : MLQuest
|
public class AlreadyDead : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( Eureka ); } }
|
public override Type NextQuest => typeof( Eureka );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public AlreadyDead()
|
public AlreadyDead()
|
||||||
|
|
@ -114,7 +114,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Eureka : MLQuest
|
public class Eureka : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( SubContracting ); } }
|
public override Type NextQuest => typeof( SubContracting );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public Eureka()
|
public Eureka()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Aemaeth1 : MLQuest
|
public class Aemaeth1 : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( Aemaeth2 ); } }
|
public override Type NextQuest => typeof( Aemaeth2 );
|
||||||
|
|
||||||
public Aemaeth1()
|
public Aemaeth1()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class HonestBeggar : MLQuest
|
public class HonestBeggar : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( ReginasThanks ); } }
|
public override Type NextQuest => typeof( ReginasThanks );
|
||||||
|
|
||||||
public HonestBeggar()
|
public HonestBeggar()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,9 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
public class BatteredBucket : TransientQuestGiverItem
|
public class BatteredBucket : TransientQuestGiverItem
|
||||||
{
|
{
|
||||||
// Original label, doesn't fit the expiration message well
|
// Original label, doesn't fit the expiration message well
|
||||||
//public override int LabelNumber { get { return 1073129; } } // A battered bucket.
|
//public override int LabelNumber => 1073129; // A battered bucket.
|
||||||
|
|
||||||
public override string DefaultName { get { return "battered bucket"; } }
|
public override string DefaultName => "battered bucket";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public BatteredBucket()
|
public BatteredBucket()
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class MistakenIdentity : MLQuest
|
public class MistakenIdentity : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( YouScratchMyBack ); } }
|
public override Type NextQuest => typeof( YouScratchMyBack );
|
||||||
|
|
||||||
public MistakenIdentity()
|
public MistakenIdentity()
|
||||||
{
|
{
|
||||||
|
|
@ -42,7 +42,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class YouScratchMyBack : MLQuest
|
public class YouScratchMyBack : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( FoolingAernya ); } }
|
public override Type NextQuest => typeof( FoolingAernya );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public YouScratchMyBack()
|
public YouScratchMyBack()
|
||||||
|
|
@ -72,7 +72,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class FoolingAernya : MLQuest
|
public class FoolingAernya : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( NotQuiteThatEasy ); } }
|
public override Type NextQuest => typeof( NotQuiteThatEasy );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public FoolingAernya()
|
public FoolingAernya()
|
||||||
|
|
@ -93,7 +93,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class NotQuiteThatEasy : MLQuest
|
public class NotQuiteThatEasy : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( ConvinceMe ); } }
|
public override Type NextQuest => typeof( ConvinceMe );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public NotQuiteThatEasy()
|
public NotQuiteThatEasy()
|
||||||
|
|
@ -126,7 +126,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class ConvinceMe : MLQuest
|
public class ConvinceMe : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TuitionReimbursement ); } }
|
public override Type NextQuest => typeof( TuitionReimbursement );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public ConvinceMe()
|
public ConvinceMe()
|
||||||
|
|
|
||||||
|
|
@ -1383,7 +1383,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class GustarShroud : BaseOuterTorso
|
public class GustarShroud : BaseOuterTorso
|
||||||
{
|
{
|
||||||
public override string DefaultName{ get{ return " "; } }
|
public override string DefaultName => " ";
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public GustarShroud() : base( 0x2684 )
|
public GustarShroud() : base( 0x2684 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -393,7 +393,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class MougGuurMustDie : MLQuest
|
public class MougGuurMustDie : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( LeaderOfThePack ); } }
|
public override Type NextQuest => typeof( LeaderOfThePack );
|
||||||
|
|
||||||
public MougGuurMustDie()
|
public MougGuurMustDie()
|
||||||
{
|
{
|
||||||
|
|
@ -412,7 +412,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class LeaderOfThePack : MLQuest
|
public class LeaderOfThePack : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( SayonaraSzavetra ); } }
|
public override Type NextQuest => typeof( SayonaraSzavetra );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public LeaderOfThePack()
|
public LeaderOfThePack()
|
||||||
|
|
@ -522,7 +522,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Marauders : MLQuest
|
public class Marauders : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TheBrainsOfTheOperation ); } }
|
public override Type NextQuest => typeof( TheBrainsOfTheOperation );
|
||||||
|
|
||||||
public Marauders()
|
public Marauders()
|
||||||
{
|
{
|
||||||
|
|
@ -540,7 +540,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TheBrainsOfTheOperation : MLQuest
|
public class TheBrainsOfTheOperation : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TheBrawn ); } }
|
public override Type NextQuest => typeof( TheBrawn );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public TheBrainsOfTheOperation()
|
public TheBrainsOfTheOperation()
|
||||||
|
|
@ -559,7 +559,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TheBrawn : MLQuest
|
public class TheBrawn : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TheBiggerTheyAre ); } }
|
public override Type NextQuest => typeof( TheBiggerTheyAre );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public TheBrawn()
|
public TheBrawn()
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Patience : MLQuest
|
public class Patience : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( NeedsOfTheManyHeartwood1 ); } }
|
public override Type NextQuest => typeof( NeedsOfTheManyHeartwood1 );
|
||||||
|
|
||||||
public Patience()
|
public Patience()
|
||||||
{
|
{
|
||||||
|
|
@ -74,7 +74,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class NeedsOfTheManyHeartwood1 : MLQuest
|
public class NeedsOfTheManyHeartwood1 : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( NeedsOfTheManyHeartwood2 ); } }
|
public override Type NextQuest => typeof( NeedsOfTheManyHeartwood2 );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public NeedsOfTheManyHeartwood1()
|
public NeedsOfTheManyHeartwood1()
|
||||||
|
|
@ -94,7 +94,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class NeedsOfTheManyHeartwood2 : MLQuest
|
public class NeedsOfTheManyHeartwood2 : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( MakingAContributionHeartwood ); } }
|
public override Type NextQuest => typeof( MakingAContributionHeartwood );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public NeedsOfTheManyHeartwood2()
|
public NeedsOfTheManyHeartwood2()
|
||||||
|
|
@ -114,7 +114,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class MakingAContributionHeartwood : MLQuest
|
public class MakingAContributionHeartwood : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( UnnaturalCreations ); } }
|
public override Type NextQuest => typeof( UnnaturalCreations );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public MakingAContributionHeartwood()
|
public MakingAContributionHeartwood()
|
||||||
|
|
@ -168,7 +168,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Discipline : MLQuest
|
public class Discipline : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( NeedsOfTheManySanctuary ); } }
|
public override Type NextQuest => typeof( NeedsOfTheManySanctuary );
|
||||||
|
|
||||||
public Discipline()
|
public Discipline()
|
||||||
{
|
{
|
||||||
|
|
@ -195,7 +195,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class NeedsOfTheManySanctuary : MLQuest
|
public class NeedsOfTheManySanctuary : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( MakingAContributionSanctuary ); } }
|
public override Type NextQuest => typeof( MakingAContributionSanctuary );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public NeedsOfTheManySanctuary()
|
public NeedsOfTheManySanctuary()
|
||||||
|
|
@ -215,7 +215,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class MakingAContributionSanctuary : MLQuest
|
public class MakingAContributionSanctuary : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( SuppliesForSanctuary ); } }
|
public override Type NextQuest => typeof( SuppliesForSanctuary );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public MakingAContributionSanctuary()
|
public MakingAContributionSanctuary()
|
||||||
|
|
@ -235,7 +235,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class SuppliesForSanctuary : MLQuest
|
public class SuppliesForSanctuary : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TheHumanBlight ); } }
|
public override Type NextQuest => typeof( TheHumanBlight );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public SuppliesForSanctuary()
|
public SuppliesForSanctuary()
|
||||||
|
|
@ -288,7 +288,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class FriendOfTheFey : MLQuest
|
public class FriendOfTheFey : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TokenOfFriendship ); } }
|
public override Type NextQuest => typeof( TokenOfFriendship );
|
||||||
|
|
||||||
public FriendOfTheFey()
|
public FriendOfTheFey()
|
||||||
{
|
{
|
||||||
|
|
@ -316,7 +316,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TokenOfFriendship : MLQuest
|
public class TokenOfFriendship : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( Alliance ); } }
|
public override Type NextQuest => typeof( Alliance );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public TokenOfFriendship()
|
public TokenOfFriendship()
|
||||||
|
|
@ -367,7 +367,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class FiendishFriends : MLQuest
|
public class FiendishFriends : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( CrackingTheWhipI ); } }
|
public override Type NextQuest => typeof( CrackingTheWhipI );
|
||||||
|
|
||||||
public FiendishFriends()
|
public FiendishFriends()
|
||||||
{
|
{
|
||||||
|
|
@ -396,7 +396,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
// TODO: Verify
|
// TODO: Verify
|
||||||
public class CrackingTheWhipI : MLQuest
|
public class CrackingTheWhipI : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( CrackingTheWhipII ); } }
|
public override Type NextQuest => typeof( CrackingTheWhipII );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public CrackingTheWhipI()
|
public CrackingTheWhipI()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TheAncientWorld : MLQuest
|
public class TheAncientWorld : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TheGoldenHorn ); } }
|
public override Type NextQuest => typeof( TheGoldenHorn );
|
||||||
|
|
||||||
public TheAncientWorld()
|
public TheAncientWorld()
|
||||||
{
|
{
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TheGoldenHorn : MLQuest
|
public class TheGoldenHorn : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( Bullish ); } }
|
public override Type NextQuest => typeof( Bullish );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public TheGoldenHorn()
|
public TheGoldenHorn()
|
||||||
|
|
@ -61,7 +61,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class Bullish : MLQuest
|
public class Bullish : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( LostCivilization ); } }
|
public override Type NextQuest => typeof( LostCivilization );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public Bullish()
|
public Bullish()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class UnfadingMemoriesPartOne : MLQuest
|
public class UnfadingMemoriesPartOne : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( UnfadingMemoriesPartTwo ); } }
|
public override Type NextQuest => typeof( UnfadingMemoriesPartTwo );
|
||||||
|
|
||||||
public UnfadingMemoriesPartOne()
|
public UnfadingMemoriesPartOne()
|
||||||
{
|
{
|
||||||
|
|
@ -42,7 +42,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class UnfadingMemoriesPartTwo : MLQuest
|
public class UnfadingMemoriesPartTwo : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( UnfadingMemoriesPartThree ); } }
|
public override Type NextQuest => typeof( UnfadingMemoriesPartThree );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public UnfadingMemoriesPartTwo()
|
public UnfadingMemoriesPartTwo()
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
{
|
{
|
||||||
public class WarriorsOfTheGemkeeper : MLQuest
|
public class WarriorsOfTheGemkeeper : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( CloseEnough ); } }
|
public override Type NextQuest => typeof( CloseEnough );
|
||||||
|
|
||||||
public WarriorsOfTheGemkeeper()
|
public WarriorsOfTheGemkeeper()
|
||||||
{
|
{
|
||||||
|
|
@ -31,7 +31,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class CloseEnough : MLQuest
|
public class CloseEnough : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( TakingTheBullByTheHorns ); } }
|
public override Type NextQuest => typeof( TakingTheBullByTheHorns );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public CloseEnough()
|
public CloseEnough()
|
||||||
|
|
@ -51,7 +51,7 @@ namespace Server.Engines.MLQuests.Definitions
|
||||||
|
|
||||||
public class TakingTheBullByTheHorns : MLQuest
|
public class TakingTheBullByTheHorns : MLQuest
|
||||||
{
|
{
|
||||||
public override Type NextQuest { get { return typeof( EmissaryToTheMinotaur ); } }
|
public override Type NextQuest => typeof( EmissaryToTheMinotaur );
|
||||||
public override bool IsChainTriggered => true;
|
public override bool IsChainTriggered => true;
|
||||||
|
|
||||||
public TakingTheBullByTheHorns()
|
public TakingTheBullByTheHorns()
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,9 @@ namespace Server.Engines.MLQuests.Gumps
|
||||||
private ButtonGraphic m_Graphic;
|
private ButtonGraphic m_Graphic;
|
||||||
private int m_ButtonID;
|
private int m_ButtonID;
|
||||||
|
|
||||||
public ButtonPosition Position { get { return m_Position; } }
|
public ButtonPosition Position => m_Position;
|
||||||
public ButtonGraphic Graphic { get { return m_Graphic; } }
|
public ButtonGraphic Graphic => m_Graphic;
|
||||||
public int ButtonID { get { return m_ButtonID; } }
|
public int ButtonID => m_ButtonID;
|
||||||
|
|
||||||
public ButtonInfo( ButtonPosition position, ButtonGraphic graphic, int buttonID )
|
public ButtonInfo( ButtonPosition position, ButtonGraphic graphic, int buttonID )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,7 @@ namespace Server.Engines.MLQuests.Gumps
|
||||||
|
|
||||||
private static void CloseCurrent( NetState ns )
|
private static void CloseCurrent( NetState ns )
|
||||||
{
|
{
|
||||||
RaceChangeState state;
|
if (m_Pending.TryGetValue( ns, out RaceChangeState state ))
|
||||||
|
|
||||||
if ( m_Pending.TryGetValue( ns, out state ) )
|
|
||||||
{
|
{
|
||||||
state.m_Timeout.Stop();
|
state.m_Timeout.Stop();
|
||||||
m_Pending.Remove( ns );
|
m_Pending.Remove( ns );
|
||||||
|
|
@ -190,9 +188,7 @@ namespace Server.Engines.MLQuests.Gumps
|
||||||
|
|
||||||
private static void RaceChangeReply( NetState state, PacketReader pvSrc )
|
private static void RaceChangeReply( NetState state, PacketReader pvSrc )
|
||||||
{
|
{
|
||||||
RaceChangeState raceChangeState;
|
if (!m_Pending.TryGetValue( state, out RaceChangeState raceChangeState ))
|
||||||
|
|
||||||
if ( !m_Pending.TryGetValue( state, out raceChangeState ) )
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CloseCurrent( state );
|
CloseCurrent( state );
|
||||||
|
|
@ -289,7 +285,7 @@ namespace Server.Engines.MLQuests.Gumps
|
||||||
|
|
||||||
public class RaceChangeDeed : Item, IRaceChanger
|
public class RaceChangeDeed : Item, IRaceChanger
|
||||||
{
|
{
|
||||||
public override string DefaultName { get { return "a race change deed"; } }
|
public override string DefaultName => "a race change deed";
|
||||||
|
|
||||||
[Constructible]
|
[Constructible]
|
||||||
public RaceChangeDeed()
|
public RaceChangeDeed()
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue