Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -12,7 +12,7 @@ namespace Server.Mobiles
|
|||
public class Banker : BaseVendor
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
protected override List<SBInfo> SBInfos => m_SBInfos;
|
||||
|
||||
public override NpcGuild NpcGuild => NpcGuild.MerchantsGuild;
|
||||
|
||||
|
|
|
|||
|
|
@ -97,10 +97,7 @@ namespace Server.Mobiles
|
|||
|
||||
private bool m_DeleteCorpse = false;
|
||||
|
||||
public bool IsBeingDeleted
|
||||
{
|
||||
get { return ( m_DeleteTimer != null ); }
|
||||
}
|
||||
public bool IsBeingDeleted => ( m_DeleteTimer != null );
|
||||
|
||||
public override bool Commandable => false; // Our master cannot boss us around!
|
||||
public override bool DeleteCorpseOnDeath => m_DeleteCorpse;
|
||||
|
|
@ -108,7 +105,7 @@ namespace Server.Mobiles
|
|||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public string Destination
|
||||
{
|
||||
get { return m_Destination == null ? null : m_Destination.Name; }
|
||||
get => m_Destination == null ? null : m_Destination.Name;
|
||||
set { m_DestinationString = value; m_Destination = EDI.Find(value); }
|
||||
}
|
||||
|
||||
|
|
@ -236,10 +233,7 @@ namespace Server.Mobiles
|
|||
|
||||
private static Hashtable m_EscortTable = new Hashtable();
|
||||
|
||||
public static Hashtable EscortTable
|
||||
{
|
||||
get { return m_EscortTable; }
|
||||
}
|
||||
public static Hashtable EscortTable => m_EscortTable;
|
||||
|
||||
public virtual bool AcceptEscorter(Mobile m)
|
||||
{
|
||||
|
|
@ -661,15 +655,9 @@ namespace Server.Mobiles
|
|||
private Region m_Region;
|
||||
//private Rectangle2D[] m_Bounds;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return m_Name; }
|
||||
}
|
||||
public string Name => m_Name;
|
||||
|
||||
public Region Region
|
||||
{
|
||||
get { return m_Region; }
|
||||
}
|
||||
public Region Region => m_Region;
|
||||
|
||||
/*public Rectangle2D[] Bounds
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsEmpty{ get{ return ( m_Entries == null || m_Entries.Count == 0 ); } }
|
||||
public bool IsEmpty => ( m_Entries == null || m_Entries.Count == 0 );
|
||||
|
||||
public GlobalTownCrierEntryList()
|
||||
{
|
||||
|
|
@ -52,10 +52,7 @@ namespace Server.Mobiles
|
|||
|
||||
private List<TownCrierEntry> m_Entries;
|
||||
|
||||
public List<TownCrierEntry> Entries
|
||||
{
|
||||
get{ return m_Entries; }
|
||||
}
|
||||
public List<TownCrierEntry> Entries => m_Entries;
|
||||
|
||||
public TownCrierEntry GetRandomEntry()
|
||||
{
|
||||
|
|
@ -113,9 +110,9 @@ namespace Server.Mobiles
|
|||
private string[] m_Lines;
|
||||
private DateTime m_ExpireTime;
|
||||
|
||||
public string[] Lines{ get{ return m_Lines; } }
|
||||
public DateTime ExpireTime{ get{ return m_ExpireTime; } }
|
||||
public bool Expired{ get{ return ( DateTime.UtcNow >= m_ExpireTime ); } }
|
||||
public string[] Lines => m_Lines;
|
||||
public DateTime ExpireTime => m_ExpireTime;
|
||||
public bool Expired => ( DateTime.UtcNow >= m_ExpireTime );
|
||||
|
||||
public TownCrierEntry( string[] lines, TimeSpan duration )
|
||||
{
|
||||
|
|
@ -325,10 +322,7 @@ namespace Server.Mobiles
|
|||
private Timer m_NewsTimer;
|
||||
private Timer m_AutoShoutTimer;
|
||||
|
||||
public List<TownCrierEntry> Entries
|
||||
{
|
||||
get{ return m_Entries; }
|
||||
}
|
||||
public List<TownCrierEntry> Entries => m_Entries;
|
||||
|
||||
public TownCrierEntry GetRandomEntry()
|
||||
{
|
||||
|
|
@ -472,10 +466,7 @@ namespace Server.Mobiles
|
|||
|
||||
private static List<TownCrier> m_Instances = new List<TownCrier>();
|
||||
|
||||
public static List<TownCrier> Instances
|
||||
{
|
||||
get{ return m_Instances; }
|
||||
}
|
||||
public static List<TownCrier> Instances => m_Instances;
|
||||
|
||||
[Constructible]
|
||||
public TownCrier()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue