Code cleanup (#188)

This commit is contained in:
Kamron Batman 2020-08-01 08:40:06 -07:00 • committed by GitHub
parent df53c16620
commit 010fd9402a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
185 changed files with 1052 additions and 1271 deletions

View file

@ -19,7 +19,7 @@ namespace Server
public static void ResendBuffsOnClientVersionReceived(NetState ns, ClientVersion cv)
{
if (ns.Mobile is PlayerMobile pm)
Timer.DelayCall(TimeSpan.Zero, pm.ResendBuffs);
Timer.DelayCall(pm.ResendBuffs);
}
public BuffIcon ID { get; }
@ -62,13 +62,7 @@ namespace Server
TimeLength = length;
TimeStart = DateTime.UtcNow;
Timer = Timer.DelayCall(length, () =>
{
if (!(m is PlayerMobile pm))
return;
pm.RemoveBuff(this);
});
Timer = Timer.DelayCall(length, RemoveBuff, m, this);
}
public BuffInfo(BuffIcon iconID, int titleCliloc, TextDefinition args)