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

@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using Server.Multis;
@ -170,7 +169,7 @@ namespace Server.Items
}
}
Timer.DelayCall(TimeSpan.Zero, ValidatePlacement);
Timer.DelayCall(ValidatePlacement);
}
public void ValidatePlacement()

View file

@ -65,7 +65,7 @@ namespace Server.Items
Point3D p = new Point3D(Location);
if (SpellHelper.FindValidSpawnLocation(Map, ref p, true))
Timer.DelayCall(TimeSpan.FromSeconds(0), () => m.MoveToWorld(p, m.Map));
Timer.DelayCall(TimeSpan.FromSeconds(0), m.MoveToWorld, p, m.Map);
action = 21 + Utility.Random(2);
sound = m.Female ? 0x317 : 0x426;
@ -77,7 +77,7 @@ namespace Server.Items
}
if (action > 0)
Timer.DelayCall(TimeSpan.FromSeconds(0.4), from => BeginFall_Callback(from, action, sound), m);
Timer.DelayCall(TimeSpan.FromSeconds(0.4), BeginFall_Callback, m, action, sound);
}
private static void BeginFall_Callback(Mobile m, int action, int sound)
@ -107,4 +107,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -1,4 +1,3 @@
using System;
using Server.Gumps;
using Server.Multis;
using Server.Network;
@ -71,7 +70,7 @@ namespace Server.Items
int version = reader.ReadInt();
Timer.DelayCall(TimeSpan.Zero, FixMovingCrate);
Timer.DelayCall(FixMovingCrate);
}
private void FixMovingCrate()