Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -2,20 +2,20 @@ using System;
namespace Server.Factions
{
public class SilverGivenEntry
{
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours( 3.0 );
public class SilverGivenEntry
{
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours(3.0);
public Mobile GivenTo { get; }
public SilverGivenEntry(Mobile givenTo)
{
GivenTo = givenTo;
TimeOfGift = DateTime.UtcNow;
}
public DateTime TimeOfGift { get; }
public Mobile GivenTo{ get; }
public bool IsExpired => ( TimeOfGift + ExpirePeriod ) < DateTime.UtcNow;
public DateTime TimeOfGift{ get; }
public SilverGivenEntry( Mobile givenTo )
{
GivenTo = givenTo;
TimeOfGift = DateTime.UtcNow;
}
}
public bool IsExpired => TimeOfGift + ExpirePeriod < DateTime.UtcNow;
}
}