Adds BufferReader and BufferWriter. Updates UOP handling. (#101)

This commit is contained in:
Kamron Batman 2020-04-12 21:33:24 -07:00 • committed by GitHub
parent 2c0d97cd36
commit 038c3be258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 2458 additions and 2185 deletions

View file

@ -7,7 +7,7 @@ using Server.Targeting;
namespace Server.Engines.Events
{
public class TrickOrTreat
public static class TrickOrTreat
{
public static TimeSpan OneSecond = TimeSpan.FromSeconds(1);

View file

@ -64,10 +64,10 @@ namespace Server.Engines.Events
}
}
public static void EventSink_PlayerDeath( PlayerDeathEventArgs e )
public static void EventSink_PlayerDeath(Mobile m)
{
if ( e.Mobile is PlayerMobile player && !player.Deleted && m_Timer.Running && !m_DeathQueue.Contains( player ) && m_DeathQueue.Count < m_DeathQueueLimit )
m_DeathQueue.Add( player );
if (m is PlayerMobile pm && !pm.Deleted && m_Timer.Running && !m_DeathQueue.Contains(pm) && m_DeathQueue.Count < m_DeathQueueLimit)
m_DeathQueue.Add(pm);
}
private static void Clear_Callback()