Implement Core.TickCount
Convert movement, actions (lift/use), combat, and spells to use Core.TickCount and avoid DateTime caveats (performance, system time dependency, etc) Refactor DateTime.Now to DateTime.UtcNow Add LOS check for Iron Maiden addon
This commit is contained in:
parent
f99eefb288
commit
d2c670f5c3
241 changed files with 842 additions and 831 deletions
|
|
@ -143,7 +143,7 @@ namespace Server.Engines.Help
|
|||
public PageEntry( Mobile sender, string message, PageType type )
|
||||
{
|
||||
m_Sender = sender;
|
||||
m_Sent = DateTime.Now;
|
||||
m_Sent = DateTime.UtcNow;
|
||||
m_Message = Utility.FixHtml( message );
|
||||
m_Type = type;
|
||||
m_PageLocation = sender.Location;
|
||||
|
|
@ -338,7 +338,7 @@ namespace Server.Engines.Help
|
|||
if ( m != null && m.AccessLevel >= AccessLevel.Counselor && m.AutoPageNotify && !IsHandling( m ) )
|
||||
m.SendMessage( "A new page has been placed in the queue." );
|
||||
|
||||
if ( m != null && m.AccessLevel >= AccessLevel.Counselor && m.AutoPageNotify && m.LastMoveTime >= (DateTime.Now - TimeSpan.FromMinutes( 10.0 )) )
|
||||
if (m != null && m.AccessLevel >= AccessLevel.Counselor && m.AutoPageNotify && Core.TickCount - m.LastMoveTime < 600000)
|
||||
isStaffOnline = true;
|
||||
}
|
||||
|
||||
|
|
@ -352,7 +352,7 @@ namespace Server.Engines.Help
|
|||
private static void SendEmail( PageEntry entry )
|
||||
{
|
||||
Mobile sender = entry.Sender;
|
||||
DateTime time = DateTime.Now;
|
||||
DateTime time = DateTime.UtcNow;
|
||||
|
||||
MailMessage mail = new MailMessage( Email.FromAddress, Email.SpeechLogPageAddresses );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue