Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -7,7 +7,7 @@ namespace Server.Items
{
public class Fireflies : Item, IAddon
{
public override int LabelNumber { get { return 1150061; }}
public override int LabelNumber => 1150061;
public Item Deed
{

View file

@ -19,7 +19,7 @@ namespace Server.Items.Holiday
}
}
public virtual string MaskName { get { return "A Mask"; } }
public virtual string MaskName => "A Mask";
private string m_Staffer;

View file

@ -8,7 +8,9 @@ namespace Server.Engines.Events
{
public class HalloweenHauntings
{
public static Dictionary<PlayerMobile, ZombieSkeleton> ReAnimated { get { return m_ReAnimated; } set { m_ReAnimated = value; } }
public static Dictionary<PlayerMobile, ZombieSkeleton> ReAnimated { get => m_ReAnimated;
set => m_ReAnimated = value;
}
private static Timer m_Timer;
private static Timer m_ClearTimer;

View file

@ -5,11 +5,13 @@ namespace Server.Events.Halloween
{
class HolidaySettings
{
public static DateTime StartHalloween { get { return new DateTime( 2012, 10, 24 ); } } // YY MM DD
public static DateTime FinishHalloween { get { return new DateTime( 2012, 11, 15 ); } }
public static DateTime StartHalloween // YY MM DD
=> new DateTime( 2012, 10, 24 );
public static Item RandomGMBeggerItem { get { return ( Item )Activator.CreateInstance( m_GMBeggarTreats[ Utility.Random( m_GMBeggarTreats.Length ) ] ); } }
public static Item RandomTreat { get { return (Item)Activator.CreateInstance ( m_Treats[ Utility.Random( m_Treats.Length ) ]) ; } }
public static DateTime FinishHalloween => new DateTime( 2012, 11, 15 );
public static Item RandomGMBeggerItem => ( Item )Activator.CreateInstance( m_GMBeggarTreats[ Utility.Random( m_GMBeggarTreats.Length ) ] );
public static Item RandomTreat => (Item)Activator.CreateInstance ( m_Treats[ Utility.Random( m_Treats.Length ) ]);
private static Type[] m_GMBeggarTreats =
{

View file

@ -27,47 +27,41 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Owner
{
get { return m_Owner; }
get => m_Owner;
set { m_Owner = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line1
{
get { return m_Line1; }
get => m_Line1;
set { m_Line1 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line2
{
get { return m_Line2; }
get => m_Line2;
set { m_Line2 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line3
{
get { return m_Line3; }
get => m_Line3;
set { m_Line3 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime EditLimit
{
get { return m_EditLimit; }
set { m_EditLimit = value; }
get => m_EditLimit;
set => m_EditLimit = value;
}
public bool IsSigned
{
get { return ( m_Line1 != null || m_Line2 != null || m_Line3 != null ); }
}
public bool IsSigned => ( m_Line1 != null || m_Line2 != null || m_Line3 != null );
public bool CanSign
{
get { return ( !IsSigned || DateTime.UtcNow <= m_EditLimit ); }
}
public bool CanSign => ( !IsSigned || DateTime.UtcNow <= m_EditLimit );
public StValentinesBear( int itemid, string name )
: base( itemid )

View file

@ -15,21 +15,18 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string From
{
get { return m_From; }
get => m_From;
set { m_From = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string To
{
get { return m_To; }
get => m_To;
set { m_To = value; InvalidateProperties(); }
}
public bool IsSigned
{
get { return ( m_From != null && m_To != null ); }
}
public bool IsSigned => ( m_From != null && m_To != null );
[Constructible]
public CupidsArrow()