Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue